|
|
|
@ -8069,6 +8069,11 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)) { |
|
|
|
|
return R.fail(403, "未授权!!!"); |
|
|
|
|
} |
|
|
|
|
//查询是否存在签收数据
|
|
|
|
|
Integer signingNum = distributionLoadscanMapper.selectSigningNumByReservationId(distrilbutionloadingscanDTO.getReservationId()); |
|
|
|
|
if (signingNum > 0){ |
|
|
|
|
return Resp.scanFail("当前车次存在签收数据","当前车次存在签收数据"); |
|
|
|
|
} |
|
|
|
|
//获取当前用户司机
|
|
|
|
|
DistributionDeliveryListEntity distributionDeliveryListEntity = distributionDeliveryListMapper.selectById(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
if (DeliveryStatusConstant.yiwancheng.getValue().equals(distributionDeliveryListEntity.getDeliveryStatus())) { |
|
|
|
@ -8134,6 +8139,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
private void deletedAbnormalData(Long deliveryId) { |
|
|
|
|
distributionLoadscanAbnormalService.remove(Wrappers.<DistributionLoadscanAbnormalEntity>update().lambda() |
|
|
|
|
.eq(DistributionLoadscanAbnormalEntity::getDeliveryListId, deliveryId) |
|
|
|
|
.eq(DistributionLoadscanAbnormalEntity::getAbnormalType, LoadingAbnormalTypeConstant.zhuangcheyichang.getValue()) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -8713,7 +8719,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
switch (type) { |
|
|
|
|
case 1: |
|
|
|
|
|
|
|
|
|
if (Objects.isNull(distrilbutionloadingscanDTO.getBarcode())) { |
|
|
|
|
log.error(method + "参数缺失Barcode"); |
|
|
|
|
return Resp.fail("参数缺失,请联系管理员"); |
|
|
|
@ -8821,6 +8826,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
log.error(method + "参数缺失ParcelListDTOS"); |
|
|
|
|
return Resp.fail("参数缺失,请联系管理员"); |
|
|
|
|
} |
|
|
|
|
if (DeliveryStartStatusConstant.yifache.equals(deliveryListEntity.getIsStart())) { |
|
|
|
|
return Resp.scanFail("已发车无法进行零担装车", "已发车无法进行零担装车"); |
|
|
|
|
} |
|
|
|
|
List<DistributionParcelNumberDTO> parcelListDTOS = distrilbutionloadingscanDTO.getParcelListDTOS(); |
|
|
|
|
boolean flag = parcelListDTOS.stream().allMatch(d -> d.getLoadingNum() < 0); |
|
|
|
|
if (flag) { |
|
|
|
|