Browse Source

1.优化卸车数据同步逻辑

pre-production
zhenghaoyu 4 days ago
parent
commit
7304ca69c4
  1. 2
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java
  2. 21
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

2
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/CarsLoadAsyncServiceImpl.java

@ -596,7 +596,7 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
abnormalRecordEntity.setDealTime(new Date()); abnormalRecordEntity.setDealTime(new Date());
abnormalRecordEntity.setDealUserId(userId); abnormalRecordEntity.setDealUserId(userId);
abnormalRecordEntity.setDealUserName(nickName); abnormalRecordEntity.setDealUserName(nickName);
abnormalRecordEntity.setRemark("无卸车记录,已入库,系统判定自动完结"); abnormalRecordEntity.setRemark("无卸车记录,已在其他车次入库,系统判定自动完结");
} }
addList.add(abnormalRecordEntity); addList.add(abnormalRecordEntity);
// abnormalRecordClient.addAbnormalRecord(abnormalRecordEntity); // abnormalRecordClient.addAbnormalRecord(abnormalRecordEntity);

21
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

@ -13618,7 +13618,13 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
updateScanEntity.setMaterialCode(trunklineAdvanceDetailEntity.getMaterialCode()); updateScanEntity.setMaterialCode(trunklineAdvanceDetailEntity.getMaterialCode());
updateScanEntity.setMaterialName(trunklineAdvanceDetailEntity.getMaterialName()); updateScanEntity.setMaterialName(trunklineAdvanceDetailEntity.getMaterialName());
updateScanEntity.setIsData(1); updateScanEntity.setIsData(1);
updateScanList.add(updateScanEntity);
DistributionParcelListEntity parcelList = parcelMap.get(orderPackageCode);
if(Objects.isNull(parcelList)){
updateScanList.add(updateScanEntity);
}
} }
}); });
@ -13675,14 +13681,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
}); });
} }
DistributionParcelListEntity parcelList = parcelMap.get(orderPackageCode); TrunklineAdvanceDetailEntity updateEntity = new TrunklineAdvanceDetailEntity();
if(Objects.isNull(parcelList)){ updateEntity.setId(trunklineAdvanceDetailEntity.getId());
TrunklineAdvanceDetailEntity updateEntity = new TrunklineAdvanceDetailEntity(); updateEntity.setNowWarehouseId(warehouseId);
updateEntity.setId(trunklineAdvanceDetailEntity.getId()); updateEntity.setNowWarehouseName(warehouseName);
updateEntity.setNowWarehouseId(warehouseId); updateNowWarehouseList.add(updateEntity);
updateEntity.setNowWarehouseName(warehouseName);
updateNowWarehouseList.add(updateEntity);
}
} }
}); });

Loading…
Cancel
Save