|
|
@ -3589,6 +3589,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
carsLoadScanEntity.setWaybillNo(trunklineAdvanceDetailEntity.getWaybillNo()); |
|
|
|
carsLoadScanEntity.setWaybillNo(trunklineAdvanceDetailEntity.getWaybillNo()); |
|
|
|
carsLoadScanEntity.setWaybillId(trunklineAdvanceDetailEntity.getWaybillId()); |
|
|
|
carsLoadScanEntity.setWaybillId(trunklineAdvanceDetailEntity.getWaybillId()); |
|
|
|
carsLoadScanEntity.setIsData(1); |
|
|
|
carsLoadScanEntity.setIsData(1); |
|
|
|
|
|
|
|
carsLoadScanEntity.setFromWarehouseId(trunklineAdvanceDetailEntity.getNowWarehouseId()); |
|
|
|
String packageStatus = trunklineAdvanceDetailEntity.getPackageStatus(); |
|
|
|
String packageStatus = trunklineAdvanceDetailEntity.getPackageStatus(); |
|
|
|
if ("0".equals(packageStatus)) { |
|
|
|
if ("0".equals(packageStatus)) { |
|
|
|
//未入库
|
|
|
|
//未入库
|
|
|
@ -8881,7 +8882,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
|
|
|
|
|
|
|
|
//查询包件是否签收
|
|
|
|
//查询包件是否签收
|
|
|
|
DistributionParcelListEntity signDistributionParcelListEntity = distributionParcelListClient.findOrderPackageCodeAndStatus(orderPackageCode,"70"); |
|
|
|
DistributionParcelListEntity signDistributionParcelListEntity = distributionParcelListClient.findOrderPackageCodeAndStatus(orderPackageCode,"70"); |
|
|
|
if (!Objects.isNull(distributionParcelListEntity)) { |
|
|
|
if (!Objects.isNull(signDistributionParcelListEntity)) { |
|
|
|
log.warn("##############unloadPackage: 包件已签收 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); |
|
|
|
log.warn("##############unloadPackage: 包件已签收 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); |
|
|
|
return R.fail(405, "包件已签收"); |
|
|
|
return R.fail(405, "包件已签收"); |
|
|
|
} |
|
|
|
} |
|
|
@ -9051,6 +9052,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
currentStockArticleEntity.setId(null); |
|
|
|
currentStockArticleEntity.setId(null); |
|
|
|
currentStockArticleEntity.setWarehouseId(warehouseId); |
|
|
|
currentStockArticleEntity.setWarehouseId(warehouseId); |
|
|
|
currentStockArticleEntity.setWarehouse(warehouseName); |
|
|
|
currentStockArticleEntity.setWarehouse(warehouseName); |
|
|
|
|
|
|
|
currentStockArticleEntity.setGenre(1); |
|
|
|
currentStockArticleEntity.setHandQuantity(0); |
|
|
|
currentStockArticleEntity.setHandQuantity(0); |
|
|
|
currentStockArticleEntity.setCompleteSet(1); |
|
|
|
currentStockArticleEntity.setCompleteSet(1); |
|
|
|
currentStockArticleEntity.setStockupStatus("10"); |
|
|
|
currentStockArticleEntity.setStockupStatus("10"); |
|
|
@ -9070,6 +9072,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
|
|
|
|
currentStockArticleEntity.setGenre(1); |
|
|
|
|
|
|
|
distributionStockArticleClient.updateEntity(currentStockArticleEntity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//判断包件当前仓是否是目的仓
|
|
|
|
//判断包件当前仓是否是目的仓
|
|
|
@ -9248,12 +9252,15 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
currentStockArticleEntity.setTransferQuantity(0); |
|
|
|
currentStockArticleEntity.setTransferQuantity(0); |
|
|
|
currentStockArticleEntity.setSigninQuantity(0); |
|
|
|
currentStockArticleEntity.setSigninQuantity(0); |
|
|
|
currentStockArticleEntity.setIncomingNum(0); |
|
|
|
currentStockArticleEntity.setIncomingNum(0); |
|
|
|
|
|
|
|
currentStockArticleEntity.setGenre(1); |
|
|
|
currentStockArticleEntity.setAllocation(null); |
|
|
|
currentStockArticleEntity.setAllocation(null); |
|
|
|
currentStockArticleEntity.setTrays(null); |
|
|
|
currentStockArticleEntity.setTrays(null); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
|
|
|
|
stockArticleEntity.setGenre(1); |
|
|
|
|
|
|
|
distributionStockArticleClient.updateEntity(stockArticleEntity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//判断包件当前仓是否是目的仓
|
|
|
|
//判断包件当前仓是否是目的仓
|
|
|
@ -9406,6 +9413,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
stockArticleEntity.setId(currentOrderId); |
|
|
|
stockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
|
|
|
|
|
stockArticleEntity.setGenre(1); |
|
|
|
|
|
|
|
distributionStockArticleClient.updateEntity(stockArticleEntity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//判断包件当前仓是否是目的仓
|
|
|
|
//判断包件当前仓是否是目的仓
|
|
|
@ -9639,7 +9648,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
|
|
|
|
|
|
|
|
//查询包件是否签收
|
|
|
|
//查询包件是否签收
|
|
|
|
DistributionParcelListEntity signDistributionParcelListEntity = distributionParcelListClient.findOrderPackageCodeAndStatus(orderPackageCode,"70"); |
|
|
|
DistributionParcelListEntity signDistributionParcelListEntity = distributionParcelListClient.findOrderPackageCodeAndStatus(orderPackageCode,"70"); |
|
|
|
if (!Objects.isNull(distributionParcelListEntity)) { |
|
|
|
if (!Objects.isNull(signDistributionParcelListEntity)) { |
|
|
|
log.warn("##############unloadPackage: 包件已签收 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); |
|
|
|
log.warn("##############unloadPackage: 包件已签收 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); |
|
|
|
return R.fail(405, "包件已签收"); |
|
|
|
return R.fail(405, "包件已签收"); |
|
|
|
} |
|
|
|
} |
|
|
@ -9668,6 +9677,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
.eq("scan_code", orderPackageCode) |
|
|
|
.eq("scan_code", orderPackageCode) |
|
|
|
.eq("scan_status","1"); |
|
|
|
.eq("scan_status","1"); |
|
|
|
TrunklineCarsLoadScanEntity carsLoadScanEntity = trunklineCarsLoadScanService.getOne(loadScanQueryWrapper); |
|
|
|
TrunklineCarsLoadScanEntity carsLoadScanEntity = trunklineCarsLoadScanService.getOne(loadScanQueryWrapper); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(Objects.isNull(carsLoadScanEntity)){
|
|
|
|
|
|
|
|
// QueryWrapper<TrunklineCarsLoadScanEntity> loadScanQueryWrapper1 = new QueryWrapper<>();
|
|
|
|
|
|
|
|
// loadScanQueryWrapper1.eq("load_id", loadId)
|
|
|
|
|
|
|
|
// .eq("scan_code", orderPackageCode)
|
|
|
|
|
|
|
|
// .eq("scan_status","2")
|
|
|
|
|
|
|
|
// .eq("unload_node_id", warehouseId);
|
|
|
|
|
|
|
|
// carsLoadScanEntity = trunklineCarsLoadScanService.getOne(loadScanQueryWrapper);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断是否有装车扫描记录
|
|
|
|
//判断是否有装车扫描记录
|
|
|
|
if (Objects.isNull(carsLoadScanEntity)) { |
|
|
|
if (Objects.isNull(carsLoadScanEntity)) { |
|
|
|
//没有装车扫码记录
|
|
|
|
//没有装车扫码记录
|
|
|
|