diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/OrderPackageStatusDataHandler.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/OrderPackageStatusDataHandler.java index fbdda8cc1..12aa4f6c1 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/OrderPackageStatusDataHandler.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/OrderPackageStatusDataHandler.java @@ -50,7 +50,7 @@ public class OrderPackageStatusDataHandler { try{ - log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>处理状态>>>>>>>>>>>>>>>>>>>>>>>>>>"); + log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>处理状态 start>>>>>>>>>>>>>>>>>>>>>>>>>>"); Long myCurrentWarehouseId = Long.parseLong(map.get("myCurrentWarehouseId").toString()); String distrilbutionloadingscanDTOJson = (String)map.get("distrilbutionloadingscanDTO"); DistrilbutionloadingscanDTO distrilbutionloadingscanDTO = JSONObject.parseObject(distrilbutionloadingscanDTOJson,DistrilbutionloadingscanDTO.class); @@ -69,6 +69,8 @@ public class OrderPackageStatusDataHandler { distributionReservationService.maintenanceReservationInfo(reservationEntity.getId()); //维护配送任务信息 distributionDeliveryListService.maintenanceDeliveryInfo(distrilbutionloadingscanDTO.getDeliveryId()); + log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>处理状态 end>>>>>>>>>>>>>>>>>>>>>>>>>>"); + }catch (Exception e){ log.error(">>>>>> 维护包件信息 报错",e); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index c7026df02..7d364364e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -673,7 +673,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl disStockListDetailEntities = distributionReservationMapper.selectInventoryListByReservation(distributionCancelReservationPackageDTO.getReservationId()); - if (Func.isNotEmpty(disStockListDetailEntities)){ - for (String invenPackageId : invenPackageIds) { - List inventory = disStockListDetailEntities.stream().filter(inven -> inven.getId().equals(Long.parseLong(invenPackageId))).collect(Collectors.toList()); - if (Func.isNotEmpty(inventory) &&inventory.size() == 1){ - DisStockListDetailEntity disStockListDetailEntity = inventory.get(0); - if (disStockListDetailEntity.getStockSignfoStatus().equals(InventorySigningStatusConstant.yiqianshou.getValue()) - ||disStockListDetailEntity.getStockLockingStatus().equals(InventoryLoadingStatusConstant.yizhuangche.getValue())){ - log.info(method+"检测当前取消包件存在装车或者签收操作:inventoryPackageId{}",disStockListDetailEntity.getId()); - throw new RuntimeException("包件存在装车、签收,无法进行取消"); - } - //库存品配送包件的取消操作 - disStockListDetailEntity.setStockPackageStatus(InventoryPackageStatusConstant.quxiao.getValue()); - disStockListDetailService.updateById(disStockListDetailEntity); - //维护对应预约的配送库存品品类数据 - distributionReservationStocklistService.maintenanceReservationStockList(distributionCancelReservationPackageDTO.getReservationId()); - //进行冻结数量的扣减 - distributionStockListMapper.decreaseStockListQuantityOccupied(disStockListDetailEntity.getStockListId(),disStockListDetailEntity.getNum()); - }else { - log.error(method+"库存品包件信息异常");; - throw new RuntimeException("库存品包件信息异常"); - } - - } - }else { - log.error(method+"预约单没有库存品包件"); - return R.fail("此预约任务无库存品包件...."); - } - break; - default: //维护预约单状态 this.maintenanceReservationInfo(distributionCancelReservationPackageDTO.getReservationId()); //维护预约单数量 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 53777a969..a65477298 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 @@ -1082,7 +1082,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl parcelListEntities = distributionDeliveryListMapper.selectPackageListByDeliveryListId(distrilbutionloadingscanDTO.getDeliveryId()); @@ -2161,7 +2165,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl getAppDeliveryorderListPage( DistributionAppDeliveryListDTO distributionDeliveryList) { - if (Func.isNotEmpty(distributionDeliveryList.getReservationId())) { + if (Func.isEmpty(distributionDeliveryList.getReservationId())) { log.error("参数缺失reservationId:{}", distributionDeliveryList.getReservationId()); } @@ -2633,7 +2637,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl