|
|
|
@ -1146,6 +1146,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
Long warehouseId = loadCarsDTO.getWarehouseId(); |
|
|
|
|
Integer unloadType = loadCarsDTO.getUnloadType(); |
|
|
|
|
|
|
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity warehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
|
if (Objects.isNull(warehouseEntity)) { |
|
|
|
|
log.warn("#############unloadByLoadId: 仓库信息不存在 warehouseId={}", warehouseId); |
|
|
|
@ -1319,6 +1321,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
|
newStockArticleEntity.setCarsLoadNum(0); |
|
|
|
|
newStockArticleEntity.setWarehouseEntryTime(date); |
|
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if (orderId != 0) { |
|
|
|
|
|
|
|
|
@ -1340,6 +1344,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newParcelListEntity.setWarehouse(warehouseEntity.getName()); |
|
|
|
|
newParcelListEntity.setStockArticleId(orderId); |
|
|
|
|
newParcelListEntity.setQuantity(totalUnloadNum); |
|
|
|
|
newParcelListEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
Long acceptWarehouseId = parcelListEntity.getAcceptWarehouseId(); |
|
|
|
|
if(warehouseId.equals(acceptWarehouseId)){ |
|
|
|
|
newParcelListEntity.setIsTransfer(0); |
|
|
|
@ -1390,6 +1395,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
newStockArticleEntity.setHandQuantity(hQuantity); |
|
|
|
|
newStockArticleEntity.setIncomingNum(incomingNum); |
|
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
|
|
|
|
|
List<DistributionParcelListEntity> listEntityList = distributionParcelListClient.findEntityListByOrderCode(orderCode, warehouseId); |
|
|
|
|
//把listEntityList中所有元素的id放入一个集合
|
|
|
|
@ -1517,12 +1523,6 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
// 发送卸车作业事件
|
|
|
|
|
carsLoadAsyncService.sendStationArrivedEnter(carsLoadEntity,brands, AuthUtil.getUser(), warehouseEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -5120,6 +5120,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
@Override |
|
|
|
|
public R zeroUnloadEnter(List<Long> loadScanIds, Long warehouseId, String warehouseName) { |
|
|
|
|
|
|
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
|
|
List<TrunklineCarsLoadScanEntity> carsLoadScanEntityList = trunklineCarsLoadScanService.findListByIds(loadScanIds); |
|
|
|
|
//排除carsLoadScanEntityList中unloadCheck为1的值
|
|
|
|
|
carsLoadScanEntityList = carsLoadScanEntityList.stream().filter(carsLoadScanEntity -> !carsLoadScanEntity.getUnloadCheck().equals(1)).collect(Collectors.toList()); |
|
|
|
@ -5181,6 +5183,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
|
newStockArticleEntity.setCarsLoadNum(0); |
|
|
|
|
newStockArticleEntity.setWarehouseEntryTime(date); |
|
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if (orderId != 0) { |
|
|
|
|
|
|
|
|
@ -5202,6 +5206,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newParcelListEntity.setWarehouse(warehouseName); |
|
|
|
|
newParcelListEntity.setStockArticleId(orderId); |
|
|
|
|
newParcelListEntity.setQuantity(totalUnloadNum); |
|
|
|
|
newParcelListEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
Long acceptWarehouseId = parcelListEntity.getAcceptWarehouseId(); |
|
|
|
|
if(warehouseId.equals(acceptWarehouseId)){ |
|
|
|
|
newParcelListEntity.setIsTransfer(0); |
|
|
|
@ -5248,6 +5253,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
newStockArticleEntity.setHandQuantity(hQuantity); |
|
|
|
|
newStockArticleEntity.setIncomingNum(incomingNum); |
|
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
|
|
|
|
|
List<DistributionParcelListEntity> listEntityList = distributionParcelListClient.findEntityListByOrderCode(orderCode, warehouseId); |
|
|
|
|
//把listEntityList中所有元素的id放入一个集合
|
|
|
|
|