|
|
|
@ -1347,6 +1347,12 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if (orderId != 0) { |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadByLoadId: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer isTransfer = 1; |
|
|
|
|
List<DistributionParcelListVO> parcelListEntityList = distributionParcelListClient.findEntityVOListByOrderCode(orderCode, fromWarehouseId); |
|
|
|
@ -5201,6 +5207,10 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if (orderId != 0) { |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################zeroUnloadEnter: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Integer isTransfer = 1; |
|
|
|
|
List<DistributionParcelListVO> parcelListEntityList = distributionParcelListClient.findEntityVOListByOrderCode(orderCode, fromWarehouseId); |
|
|
|
@ -5749,6 +5759,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
if(NumberUtil.equals(orderId,0)){ |
|
|
|
|
log.warn("################111111: 保存失败"); |
|
|
|
|
throw new CustomerException(405,"保存失败"); |
|
|
|
|
}else{ |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################updateParcelListToWarehouse: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
stockArticleEntity.setGenre(1); |
|
|
|
@ -7628,6 +7643,15 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if(orderId.equals(0L)){ |
|
|
|
|
log.warn("################batchUnload: 订单信息保存失败 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################batchUnload: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
finalOrderCodes.put(e, orderId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -7749,6 +7773,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if(orderId.equals(0L)){ |
|
|
|
|
log.warn("################batchUnload: 订单信息保存失败 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################batchUnload: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
finalOrderCodes1.put(e, orderId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -10105,6 +10137,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newEntity.setAllocation(null); |
|
|
|
|
newEntity.setTrays(null); |
|
|
|
|
Long orderId = distributionStockArticleClient.addData(newEntity); |
|
|
|
|
if(orderId.equals(0L)){ |
|
|
|
|
log.warn("################getDistributionStockArticle: 订单信息保存失败 orderCode={} warehouseId={}",newEntity.getOrderCode(),newEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################getDistributionStockArticle: 订单信息正在更新 orderCode={} warehouseId={}",newEntity.getOrderCode(),newEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
newEntity.setId(orderId); |
|
|
|
|
return newEntity; |
|
|
|
|
} |
|
|
|
@ -11897,6 +11937,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
|
if(currentOrderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息保存失败 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(currentOrderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息正在更新 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
|
} else { |
|
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
@ -12112,6 +12160,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
|
if(currentOrderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息保存失败 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(currentOrderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息正在更新 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
|
} else { |
|
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
@ -12286,6 +12342,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
stockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
currentOrderId = distributionStockArticleClient.addData(stockArticleEntity); |
|
|
|
|
if(currentOrderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息保存失败 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(currentOrderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
stockArticleEntity.setId(currentOrderId); |
|
|
|
|
} else { |
|
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
|
@ -12386,6 +12450,15 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticle.setWarehouseEntryTime(new Date()); |
|
|
|
|
newStockArticle.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticle); |
|
|
|
|
if(orderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息保存失败 orderCode={} warehouseId={}",newStockArticle.getOrderCode(),newStockArticle.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackage: 订单信息正在更新 orderCode={} warehouseId={}",newStockArticle.getOrderCode(),newStockArticle.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
orderId = newStockArticle.getId(); |
|
|
|
|
} |
|
|
|
@ -12753,6 +12826,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
|
if(currentOrderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息保存失败 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(currentOrderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息正在更新 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
|
} else { |
|
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
@ -12902,6 +12983,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
|
if(currentOrderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息保存失败 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(currentOrderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息正在更新 orderCode={} warehouseId={}",currentStockArticleEntity.getOrderCode(),currentStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
|
} else { |
|
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
@ -13067,6 +13156,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
stockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
currentOrderId = distributionStockArticleClient.addData(stockArticleEntity); |
|
|
|
|
if(currentOrderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息保存失败 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(currentOrderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
stockArticleEntity.setId(currentOrderId); |
|
|
|
|
} else { |
|
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
|
@ -13164,6 +13261,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticle.setWarehouseEntryTime(new Date()); |
|
|
|
|
newStockArticle.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticle); |
|
|
|
|
if(orderId.equals(0L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息保存失败 orderCode={} warehouseId={}",newStockArticle.getOrderCode(),newStockArticle.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息保存失败"); |
|
|
|
|
} |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadPackageNoXz: 订单信息正在更新 orderCode={} warehouseId={}",newStockArticle.getOrderCode(),newStockArticle.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
orderId = newStockArticle.getId(); |
|
|
|
|
} |
|
|
|
@ -13863,6 +13968,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
newStockArticleEntity.setCarsLoadNum(0); |
|
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
|
if (orderId != 0) { |
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
log.warn("################unloadZeroWithTray: 订单信息正在更新 orderCode={} warehouseId={}",newStockArticleEntity.getOrderCode(),newStockArticleEntity.getWarehouseId()); |
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntityList = distributionParcelListClient.findEntityListByOrderCode(orderCode, fromWarehouseId); |
|
|
|
|
List<DistributionParcelNumberEntity> ls = new ArrayList<>(); |
|
|
|
|
for (DistributionParcelListEntity parcelListEntity : parcelListEntityList) { |
|
|
|
|