Showing
11 changed files
with
67 additions
and
12 deletions
| ... | ... | @@ -1456,4 +1456,7 @@ VALUES('所属分厂', 2, '6', 1, 'order', 'workshop_id', 'WORKSHOP', 'SELECT __ |
| 1456 | 1456 | |
| 1457 | 1457 | INSERT INTO sys_data_permission_model_detail |
| 1458 | 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); | |
| \ No newline at end of file | ||
| 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 | 216 | private String districtName; |
| 217 | 217 | |
| 218 | 218 | /** |
| 219 | + * 目的地(外贸+加工合同) | |
| 220 | + */ | |
| 221 | + @ApiModelProperty(value = "目的地") | |
| 222 | + private String foreignDestination; | |
| 223 | + | |
| 224 | + /** | |
| 219 | 225 | * 单价中是否已包含包装费 |
| 220 | 226 | */ |
| 221 | 227 | @ApiModelProperty("单价中是否已包含包装费") | ... | ... |
| ... | ... | @@ -140,6 +140,12 @@ public class QueryContractDistributorStandardBo extends BaseBo<ContractDistribut |
| 140 | 140 | private String districtName; |
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | + * 目的地(外贸+加工合同) | |
| 144 | + */ | |
| 145 | + @ApiModelProperty(value = "目的地") | |
| 146 | + private String foreignDestination; | |
| 147 | + | |
| 148 | + /** | |
| 143 | 149 | * 合计总金额 |
| 144 | 150 | */ |
| 145 | 151 | @ApiModelProperty("合计总金额") | ... | ... |
| ... | ... | @@ -118,6 +118,11 @@ public class ContractDistributorStandard extends BaseEntity implements BaseDto { |
| 118 | 118 | private String destination; |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | + * 目的地(外贸+加工合同) | |
| 122 | + */ | |
| 123 | + private String foreignDestination; | |
| 124 | + | |
| 125 | + /** | |
| 121 | 126 | * 单价中是否已包含包装费 |
| 122 | 127 | */ |
| 123 | 128 | private Boolean includesPackagingFee; | ... | ... |
| ... | ... | @@ -91,6 +91,12 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { |
| 91 | 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 | 102 | private String priceListNo; | ... | ... |
| ... | ... | @@ -349,6 +349,7 @@ public class ContractDistributorStandardServiceImpl extends |
| 349 | 349 | data.setExecutionStandardRemarks(vo.getExecutionStandardRemarks()); |
| 350 | 350 | data.setTransportMode(vo.getTransportMode()); |
| 351 | 351 | data.setDestination(vo.getDestination()); |
| 352 | + data.setForeignDestination(vo.getForeignDestination()); | |
| 352 | 353 | data.setIncludesPackagingFee(vo.getIncludesPackagingFee()); |
| 353 | 354 | data.setIncludesTransportFee(vo.getIncludesTransportFee()); |
| 354 | 355 | data.setPieceWeightHead(vo.getPieceWeightHead()); |
| ... | ... | @@ -426,6 +427,7 @@ public class ContractDistributorStandardServiceImpl extends |
| 426 | 427 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) |
| 427 | 428 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) |
| 428 | 429 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) |
| 430 | + .set(ContractDistributorStandard::getForeignDestination, vo.getForeignDestination()) | |
| 429 | 431 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) |
| 430 | 432 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) |
| 431 | 433 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) |
| ... | ... | @@ -652,6 +654,7 @@ public class ContractDistributorStandardServiceImpl extends |
| 652 | 654 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) |
| 653 | 655 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) |
| 654 | 656 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) |
| 657 | + .set(ContractDistributorStandard::getForeignDestination, vo.getForeignDestination()) | |
| 655 | 658 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) |
| 656 | 659 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) |
| 657 | 660 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) |
| ... | ... | @@ -875,6 +878,7 @@ public class ContractDistributorStandardServiceImpl extends |
| 875 | 878 | .set(ContractDistributorStandard::getExecutionStandardRemarks, vo.getExecutionStandardRemarks()) |
| 876 | 879 | .set(ContractDistributorStandard::getTransportMode, vo.getTransportMode()) |
| 877 | 880 | .set(ContractDistributorStandard::getDestination, vo.getDestination()) |
| 881 | + .set(ContractDistributorStandard::getForeignDestination, vo.getForeignDestination()) | |
| 878 | 882 | .set(ContractDistributorStandard::getIncludesPackagingFee, vo.getIncludesPackagingFee()) |
| 879 | 883 | .set(ContractDistributorStandard::getIncludesTransportFee, vo.getIncludesTransportFee()) |
| 880 | 884 | .set(ContractDistributorStandard::getPieceWeightHead, vo.getPieceWeightHead()) | ... | ... |
| ... | ... | @@ -741,6 +741,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 741 | 741 | continue; |
| 742 | 742 | } |
| 743 | 743 | orderInfo.setDestination(contract.getDestination()); |
| 744 | + orderInfo.setForeignDestination(contract.getForeignDestination()); | |
| 744 | 745 | } |
| 745 | 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 | 836 | paymentTypeSet.add(paymentType); |
| 837 | 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 | 144 | @Length(message = "目的地最多允许200个字符!") |
| 145 | 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 | 144 | private String destination; |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | + * 目的地(外贸+加工合同) | |
| 148 | + */ | |
| 149 | + @ApiModelProperty(value = "目的地") | |
| 150 | + private String foreignDestination; | |
| 151 | + | |
| 152 | + /** | |
| 147 | 153 | * 单价中是否已包含包装费 |
| 148 | 154 | */ |
| 149 | 155 | @ApiModelProperty(value = "单价中是否已包含包装费") | ... | ... |
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | <result column="execution_standard_remarks" property="executionStandardRemarks"/> |
| 22 | 22 | <result column="transport_mode" property="transportMode"/> |
| 23 | 23 | <result column="destination" property="destination"/> |
| 24 | + <result column="foreign_destination" property="foreignDestination"/> | |
| 24 | 25 | <result column="includes_packaging_fee" property="includesPackagingFee"/> |
| 25 | 26 | <result column="includes_transport_fee" property="includesTransportFee"/> |
| 26 | 27 | <result column="piece_weight_head" property="pieceWeightHead"/> |
| ... | ... | @@ -84,6 +85,7 @@ |
| 84 | 85 | tb.execution_standard_remarks, |
| 85 | 86 | tb.transport_mode, |
| 86 | 87 | tb.destination, |
| 88 | + tb.foreign_destination, | |
| 87 | 89 | tb.includes_packaging_fee, |
| 88 | 90 | tb.includes_transport_fee, |
| 89 | 91 | tb.piece_weight_head, | ... | ... |