|
|
@@ -402,14 +402,39 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxOld.setUpdateUser(AuthUtil.getUserId());
|
|
|
baseMapper.updateById(putBoxOld);
|
|
|
List<PutBoxItems> putBoxItemsList = putBox.getPutBoxItemsList();
|
|
|
+ List<Archives> archivesList = archivesService.list(new LambdaQueryWrapper<Archives>()
|
|
|
+ .eq(Archives::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Archives::getIsDeleted, 0)
|
|
|
+ .in(Archives::getCode, putBoxItemsList.stream().map(PutBoxItems::getBoxCode).distinct().collect(Collectors.toList())));
|
|
|
+ List<Archives> archives = new ArrayList<>();
|
|
|
for (PutBoxItems item : putBoxItemsList) {
|
|
|
item.setPid(detail.getId());
|
|
|
item.setUpdateTime(new Date());
|
|
|
item.setUpdateUser(AuthUtil.getUserId());
|
|
|
item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
item.setContainerNumber(detail.getContainerNumber());
|
|
|
+ if (!archivesList.isEmpty()) {
|
|
|
+ Archives archives1 = archivesList.stream().filter(e -> e.getCode().equals(item.getBoxCode())).findFirst().orElse(null);
|
|
|
+ if (archives1 != null) {
|
|
|
+ archives1.setAddressId(detail.getPolId());
|
|
|
+ archives1.setAddressCname(detail.getPolCname());
|
|
|
+ archives1.setAddressEname(detail.getPolEname());
|
|
|
+ archives1.setAddressCode(detail.getPolCode());
|
|
|
+ archives1.setStationId(detail.getPolStationId());
|
|
|
+ archives1.setStationCname(detail.getPolStationCname());
|
|
|
+ archives1.setStationEname(detail.getPolStationEname());
|
|
|
+ archives1.setStationCode(detail.getPolStationCode());
|
|
|
+ archives1.setNewDate(new Date());
|
|
|
+ archives.add(archives1);
|
|
|
+ } else {
|
|
|
+ throw new RuntimeException("箱号:" + item.getBoxCode() + "不在箱档案中");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
putBoxItemsService.updateBatchById(putBoxItemsList);
|
|
|
+ if (!archives.isEmpty()) {
|
|
|
+ archivesService.updateBatchById(archives);
|
|
|
+ }
|
|
|
return R.data(putBox);
|
|
|
}
|
|
|
|
|
|
@@ -691,6 +716,10 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
//箱档案数据处理
|
|
|
Archives archives = archivesList.stream().filter(e -> e.getCode().equals(item.getBoxCode())).findFirst().orElse(null);
|
|
|
if (archives != null) {
|
|
|
+ if ("OW(放)".equals(putBox.getBusType())) {
|
|
|
+ archives.setContainerNumberOw(item.getContainerNumber());
|
|
|
+ archives.setContainerNumberTypeOw("OW(放)");
|
|
|
+ }
|
|
|
archives.setUpdateTime(new Date());
|
|
|
archives.setUpdateUser(AuthUtil.getUserId());
|
|
|
archives.setUpdateUserName(AuthUtil.getUserName());
|
|
|
@@ -789,9 +818,10 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setPolCyEname(corps.getEnName());
|
|
|
putBoxItem.setPolStationEmptyContainerExitDate(item.getBoxStatusDate());
|
|
|
}
|
|
|
+ putBoxItem.setBoxEastId(Long.parseLong(putBox.getBoxEastId()));
|
|
|
+ putBoxItem.setBoxEastName(putBox.getBoxEastName());
|
|
|
+ putBoxItems.add(putBoxItem);
|
|
|
if ("OW(拿),OW(放)".contains(putBox.getBusType())) {
|
|
|
- putBoxItem.setBoxEastId(Long.parseLong(putBox.getBoxEastId()));
|
|
|
- putBoxItem.setBoxEastName(putBox.getBoxEastName());
|
|
|
if (!tradingBoxList.isEmpty()) {
|
|
|
TradingBox tradingBox = tradingBoxList.stream().filter(e -> e.getId().equals(putBox.getSrcId()))
|
|
|
.findFirst().orElse(null);
|
|
|
@@ -824,6 +854,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
tradingBoxItem.setPolCyCname(corps.getCnName());
|
|
|
tradingBoxItem.setPolCyEname(corps.getEnName());
|
|
|
tradingBoxItem.setPolStationEmptyContainerExitDate(item.getBoxStatusDate());
|
|
|
+ tradingBoxItem.setStatus("待使用");
|
|
|
} else {
|
|
|
tradingBoxItem = new TradingBoxItem();
|
|
|
tradingBoxItem.setBoxBelongsTo("SOC");
|
|
|
@@ -855,6 +886,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
tradingBoxItem.setPolCyCname(corps.getCnName());
|
|
|
tradingBoxItem.setPolCyEname(corps.getEnName());
|
|
|
tradingBoxItem.setPolStationEmptyContainerExitDate(item.getBoxStatusDate());
|
|
|
+ tradingBoxItem.setStatus("待使用");
|
|
|
}
|
|
|
} else {
|
|
|
tradingBoxItem = new TradingBoxItem();
|
|
|
@@ -886,6 +918,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
tradingBoxItem.setPolCyCname(corps.getCnName());
|
|
|
tradingBoxItem.setPolCyEname(corps.getEnName());
|
|
|
tradingBoxItem.setPolStationEmptyContainerExitDate(item.getBoxStatusDate());
|
|
|
+ tradingBoxItem.setStatus("待使用");
|
|
|
}
|
|
|
tradingBoxItem.setBoxEastId(tradingBox.getPurchaseCompanyId());
|
|
|
tradingBoxItem.setBoxEastName(tradingBox.getPurchaseCompanyName());
|
|
|
@@ -897,7 +930,6 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
throw new RuntimeException("放箱号:" + item.getContainerNumber() + "未查到OW单据");
|
|
|
}
|
|
|
}
|
|
|
- putBoxItems.add(putBoxItem);
|
|
|
} else {
|
|
|
throw new RuntimeException("未查到放箱号:" + item.getContainerNumber() + "单据");
|
|
|
}
|
|
|
@@ -1129,54 +1161,19 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
if (archives == null) {
|
|
|
throw new RemoteException("箱号:" + item.getBoxCode() + "未查到数据");
|
|
|
}
|
|
|
- if ("自有箱".equals(archives.getContainerNumberType())) {
|
|
|
+ if (ObjectUtils.isNotNull(archives.getContainerNumberTypeOw()) && "OW(放)".equals(archives.getContainerNumberTypeOw())) {
|
|
|
//判断目的港是否存在对应放箱号单据处理
|
|
|
- List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId());
|
|
|
+ List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId(), "1");
|
|
|
if (!putBoxes.isEmpty()) {
|
|
|
putBoxNewList.addAll(putBoxes);
|
|
|
}
|
|
|
//修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
- if (!putBoxItems.isEmpty()) {
|
|
|
- putBoxItemsOldList.addAll(putBoxItems);
|
|
|
- }
|
|
|
- //更新箱档案数据
|
|
|
- this.updateArchives(archives, item, ports, corps);
|
|
|
- archivesArrayList.add(archives);
|
|
|
- } else if ("代理箱".equals(archives.getContainerNumberType())) {
|
|
|
- //箱档案数据删除
|
|
|
- archivesDateleList.add(archives.getId());
|
|
|
- //修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
- if (!putBoxItems.isEmpty()) {
|
|
|
- putBoxItemsOldList.addAll(putBoxItems);
|
|
|
- }
|
|
|
- } else if ("OW(拿)".equals(archives.getContainerNumberType())) {
|
|
|
- //箱档案数据删除
|
|
|
- archivesDateleList.add(archives.getId());
|
|
|
- //修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, "1");
|
|
|
if (!putBoxItems.isEmpty()) {
|
|
|
putBoxItemsOldList.addAll(putBoxItems);
|
|
|
}
|
|
|
//修改原放ow单据明细数据
|
|
|
- List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports);
|
|
|
- if (!tradingBoxItems.isEmpty()) {
|
|
|
- tradingBoxItemOldList.addAll(tradingBoxItems);
|
|
|
- }
|
|
|
- } else if ("OW(放)".equals(archives.getContainerNumberType())) {
|
|
|
- //判断目的港是否存在对应放箱号单据处理
|
|
|
- List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId());
|
|
|
- if (!putBoxes.isEmpty()) {
|
|
|
- putBoxNewList.addAll(putBoxes);
|
|
|
- }
|
|
|
- //修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
- if (!putBoxItems.isEmpty()) {
|
|
|
- putBoxItemsOldList.addAll(putBoxItems);
|
|
|
- }
|
|
|
- //修改原放ow单据明细数据
|
|
|
- List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports);
|
|
|
+ List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports, "1");
|
|
|
if (!tradingBoxItems.isEmpty()) {
|
|
|
tradingBoxItemOldList.addAll(tradingBoxItems);
|
|
|
}
|
|
|
@@ -1184,7 +1181,44 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
this.updateArchives(archives, item, ports, corps);
|
|
|
archivesArrayList.add(archives);
|
|
|
} else {
|
|
|
- throw new RemoteException("箱号:" + item.getBoxCode() + "放箱号类型错误");
|
|
|
+ if ("自有箱".equals(archives.getContainerNumberType())) {
|
|
|
+ //判断目的港是否存在对应放箱号单据处理
|
|
|
+ List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId(), null);
|
|
|
+ if (!putBoxes.isEmpty()) {
|
|
|
+ putBoxNewList.addAll(putBoxes);
|
|
|
+ }
|
|
|
+ //修改原放箱号明细数据
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
+ if (!putBoxItems.isEmpty()) {
|
|
|
+ putBoxItemsOldList.addAll(putBoxItems);
|
|
|
+ }
|
|
|
+ //更新箱档案数据
|
|
|
+ this.updateArchives(archives, item, ports, corps);
|
|
|
+ archivesArrayList.add(archives);
|
|
|
+ } else if ("代理箱".equals(archives.getContainerNumberType())) {
|
|
|
+ //箱档案数据删除
|
|
|
+ archivesDateleList.add(archives.getId());
|
|
|
+ //修改原放箱号明细数据
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
+ if (!putBoxItems.isEmpty()) {
|
|
|
+ putBoxItemsOldList.addAll(putBoxItems);
|
|
|
+ }
|
|
|
+ } else if ("OW(拿)".equals(archives.getContainerNumberType())) {
|
|
|
+ //箱档案数据删除
|
|
|
+ archivesDateleList.add(archives.getId());
|
|
|
+ //修改原放箱号明细数据
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
+ if (!putBoxItems.isEmpty()) {
|
|
|
+ putBoxItemsOldList.addAll(putBoxItems);
|
|
|
+ }
|
|
|
+ //修改原放ow单据明细数据
|
|
|
+ List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports, null);
|
|
|
+ if (!tradingBoxItems.isEmpty()) {
|
|
|
+ tradingBoxItemOldList.addAll(tradingBoxItems);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ throw new RemoteException("箱号:" + item.getBoxCode() + "放箱号类型错误");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (!putBoxNewList.isEmpty()) {
|
|
|
@@ -1347,11 +1381,18 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
|
|
|
private List<TradingBoxItem> updatePutBoxItemsTrading(List<PutBox> putBoxList, Archives archives, EmptyContainerAppearance item,
|
|
|
BCorps corps, List<TradingBox> tradingBoxList,
|
|
|
- List<TradingBoxItem> tradingBoxItemList, BPorts ports) {
|
|
|
+ List<TradingBoxItem> tradingBoxItemList, BPorts ports, String status) {
|
|
|
+ PutBox putBoxOld;
|
|
|
+ if ("1".equals(status)) {
|
|
|
+ putBoxOld = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumberOw())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolId()) && e.getPolId().equals(archives.getAddressId())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolStationId()) && e.getPolStationId().equals(archives.getStationId())).findFirst().orElse(null);
|
|
|
+ } else {
|
|
|
+ putBoxOld = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolId()) && e.getPolId().equals(archives.getAddressId())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolStationId()) && e.getPolStationId().equals(archives.getStationId())).findFirst().orElse(null);
|
|
|
+ }
|
|
|
List<TradingBoxItem> tradingBoxItemOldList = new ArrayList<>();
|
|
|
- PutBox putBoxOld = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
- && ObjectUtils.isNotNull(e.getPolId()) && e.getPolId().equals(archives.getAddressId())
|
|
|
- && ObjectUtils.isNotNull(e.getPolStationId()) && e.getPolStationId().equals(archives.getStationId())).findFirst().orElse(null);
|
|
|
if (putBoxOld != null) {
|
|
|
if (ObjectUtils.isNotNull(putBoxOld.getBoxType()) && !putBoxOld.getBoxType().equals(item.getBoxType())) {
|
|
|
throw new RuntimeException("放箱号:" + archives.getContainerNumber() + "箱型不符合");
|
|
|
@@ -1400,11 +1441,19 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
return tradingBoxItemOldList;
|
|
|
}
|
|
|
|
|
|
- private List<PutBoxItems> updatePutBoxItems(List<PutBox> putBoxList, Archives archives, EmptyContainerAppearance item, BCorps corps, List<PutBoxItems> putBoxItemsList) {
|
|
|
+ private List<PutBoxItems> updatePutBoxItems(List<PutBox> putBoxList, Archives archives, EmptyContainerAppearance item,
|
|
|
+ BCorps corps, List<PutBoxItems> putBoxItemsList, String status) {
|
|
|
+ PutBox putBoxOld;
|
|
|
+ if ("1".equals(status)) {
|
|
|
+ putBoxOld = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumberOw())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolId()) && e.getPolId().equals(archives.getAddressId())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolStationId()) && e.getPolStationId().equals(archives.getStationId())).findFirst().orElse(null);
|
|
|
+ } else {
|
|
|
+ putBoxOld = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolId()) && e.getPolId().equals(archives.getAddressId())
|
|
|
+ && ObjectUtils.isNotNull(e.getPolStationId()) && e.getPolStationId().equals(archives.getStationId())).findFirst().orElse(null);
|
|
|
+ }
|
|
|
List<PutBoxItems> putBoxItemsOldList = new ArrayList<>();
|
|
|
- PutBox putBoxOld = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
- && ObjectUtils.isNotNull(e.getPolId()) && e.getPolId().equals(archives.getAddressId())
|
|
|
- && ObjectUtils.isNotNull(e.getPolStationId()) && e.getPolStationId().equals(archives.getStationId())).findFirst().orElse(null);
|
|
|
if (putBoxOld != null) {
|
|
|
if (ObjectUtils.isNotNull(putBoxOld.getBoxType()) && !putBoxOld.getBoxType().equals(item.getBoxType())) {
|
|
|
throw new RuntimeException("放箱号:" + archives.getContainerNumber() + "箱型不符合");
|
|
|
@@ -1436,10 +1485,17 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
return putBoxItemsOldList;
|
|
|
}
|
|
|
|
|
|
- private List<PutBox> create(List<PutBox> putBoxList, Archives archives, BPorts ports, BCorps corps, List<PutBox> putBoxNewList, Long id) {
|
|
|
- PutBox putBox = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
- && e.getPolId().equals(ports.getId()) && e.getPolStationId().equals(corps.getId())
|
|
|
- && e.getBusType().equals(archives.getContainerNumberType())).findFirst().orElse(null);
|
|
|
+ private List<PutBox> create(List<PutBox> putBoxList, Archives archives, BPorts ports, BCorps corps, List<PutBox> putBoxNewList, Long id, String status) {
|
|
|
+ PutBox putBox;
|
|
|
+ if ("1".equals(status)) {
|
|
|
+ putBox = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumberOw())
|
|
|
+ && e.getPolId().equals(ports.getId()) && e.getPolStationId().equals(corps.getId())
|
|
|
+ && e.getBusType().equals(archives.getContainerNumberTypeOw())).findFirst().orElse(null);
|
|
|
+ } else {
|
|
|
+ putBox = putBoxList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
+ && e.getPolId().equals(ports.getId()) && e.getPolStationId().equals(corps.getId())
|
|
|
+ && e.getBusType().equals(archives.getContainerNumberType())).findFirst().orElse(null);
|
|
|
+ }
|
|
|
if (putBox == null) {
|
|
|
if (!putBoxNewList.isEmpty()) {
|
|
|
PutBox putBox1 = putBoxNewList.stream().filter(e -> e.getContainerNumber().equals(archives.getContainerNumber())
|
|
|
@@ -1659,12 +1715,12 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
}
|
|
|
if ("自有箱".equals(archives.getContainerNumberType())) {
|
|
|
//判断目的港是否存在对应放箱号单据处理
|
|
|
- List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId());
|
|
|
+ List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId(), null);
|
|
|
if (!putBoxes.isEmpty()) {
|
|
|
putBoxNewList.addAll(putBoxes);
|
|
|
}
|
|
|
//修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
if (!putBoxItems.isEmpty()) {
|
|
|
putBoxItemsOldList.addAll(putBoxItems);
|
|
|
}
|
|
|
@@ -1675,7 +1731,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
//箱档案数据删除
|
|
|
archivesDateleList.add(archives.getId());
|
|
|
//修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
if (!putBoxItems.isEmpty()) {
|
|
|
putBoxItemsOldList.addAll(putBoxItems);
|
|
|
}
|
|
|
@@ -1683,28 +1739,28 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
//箱档案数据删除
|
|
|
archivesDateleList.add(archives.getId());
|
|
|
//修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
if (!putBoxItems.isEmpty()) {
|
|
|
putBoxItemsOldList.addAll(putBoxItems);
|
|
|
}
|
|
|
//修改原放ow单据明细数据
|
|
|
- List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports);
|
|
|
+ List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports, null);
|
|
|
if (!tradingBoxItems.isEmpty()) {
|
|
|
tradingBoxItemOldList.addAll(tradingBoxItems);
|
|
|
}
|
|
|
} else if ("OW(放)".equals(archives.getContainerNumberType())) {
|
|
|
//判断目的港是否存在对应放箱号单据处理
|
|
|
- List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId());
|
|
|
+ List<PutBox> putBoxes = this.create(putBoxList, archives, ports, corps, putBoxNewList, businessType.getId(), null);
|
|
|
if (!putBoxes.isEmpty()) {
|
|
|
putBoxNewList.addAll(putBoxes);
|
|
|
}
|
|
|
//修改原放箱号明细数据
|
|
|
- List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList);
|
|
|
+ List<PutBoxItems> putBoxItems = this.updatePutBoxItems(putBoxList, archives, item, corps, putBoxItemsList, null);
|
|
|
if (!putBoxItems.isEmpty()) {
|
|
|
putBoxItemsOldList.addAll(putBoxItems);
|
|
|
}
|
|
|
//修改原放ow单据明细数据
|
|
|
- List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports);
|
|
|
+ List<TradingBoxItem> tradingBoxItems = this.updatePutBoxItemsTrading(putBoxList, archives, item, corps, tradingBoxList, tradingBoxItemList, ports, null);
|
|
|
if (!tradingBoxItems.isEmpty()) {
|
|
|
tradingBoxItemOldList.addAll(tradingBoxItems);
|
|
|
}
|
|
|
@@ -1868,5 +1924,4 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
details.setInternalContainerNumber("");
|
|
|
return details;
|
|
|
}
|
|
|
-
|
|
|
}
|