Showing
11 changed files
with
67 additions
and
12 deletions
| @@ -1456,4 +1456,7 @@ VALUES('所属分厂', 2, '6', 1, 'order', 'workshop_id', 'WORKSHOP', 'SELECT __ | @@ -1456,4 +1456,7 @@ VALUES('所属分厂', 2, '6', 1, 'order', 'workshop_id', 'WORKSHOP', 'SELECT __ | ||
| 1456 | 1456 | ||
| 1457 | INSERT INTO sys_data_permission_model_detail | 1457 | INSERT INTO sys_data_permission_model_detail |
| 1458 | (name, model_id, condition_type, input_type, table_name, column_name, enum_name, sql_value) | 1458 | (name, model_id, condition_type, input_type, table_name, column_name, enum_name, sql_value) |
| 1459 | -VALUES('全部', 2, '6', 99, 'order', 'id', NULL, NULL); | ||
| 1459 | +VALUES('全部', 2, '6', 99, 'order', 'id', NULL, NULL); | ||
| 1460 | + | ||
| 1461 | +ALTER TABLE tbl_contract_distributor_standard | ||
| 1462 | + ADD COLUMN foreign_destination varchar(200) COMMENT '目的地(外贸+加工合同)'; |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/bo/contract/GetContractDistributorStandardBo.java
| @@ -216,6 +216,12 @@ public class GetContractDistributorStandardBo extends BaseBo<ContractDistributor | @@ -216,6 +216,12 @@ public class GetContractDistributorStandardBo extends BaseBo<ContractDistributor | ||
| 216 | private String districtName; | 216 | private String districtName; |
| 217 | 217 | ||
| 218 | /** | 218 | /** |
| 219 | + * 目的地(外贸+加工合同) | ||
| 220 | + */ | ||
| 221 | + @ApiModelProperty(value = "目的地") | ||
| 222 | + private String foreignDestination; | ||
| 223 | + | ||
| 224 | + /** | ||
| 219 | * 单价中是否已包含包装费 | 225 | * 单价中是否已包含包装费 |
| 220 | */ | 226 | */ |
| 221 | @ApiModelProperty("单价中是否已包含包装费") | 227 | @ApiModelProperty("单价中是否已包含包装费") |
| @@ -140,6 +140,12 @@ public class QueryContractDistributorStandardBo extends BaseBo<ContractDistribut | @@ -140,6 +140,12 @@ public class QueryContractDistributorStandardBo extends BaseBo<ContractDistribut | ||
| 140 | private String districtName; | 140 | private String districtName; |
| 141 | 141 | ||
| 142 | /** | 142 | /** |
| 143 | + * 目的地(外贸+加工合同) | ||
| 144 | + */ | ||
| 145 | + @ApiModelProperty(value = "目的地") | ||
| 146 | + private String foreignDestination; | ||
| 147 | + | ||
| 148 | + /** | ||
| 143 | * 合计总金额 | 149 | * 合计总金额 |
| 144 | */ | 150 | */ |
| 145 | @ApiModelProperty("合计总金额") | 151 | @ApiModelProperty("合计总金额") |
| @@ -118,6 +118,11 @@ public class ContractDistributorStandard extends BaseEntity implements BaseDto { | @@ -118,6 +118,11 @@ public class ContractDistributorStandard extends BaseEntity implements BaseDto { | ||
| 118 | private String destination; | 118 | private String destination; |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| 121 | + * 目的地(外贸+加工合同) | ||
| 122 | + */ | ||
| 123 | + private String foreignDestination; | ||
| 124 | + | ||
| 125 | + /** | ||
| 121 | * 单价中是否已包含包装费 | 126 | * 单价中是否已包含包装费 |
| 122 | */ | 127 | */ |
| 123 | private Boolean includesPackagingFee; | 128 | private Boolean includesPackagingFee; |
| @@ -91,6 +91,12 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { | @@ -91,6 +91,12 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { | ||
| 91 | private String destination; | 91 | private String destination; |
| 92 | 92 | ||
| 93 | /** | 93 | /** |
| 94 | + * 目的地(外贸+加工合同) | ||
| 95 | + */ | ||
| 96 | + @TableField(exist = false) | ||
| 97 | + private String foreignDestination; | ||
| 98 | + | ||
| 99 | + /** | ||
| 94 | * 价格表编号 | 100 | * 价格表编号 |
| 95 | */ | 101 | */ |
| 96 | private String priceListNo; | 102 | private String priceListNo; |
| @@ -349,6 +349,7 @@ public class ContractDistributorStandardServiceImpl extends | @@ -349,6 +349,7 @@ public class ContractDistributorStandardServiceImpl extends | ||
| 349 | data.setExecutionStandardRemarks(vo.getExecutionStandardRemarks()); | 349 | data.setExecutionStandardRemarks(vo.getExecutionStandardRemarks()); |
| 350 | data.setTransportMode(vo.getTransportMode()); | 350 | data.setTransportMode(vo.getTransportMode()); |
| 351 | data.setDestination(vo.getDestination()); | 351 | data.setDestination(vo.getDestination()); |
| 352 | + data.setForeignDestination(vo.getForeignDestination()); | ||
| 352 | data.setIncludesPackagingFee(vo.getIncludesPackagingFee()); | 353 | data.setIncludesPackagingFee(vo.getIncludesPackagingFee()); |
| 353 | data.setIncludesTransportFee(vo.getIncludesTransportFee()); | 354 | data.setIncludesTransportFee(vo.getIncludesTransportFee()); |
| 354 | data.setPieceWeightHead(vo.getPieceWeightHead()); | 355 | data.setPieceWeightHead(vo.getPieceWeightHead()); |
| @@ -426,6 +427,7 @@ public class ContractDistributorStandardServiceImpl extends | @@ -426,6 +427,7 @@ public class ContractDistributorStandardServiceImpl extends | ||
| 426 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) | 427 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) |
| 427 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) | 428 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) |
| 428 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) | 429 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) |
| 430 | + .set(ContractDistributorStandard::getForeignDestination, vo.getForeignDestination()) | ||
| 429 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) | 431 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) |
| 430 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) | 432 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) |
| 431 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) | 433 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) |
| @@ -652,6 +654,7 @@ public class ContractDistributorStandardServiceImpl extends | @@ -652,6 +654,7 @@ public class ContractDistributorStandardServiceImpl extends | ||
| 652 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) | 654 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) |
| 653 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) | 655 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) |
| 654 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) | 656 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) |
| 657 | + .set(ContractDistributorStandard::getForeignDestination, vo.getForeignDestination()) | ||
| 655 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) | 658 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) |
| 656 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) | 659 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) |
| 657 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) | 660 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) |
| @@ -875,6 +878,7 @@ public class ContractDistributorStandardServiceImpl extends | @@ -875,6 +878,7 @@ public class ContractDistributorStandardServiceImpl extends | ||
| 875 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) | 878 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) |
| 876 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) | 879 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) |
| 877 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) | 880 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) |
| 881 | + .set(ContractDistributorStandard::getForeignDestination, vo.getForeignDestination()) | ||
| 878 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) | 882 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) |
| 879 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) | 883 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) |
| 880 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) | 884 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) |
| @@ -741,6 +741,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde | @@ -741,6 +741,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde | ||
| 741 | continue; | 741 | continue; |
| 742 | } | 742 | } |
| 743 | orderInfo.setDestination(contract.getDestination()); | 743 | orderInfo.setDestination(contract.getDestination()); |
| 744 | + orderInfo.setForeignDestination(contract.getForeignDestination()); | ||
| 744 | } | 745 | } |
| 745 | return orderInfoList; | 746 | return orderInfoList; |
| 746 | } | 747 | } |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/impl/shipments/ShipmentsOrderInfoServiceImpl.java
| @@ -836,17 +836,26 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | @@ -836,17 +836,26 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | ||
| 836 | paymentTypeSet.add(paymentType); | 836 | paymentTypeSet.add(paymentType); |
| 837 | paymentTypeBuilder.append(paymentType).append(" | "); | 837 | paymentTypeBuilder.append(paymentType).append(" | "); |
| 838 | } | 838 | } |
| 839 | - // 目的地 | ||
| 840 | - String destination = orderInfo.getDestination(); | ||
| 841 | - if (StringUtils.isNotBlank(destination) && !destinationSet.contains(destination)) { | ||
| 842 | - destinationSet.add(destination); | ||
| 843 | - List<DicCityDto> fullPath = dicCityService.getFullPath(destination, allCity); | ||
| 844 | - for (DicCityDto cityDto : fullPath) { | ||
| 845 | - destinationBuilder.append(cityDto.getName()).append(","); | ||
| 846 | - } | ||
| 847 | - if (destinationBuilder.length() > 0) { | ||
| 848 | - destinationBuilder.setLength(destinationBuilder.length() - 1); | ||
| 849 | - destinationBuilder.append(" | "); | 839 | + // 目的地 外贸标准合同、外贸库存合同、外贸未锁规格合同、加工标准合同用 |
| 840 | + if (StringUtils.isNotEmpty(orderInfo.getContractType()) && ("INTL_STD_CONTRACT".equals(orderInfo.getContractType()) | ||
| 841 | + || "INTL_INVENTORY_AGMT".equals(orderInfo.getContractType()) | ||
| 842 | + || "INTL_OPEN_SPEC_AGMT".equals(orderInfo.getContractType()) | ||
| 843 | + || "PROCESS_STD_AGMT".equals(orderInfo.getContractType()))) { | ||
| 844 | + String foreignDestination = orderInfo.getForeignDestination(); | ||
| 845 | + destinationBuilder.append(foreignDestination); | ||
| 846 | + destinationBuilder.append(" | "); | ||
| 847 | + } else { | ||
| 848 | + String destination = orderInfo.getDestination(); | ||
| 849 | + if (StringUtils.isNotBlank(destination) && !destinationSet.contains(destination)) { | ||
| 850 | + destinationSet.add(destination); | ||
| 851 | + List<DicCityDto> fullPath = dicCityService.getFullPath(destination, allCity); | ||
| 852 | + for (DicCityDto cityDto : fullPath) { | ||
| 853 | + destinationBuilder.append(cityDto.getName()).append(","); | ||
| 854 | + } | ||
| 855 | + if (destinationBuilder.length() > 0) { | ||
| 856 | + destinationBuilder.setLength(destinationBuilder.length() - 1); | ||
| 857 | + destinationBuilder.append(" | "); | ||
| 858 | + } | ||
| 850 | } | 859 | } |
| 851 | } | 860 | } |
| 852 | // 计划吨位 | 861 | // 计划吨位 |
| @@ -144,6 +144,13 @@ public class CreateContractDistributorStandardVo implements BaseVo, Serializable | @@ -144,6 +144,13 @@ public class CreateContractDistributorStandardVo implements BaseVo, Serializable | ||
| 144 | @Length(message = "目的地最多允许200个字符!") | 144 | @Length(message = "目的地最多允许200个字符!") |
| 145 | private String destination; | 145 | private String destination; |
| 146 | 146 | ||
| 147 | + | ||
| 148 | + /** | ||
| 149 | + * 目的地(外贸+加工合同) | ||
| 150 | + */ | ||
| 151 | + @ApiModelProperty(value = "目的地") | ||
| 152 | + private String foreignDestination; | ||
| 153 | + | ||
| 147 | /** | 154 | /** |
| 148 | * 单价中是否已包含包装费 | 155 | * 单价中是否已包含包装费 |
| 149 | */ | 156 | */ |
| @@ -144,6 +144,12 @@ public class UpdateContractDistributorStandardVo implements BaseVo, Serializable | @@ -144,6 +144,12 @@ public class UpdateContractDistributorStandardVo implements BaseVo, Serializable | ||
| 144 | private String destination; | 144 | private String destination; |
| 145 | 145 | ||
| 146 | /** | 146 | /** |
| 147 | + * 目的地(外贸+加工合同) | ||
| 148 | + */ | ||
| 149 | + @ApiModelProperty(value = "目的地") | ||
| 150 | + private String foreignDestination; | ||
| 151 | + | ||
| 152 | + /** | ||
| 147 | * 单价中是否已包含包装费 | 153 | * 单价中是否已包含包装费 |
| 148 | */ | 154 | */ |
| 149 | @ApiModelProperty(value = "单价中是否已包含包装费") | 155 | @ApiModelProperty(value = "单价中是否已包含包装费") |
| @@ -21,6 +21,7 @@ | @@ -21,6 +21,7 @@ | ||
| 21 | <result column="execution_standard_remarks" property="executionStandardRemarks"/> | 21 | <result column="execution_standard_remarks" property="executionStandardRemarks"/> |
| 22 | <result column="transport_mode" property="transportMode"/> | 22 | <result column="transport_mode" property="transportMode"/> |
| 23 | <result column="destination" property="destination"/> | 23 | <result column="destination" property="destination"/> |
| 24 | + <result column="foreign_destination" property="foreignDestination"/> | ||
| 24 | <result column="includes_packaging_fee" property="includesPackagingFee"/> | 25 | <result column="includes_packaging_fee" property="includesPackagingFee"/> |
| 25 | <result column="includes_transport_fee" property="includesTransportFee"/> | 26 | <result column="includes_transport_fee" property="includesTransportFee"/> |
| 26 | <result column="piece_weight_head" property="pieceWeightHead"/> | 27 | <result column="piece_weight_head" property="pieceWeightHead"/> |
| @@ -84,6 +85,7 @@ | @@ -84,6 +85,7 @@ | ||
| 84 | tb.execution_standard_remarks, | 85 | tb.execution_standard_remarks, |
| 85 | tb.transport_mode, | 86 | tb.transport_mode, |
| 86 | tb.destination, | 87 | tb.destination, |
| 88 | + tb.foreign_destination, | ||
| 87 | tb.includes_packaging_fee, | 89 | tb.includes_packaging_fee, |
| 88 | tb.includes_transport_fee, | 90 | tb.includes_transport_fee, |
| 89 | tb.piece_weight_head, | 91 | tb.piece_weight_head, |