From 0cd8da978d2125edad9db8cb1f9f4238d2bda257 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Sat, 23 Mar 2024 23:16:13 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A4=84=E7=90=86=E5=8C=85=E4=BB=B6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=BA=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/InventoryDetailMapper.xml | 1 + .../jobhandle/SyncOrderInfoToPlatform.java | 24 +++++++++++++++++++ .../patch/service/ISyncOrderInfoService.java | 2 ++ .../impl/SyncOrderInfoServiceImpl.java | 14 +++++++++++ 4 files changed, 41 insertions(+) diff --git a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/InventoryDetailMapper.xml b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/InventoryDetailMapper.xml index e363ddc06..1febfd13f 100644 --- a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/InventoryDetailMapper.xml +++ b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/InventoryDetailMapper.xml @@ -38,3 +38,4 @@ + diff --git a/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java b/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java index 5d8e18515..c348cbf6b 100644 --- a/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java +++ b/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java @@ -782,4 +782,28 @@ public class SyncOrderInfoToPlatform { return ReturnT.SUCCESS; } + + @XxlJob("clearOrderPackageStatusOut") + public ReturnT clearOrderPackageStatusOut(String param) { + log.info("############clearOrderPackageStatusOut: 清理包件数据为已出库 开始"); + + List ls = warehouseMappingDataService.findAllOrderPackage(); + + for (JSONObject l : ls) { + String orderPackageCode = l.getStr("orderPackageCode"); + Long warehouseId = l.getLong("warehouseId"); + + syncOrderInfoService.clearOrderPackageStatusOut(orderPackageCode,warehouseId); + + warehouseMappingDataService.updateClearOrderPackageStatusSignStatus(orderPackageCode,warehouseId,1); + } + + + + log.info("############repairNoOpenOrderOrderInfo: 清理包件数据为已签收 完成"); + + return ReturnT.SUCCESS; + } + + } diff --git a/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/ISyncOrderInfoService.java b/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/ISyncOrderInfoService.java index 179011cee..b49bd8056 100644 --- a/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/ISyncOrderInfoService.java +++ b/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/ISyncOrderInfoService.java @@ -22,4 +22,6 @@ public interface ISyncOrderInfoService { void clearOrderPackageStatusSign(String orderPackageCode, Long warehouseId); void clearOrderPackageStatusStock(String orderPackageCode, Long warehouseId); + + void clearOrderPackageStatusOut(String orderPackageCode, Long warehouseId); } diff --git a/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java b/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java index f5c9fcf32..29563ecd2 100644 --- a/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java +++ b/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java @@ -331,6 +331,20 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService { } } + @Override + public void clearOrderPackageStatusOut(String orderPackageCode, Long warehouseId) { + DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId); + if(!Objects.isNull(parcelListEntity)){ + String orderCode = parcelListEntity.getOrderCode(); + parcelListEntity.setOrderPackageStatus("60"); + parcelListEntity.setOrderPackageGroundingStatus("10"); + + distributionParcelListClient.update(parcelListEntity); + distributionStockArticleClient.updateOrderInfo(orderCode,warehouseId); + warehouseUpdownTypeClient.downPackageOrDelTray(orderPackageCode,warehouseId); + } + } + @Transactional(rollbackFor = Exception.class) @Override