From 5b5b23070842038f827aaf80279f7d4c4f378048 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Mon, 6 Jan 2025 11:02:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=AD=BE?= =?UTF-8?q?=E6=94=B6=E6=97=A5=E5=BF=97=E6=B2=A1=E7=94=A8=E7=AD=BE=E6=94=B6?= =?UTF-8?q?=E4=BA=BA=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DistributionSignforServiceImpl.java | 2 +- .../factory/receiver/OrderStatusHandler.java | 146 ------------------ 2 files changed, 1 insertion(+), 147 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java index 36e335493..9d8426064 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java @@ -8140,7 +8140,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl m = new HashMap<>(); -// m.put("trayType",newTrayType); -// m.put("trayCode","T"+trayId); -// m.put("warehouseId",warehouseId); -// m.put("orderPackageCode",unitNo); -// -// R response = warehouseTrayTypeClient.orderScanOrderPackageCodeReturnR(m); -// int code = response.getCode(); -// if(code == 4001){ -// log.info("####################orderStatusHandler: 包件已在当前托盘打托 unitNo={} trayCode={}",unitNo,"T"+trayId); -// }else if(code == 4002){ -// log.info("####################orderStatusHandler: 包件已在其他托盘打托 unitNo={} ",unitNo); -// WarehouseTrayGoodsEntity trayGoodsEntity = warehouseTrayGoodsClient.findTrayCodeByOrderPackageCode(unitNo); -// if(Objects.isNull(trayGoodsEntity)){ -// log.warn("####################orderStatusHandler: 包件未打托 unitNo={}",unitNo); -// }else{ -// String oldTrayCode = trayGoodsEntity.getTrayCode(); -// Long trayGoodsId = trayGoodsEntity.getId(); -// Long wid = trayGoodsEntity.getWarehouseId(); -// BasicdataTrayEntity oldTrayEntity = basicdataTrayClient.getTrayByTrayCode(oldTrayCode); -// Long oldTrayId = oldTrayEntity.getId(); -// //判断托盘是否有上架 -// Long oldAllocationId = taryAllocationClient.findAllocationByTrayId(oldTrayId); -// if (Objects.isNull(oldAllocationId)){ -// //没有上架 -// //直接解绑托盘 -// warehouseTrayGoodsClient.delTrayGoodsById(trayGoodsId,wid); -// }else{ -// //有上架 -// //下架 -// updownTypeClient.downPackage(unitNo,wid); -// } -// } -// -// boolean b1 = warehouseTrayTypeClient.orderScanOrderPackageCode(m); -// if(!b1){ -// log.warn("####################orderStatusHandler: 二次打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId); -// }else{ -// log.info("####################orderStatusHandler: 二次打托成功 unitNo={} trayCode={}",unitNo,"T"+trayId); -// } -// }else if(code == 4003){ -// log.info("####################orderStatusHandler: 包件未打托已上架 unitNo={} ",unitNo); -// WarehouseUpdownGoodsEntity updownGoodsEntity = warehouseUpdownGoodsClient.findEntityByOrderPackageCode(unitNo); -// if(Objects.isNull(updownGoodsEntity)){ -// log.warn("####################orderStatusHandler: 包件未上架 unitNo={}",unitNo); -// }else{ -// Long wid = updownGoodsEntity.getWarehouseId(); -// updownTypeClient.downPackage(unitNo,wid); -// } -// boolean b1 = warehouseTrayTypeClient.orderScanOrderPackageCode(m); -// if(!b1){ -// log.warn("####################orderStatusHandler: 二次打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId); -// }else{ -// log.info("####################orderStatusHandler: 二次打托成功 unitNo={} trayCode={}",unitNo,"T"+trayId); -// } -// }else if(code == 4004){ -// log.info("####################orderStatusHandler: 包件打托方式不正确 unitNo={} ",unitNo); -// //先去空置托盘再打托 -// warehouseTrayTypeClient.trayToNull("T"+trayId); -// boolean b1 = warehouseTrayTypeClient.orderScanOrderPackageCode(m); -// if(!b1){ -// log.warn("####################orderStatusHandler: 二次打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId); -// } -// }else{ -// String msg1 = r.getMsg(); -// int code1 = r.getCode(); -// log.warn("######################orderStatusHandler: 打托失败 msg={} code={}",msg1,code1); -// log.warn("######################orderStatusHandler: 打托失败 unitNo={} trayCode={}",unitNo,"T"+trayId); -// } -// -// }else{ -// //有上架就上架 -// updownTypeClient.upShelfPackage(unitNo,allocationId,warehouseId); -// } -// } - } }