From b9dab6dd5ab3310c0be50c3df2e5cdfb4f7c6bf7 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Mon, 29 Jul 2024 15:20:20 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/logpm/trunkline/dto/LoadCarsDTO.java | 1 + .../impl/BasicdataCodeServiceImpl.java | 4 +++- .../mapper/TrunklineCarsLoadMapper.xml | 8 ++++++- .../service/impl/OpenOrderServiceImpl.java | 3 ++- .../impl/TrunklineBillladingServiceImpl.java | 21 +++++++++++++++---- 5 files changed, 30 insertions(+), 7 deletions(-) diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java index 178ea743d..584ac8f4c 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java @@ -81,6 +81,7 @@ public class LoadCarsDTO implements Serializable { private List orderCodes; + private List orderCodeList; private Integer enterNum; diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataCodeServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataCodeServiceImpl.java index ac9e14540..bbaf61501 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataCodeServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataCodeServiceImpl.java @@ -136,6 +136,8 @@ public class BasicdataCodeServiceImpl implements IBasicdataCodeService { //包条 HT+仓库拼音/超管/职能+年月日时分秒+订单索引+包条个数索引CodeNumConstant.PACKAGE BasicdataCodeRecordEntity basicdataCodeRecordEntity = getBasicdataCodeRecordEntity(CodeDesEnum.PACKAGE.getCodeNum(), basicdataWarehouseEntity); + Calendar calendar = Calendar.getInstance(); + Integer day = calendar.get(Calendar.DAY_OF_MONTH); Integer oldNum = basicdataCodeRecordEntity.getNum(); List packageCodes = new ArrayList<>(); @@ -150,7 +152,7 @@ public class BasicdataCodeServiceImpl implements IBasicdataCodeService { String time = new String(System.currentTimeMillis() + ""); time=time.substring(4); oldNum = oldNum + 1; - String packageCode = "HT" + warehouseCode + year + CommonUtil.geFourNumberByString(basicdataCodeRecordEntity.getMonth(), 2) + basicdataCodeRecordEntity.getDay() + time; + String packageCode = "HT" + warehouseCode + year + CommonUtil.geFourNumberByString(basicdataCodeRecordEntity.getMonth(), 2) + day + time; packageCodes.add(packageCode); } basicdataCodeRecordEntity.setNum(oldNum); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml index c810ebbce..f753683b3 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml @@ -574,8 +574,14 @@ #{item} + + and ldsa.order_code in + + #{item} + + - and Locate(#{param.waybillNo},lww.waybill_no) + and Locate(#{param.waybillNo},lww.waybill_no) > 0 diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java index 02be419d1..3a54cd6c0 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java @@ -1385,7 +1385,8 @@ public class OpenOrderServiceImpl implements IOpenOrderService { String materialName = pacakgeDetailExcelDTO.getMaterialName(); String materialCode = pacakgeDetailExcelDTO.getMaterialCode(); - + advanceDetailModel.setMaterialName(materialName); + advanceDetailModel.setMaterialCode(materialCode); if (StringUtil.isNotBlank(materialCode) && StringUtil.isNotBlank(materialName)) { Long materialId = materialMap.get(materialCode); if (!Objects.isNull(materialId)) { diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java index d91bd63af..00f3c10ac 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java @@ -204,7 +204,7 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl billladingWaybillEntities = billladingWaybillService.findNoFinishWaybillByBillladingId(billladingId); Map map = new HashMap<>(); @@ -480,7 +480,7 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl