Browse Source

商配计划调整

single_db
汤建军 1 year ago
parent
commit
f6e5788de6
  1. 11
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

11
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -2964,17 +2964,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
stockupInfoEntity.setStockUpType("1");
distributionStockupInfoService.save(stockupInfoEntity);
} else {
//通过配送任务查询该客户的信息是否完成审核,如果审核了则视为一个新客户
DistributionSignforEntity signforEntity = distributionSignforMapper.selectByDeliveryIdAndMallName(deliveryListEntity.getId(),k);
if (Func.isNotEmpty(signforEntity)){
if (Func.isNotEmpty(oldClient.get(k)) && signforEntity.getSigningStatus().equals(SignforStatusConstant.yiqianshou.getValue())){
//拦截
log.error("###################商配配送对完成复核进行订单追加操作失败");
log.error("###################配送ID:{}",deliveryListEntity.getId());
log.error("###################客户名称:{}",k);
throw new RuntimeException(k+"此客户已完成签收");
}
}
//根据配送计划和运单号查询出该预约
// DistributionReservationEntity reservationEntity = baseMapper.selectReservationByDeliveryListIdAndCustomer(deliveryListEntityId, k);
DistributionReservationEntity reservationEntity = baseMapper.selectReservationByDeliveryListIdAndCustomerUnit(deliveryListEntityId, k);

Loading…
Cancel
Save