|
|
|
@ -4786,6 +4786,12 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
if (!abnormalEntityList.isEmpty()) { |
|
|
|
|
distributionLoadscanAbnormalService.saveBatch(abnormalEntityList); |
|
|
|
|
//进行异常的标记
|
|
|
|
|
List<Long> reservationIds = abnormalEntityList.stream().map(DistributionLoadscanAbnormalEntity::getReservationId).collect(Collectors.toList()); |
|
|
|
|
distributionSignforService.update(Wrappers.<DistributionSignforEntity>update().lambda() |
|
|
|
|
.in(DistributionSignforEntity::getReservationId,reservationIds) |
|
|
|
|
.set(DistributionSignforEntity::getIsHaveAbnormalPackage,2) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -8687,6 +8693,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
//正常进行装车
|
|
|
|
|
DistributionLoadscanEntity loadscanEntity = createdDistributionLoadscanEntity(deliveryListEntity, distributionDeliverySelfEntity, reservationId, parcelListEntity, myCurrentWarehouse, user); |
|
|
|
|
distributionLoadscanService.save(loadscanEntity); |
|
|
|
|
//这里还需要对异常记录进行关闭和完成
|
|
|
|
|
distributionLoadscanAbnormalService.completeLoadingAbnormal(loadscanEntity.getOrderPackageCode(),loadscanEntity.getWarehouseId(),loadscanEntity.getReservationId(),loadscanEntity.getScanUser()); |
|
|
|
|
//更新包件装车状态
|
|
|
|
|
packageLockIds.add(parcelListEntity.getId()); |
|
|
|
|
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.yizhuangche.getValue()); |
|
|
|
|