Browse Source

1.干线bug修复

dist.1.3.0
zhenghaoyu 5 months ago
parent
commit
6a2980a8b4
  1. 26
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

26
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

@ -2266,19 +2266,19 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
trunklineWaybillPackageService.updateBatchById(trunklineWaybillPackageEntities); trunklineWaybillPackageService.updateBatchById(trunklineWaybillPackageEntities);
} }
} }
if(CollUtil.isNotEmpty(noArriveWarehousePackageCode)){ // if(CollUtil.isNotEmpty(noArriveWarehousePackageCode)){
QueryWrapper<TrunklineWaybillPackageEntity> queryWrapper = new QueryWrapper<>(); // QueryWrapper<TrunklineWaybillPackageEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.in("order_package_code",noArriveWarehousePackageCode) // queryWrapper.in("order_package_code",noArriveWarehousePackageCode)
.eq("is_deleted",0); // .eq("is_deleted",0);
List<TrunklineWaybillPackageEntity> trunklineWaybillPackageEntities = trunklineWaybillPackageService.list(queryWrapper); // List<TrunklineWaybillPackageEntity> trunklineWaybillPackageEntities = trunklineWaybillPackageService.list(queryWrapper);
if(!trunklineWaybillPackageEntities.isEmpty()){ // if(!trunklineWaybillPackageEntities.isEmpty()){
for (TrunklineWaybillPackageEntity trunklineWaybillPackageEntity : trunklineWaybillPackageEntities) { // for (TrunklineWaybillPackageEntity trunklineWaybillPackageEntity : trunklineWaybillPackageEntities) {
trunklineWaybillPackageEntity.setPackageStatus(WorkNodeEnums.INITIAL_WAREHOUSE_DEPART.getCode()); // trunklineWaybillPackageEntity.setPackageStatus(WorkNodeEnums.INITIAL_WAREHOUSE_DEPART.getCode());
} // }
trunklineWaybillPackageService.updateBatchById(trunklineWaybillPackageEntities); // trunklineWaybillPackageService.updateBatchById(trunklineWaybillPackageEntities);
} // }
} // }
trunklineWaybillPackageService.updateWaybillStatus(waybillEntity); // trunklineWaybillPackageService.updateWaybillStatus(waybillEntity);
} }
openOrderAsyncService.sendUpdateWaybillFanout(waybillEntity,wayBillDetailList,advanceIds,oldConsignee); openOrderAsyncService.sendUpdateWaybillFanout(waybillEntity,wayBillDetailList,advanceIds,oldConsignee);
return R.success("改单成功"); return R.success("改单成功");

Loading…
Cancel
Save