|
|
|
@ -6814,6 +6814,11 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
//已经进行装车
|
|
|
|
|
loadscanEntity.setScanStatus(LoadingStatusConstant.quxiao.getValue()); |
|
|
|
|
distributionLoadscanService.updateById(loadscanEntity); |
|
|
|
|
//对此包件进行回库操作
|
|
|
|
|
parcelListEntity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
parcelListEntity.setOrderPackageReservationStatus(OrderPackageReservationStatusConstant.daiyuyue.getValue()); |
|
|
|
|
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.weizhuancghe.getValue()); |
|
|
|
|
distributionParcelListService.updateById(parcelListEntity); |
|
|
|
|
// 对应签收信息的装车数量要进行扣减
|
|
|
|
|
int a = distributionSignforMapper.deductionLoadingPacjageNum(loadscanEntity.getReservationId(), loadscanEntity.getDeliveryId(), loadscanEntity.getLoadedNub()); |
|
|
|
|
//维护订单状态
|
|
|
|
@ -6821,6 +6826,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
JSONObject js = handleLogJSONObject(myCurrentWarehouse, AuthUtil.getUser(), parcelListEntity.getOrderPackageCode(), content, WorkNodeEnums.CANCEL_DISTRIBUTION.getCode()); |
|
|
|
|
aaa.add(js); |
|
|
|
|
//对滞留包件进行签收信息数量减少
|
|
|
|
|
//进行指定包件的相关订单维护
|
|
|
|
|
distributionStockArticleService.maintenanceOrderInfo(parcelListEntity.getOrderCode(),parcelListEntity.getWarehouseId()); |
|
|
|
|
} |
|
|
|
|
if (!aaa.isEmpty()) { |
|
|
|
|
trunklinePackageTrackLogClient.addPackageTrackLog(aaa); |
|
|
|
@ -8659,6 +8666,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
return Resp.scanFail("此包件存在计划", "此包件存在计划"); |
|
|
|
|
} |
|
|
|
|
//判定是否满足异常装车
|
|
|
|
|
if (!deliveryListEntity.getKind().equals("1")) { |
|
|
|
|
return Resp.scanFail("外协不允许进行异常操作", "外协不允许进行异常操作"); |
|
|
|
|
} |
|
|
|
|
Boolean isAbnormalLoadingFlag = judgeIsAbnormalLoading(deliveryId, parcelListEntity, reservationId); |
|
|
|
|
if (isAbnormalLoadingFlag) { |
|
|
|
|
log.info("异常装车判定成功>>>>>>packageCode:{},reservationId:{}", distrilbutionloadingscanDTO.getBarcode(), distrilbutionloadingscanDTO.getReservationId()); |
|
|
|
@ -9246,6 +9256,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
.eq(DistributionLoadscanEntity::getDeliveryId, deliveryList.getId()) |
|
|
|
|
.eq(DistributionLoadscanEntity::getReservationId, distrilbutionloadingscanDTO.getReservationId()) |
|
|
|
|
.ne(DistributionLoadscanEntity::getIsAbnormalLoading, 2) |
|
|
|
|
.ne(DistributionLoadscanEntity::getScanStatus, LoadingStatusConstant.quxiao.getValue()) |
|
|
|
|
); |
|
|
|
|
int abnormalTotal = 0; |
|
|
|
|
if (Func.isNotEmpty(abnormalLoadingPack)) { |
|
|
|
|