|
|
@ -1347,6 +1347,12 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
if (orderId != 0) { |
|
|
|
if (orderId != 0) { |
|
|
|
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
|
|
|
log.warn("################unloadByLoadId: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer isTransfer = 1; |
|
|
|
Integer isTransfer = 1; |
|
|
|
List<DistributionParcelListVO> parcelListEntityList = distributionParcelListClient.findEntityVOListByOrderCode(orderCode, fromWarehouseId); |
|
|
|
List<DistributionParcelListVO> parcelListEntityList = distributionParcelListClient.findEntityVOListByOrderCode(orderCode, fromWarehouseId); |
|
|
@ -1516,8 +1522,6 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
String content = "包件在 " + warehouseEntity.getName() + "卸车确认"; |
|
|
|
String content = "包件在 " + warehouseEntity.getName() + "卸车确认"; |
|
|
|
packageTrackLogAsyncService.addPackageTrackLog(AuthUtil.getTenantId(), AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getNickName(), orderPackageCodes, warehouseId, warehouseEntity.getName(), node.getCode(), content); |
|
|
|
packageTrackLogAsyncService.addPackageTrackLog(AuthUtil.getTenantId(), AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getNickName(), orderPackageCodes, warehouseId, warehouseEntity.getName(), node.getCode(), content); |
|
|
|
|
|
|
|
|
|
|
|
//同步一次系统无编码数据
|
|
|
|
|
|
|
|
syncNoSystemData(loadId, warehouseId, warehouseEntity.getName()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.warn("###############unloadPackage: 存入异常列表记录失败"); |
|
|
|
log.warn("###############unloadPackage: 存入异常列表记录失败"); |
|
|
@ -5203,6 +5207,10 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
newStockArticleEntity.setWarehouseEntryTimeEnd(date); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
if (orderId != 0) { |
|
|
|
if (orderId != 0) { |
|
|
|
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
|
|
|
log.warn("################zeroUnloadEnter: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Integer isTransfer = 1; |
|
|
|
Integer isTransfer = 1; |
|
|
|
List<DistributionParcelListVO> parcelListEntityList = distributionParcelListClient.findEntityVOListByOrderCode(orderCode, fromWarehouseId); |
|
|
|
List<DistributionParcelListVO> parcelListEntityList = distributionParcelListClient.findEntityVOListByOrderCode(orderCode, fromWarehouseId); |
|
|
@ -5751,6 +5759,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
if(NumberUtil.equals(orderId,0)){ |
|
|
|
if(NumberUtil.equals(orderId,0)){ |
|
|
|
log.warn("################111111: 保存失败"); |
|
|
|
log.warn("################111111: 保存失败"); |
|
|
|
throw new CustomerException(405,"保存失败"); |
|
|
|
throw new CustomerException(405,"保存失败"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if(orderId.equals(1L)){ |
|
|
|
|
|
|
|
log.warn("################updateParcelListToWarehouse: 订单信息正在更新 orderCode={} warehouseId={}",stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
|
|
|
throw new CustomerException(405,"订单信息正在更新,请稍后重试"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
stockArticleEntity.setGenre(1); |
|
|
|
stockArticleEntity.setGenre(1); |
|
|
@ -7630,6 +7643,15 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
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); |
|
|
|
finalOrderCodes.put(e, orderId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -7751,6 +7773,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
newStockArticleEntity.setAllocation(null); |
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
newStockArticleEntity.setTrays(null); |
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
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); |
|
|
|
finalOrderCodes1.put(e, orderId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -10107,6 +10137,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newEntity.setAllocation(null); |
|
|
|
newEntity.setAllocation(null); |
|
|
|
newEntity.setTrays(null); |
|
|
|
newEntity.setTrays(null); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newEntity); |
|
|
|
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); |
|
|
|
newEntity.setId(orderId); |
|
|
|
return newEntity; |
|
|
|
return newEntity; |
|
|
|
} |
|
|
|
} |
|
|
@ -11896,7 +11934,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
currentStockArticleEntity.setIncomingNum(0); |
|
|
|
currentStockArticleEntity.setIncomingNum(0); |
|
|
|
currentStockArticleEntity.setAllocation(null); |
|
|
|
currentStockArticleEntity.setAllocation(null); |
|
|
|
currentStockArticleEntity.setTrays(null); |
|
|
|
currentStockArticleEntity.setTrays(null); |
|
|
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
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); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
@ -12109,7 +12157,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
currentStockArticleEntity.setGenre(1); |
|
|
|
currentStockArticleEntity.setGenre(1); |
|
|
|
currentStockArticleEntity.setAllocation(null); |
|
|
|
currentStockArticleEntity.setAllocation(null); |
|
|
|
currentStockArticleEntity.setTrays(null); |
|
|
|
currentStockArticleEntity.setTrays(null); |
|
|
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
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); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
@ -12281,7 +12339,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
stockArticleEntity.setIncomingNum(0); |
|
|
|
stockArticleEntity.setIncomingNum(0); |
|
|
|
stockArticleEntity.setAllocation(null); |
|
|
|
stockArticleEntity.setAllocation(null); |
|
|
|
stockArticleEntity.setTrays(null); |
|
|
|
stockArticleEntity.setTrays(null); |
|
|
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(stockArticleEntity); |
|
|
|
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); |
|
|
|
stockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
@ -12379,7 +12447,18 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticle.setWarehouse(basicdataWarehouseEntity.getName()); |
|
|
|
newStockArticle.setWarehouse(basicdataWarehouseEntity.getName()); |
|
|
|
newStockArticle.setAllocation(null); |
|
|
|
newStockArticle.setAllocation(null); |
|
|
|
newStockArticle.setTrays(null); |
|
|
|
newStockArticle.setTrays(null); |
|
|
|
|
|
|
|
newStockArticle.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
newStockArticle.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticle); |
|
|
|
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 { |
|
|
|
} else { |
|
|
|
orderId = newStockArticle.getId(); |
|
|
|
orderId = newStockArticle.getId(); |
|
|
|
} |
|
|
|
} |
|
|
@ -12744,7 +12823,17 @@ 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.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
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); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
@ -12891,7 +12980,17 @@ 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.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
currentStockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(currentStockArticleEntity); |
|
|
|
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); |
|
|
|
currentStockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
|
currentOrderId = currentStockArticleEntity.getId(); |
|
|
@ -13054,7 +13153,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
stockArticleEntity.setIncomingNum(0); |
|
|
|
stockArticleEntity.setIncomingNum(0); |
|
|
|
stockArticleEntity.setAllocation(null); |
|
|
|
stockArticleEntity.setAllocation(null); |
|
|
|
stockArticleEntity.setTrays(null); |
|
|
|
stockArticleEntity.setTrays(null); |
|
|
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
currentOrderId = distributionStockArticleClient.addData(stockArticleEntity); |
|
|
|
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); |
|
|
|
stockArticleEntity.setId(currentOrderId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
|
currentOrderId = stockArticleEntity.getId(); |
|
|
@ -13149,7 +13258,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticle.setWarehouse(basicdataWarehouseEntity.getName()); |
|
|
|
newStockArticle.setWarehouse(basicdataWarehouseEntity.getName()); |
|
|
|
newStockArticle.setAllocation(null); |
|
|
|
newStockArticle.setAllocation(null); |
|
|
|
newStockArticle.setTrays(null); |
|
|
|
newStockArticle.setTrays(null); |
|
|
|
|
|
|
|
newStockArticle.setWarehouseEntryTime(new Date()); |
|
|
|
|
|
|
|
newStockArticle.setWarehouseEntryTimeEnd(new Date()); |
|
|
|
orderId = distributionStockArticleClient.addData(newStockArticle); |
|
|
|
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 { |
|
|
|
} else { |
|
|
|
orderId = newStockArticle.getId(); |
|
|
|
orderId = newStockArticle.getId(); |
|
|
|
} |
|
|
|
} |
|
|
@ -13849,6 +13968,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
newStockArticleEntity.setCarsLoadNum(0); |
|
|
|
newStockArticleEntity.setCarsLoadNum(0); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
Long orderId = distributionStockArticleClient.addData(newStockArticleEntity); |
|
|
|
if (orderId != 0) { |
|
|
|
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<DistributionParcelListEntity> parcelListEntityList = distributionParcelListClient.findEntityListByOrderCode(orderCode, fromWarehouseId); |
|
|
|
List<DistributionParcelNumberEntity> ls = new ArrayList<>(); |
|
|
|
List<DistributionParcelNumberEntity> ls = new ArrayList<>(); |
|
|
|
for (DistributionParcelListEntity parcelListEntity : parcelListEntityList) { |
|
|
|
for (DistributionParcelListEntity parcelListEntity : parcelListEntityList) { |
|
|
|