|
|
@@ -286,9 +286,6 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- String boxEastName = putBox.getPutBoxItemsList().stream().map(PutBoxItems::getBoxEastName).distinct().collect(Collectors.joining(","));
|
|
|
- putBox.setBoxEastId(boxEastId.substring(0, boxEastId.length() - 1));
|
|
|
- putBox.setBoxEastName(boxEastName);
|
|
|
if (ObjectUtils.isNull(putBox.getBoxType())
|
|
|
|| !putBox.getPutBoxItemsList().get(0).getBoxType().equals(putBox.getBoxType())) {
|
|
|
putBox.setBoxType(putBox.getPutBoxItemsList().get(0).getBoxType());
|
|
|
@@ -500,11 +497,67 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
archives1.setStationEname(detail.getPolStationEname());
|
|
|
archives1.setStationCode(detail.getPolStationCode());
|
|
|
archives1.setNewDate(new Date());
|
|
|
+ archives1.setContainerNumber(detail.getContainerNumber());
|
|
|
+ archives1.setContainerNumberType(detail.getBoxClass());
|
|
|
archives.add(archives1);
|
|
|
} else {
|
|
|
throw new RuntimeException("箱号:" + item.getBoxCode() + "不在箱档案中");
|
|
|
}
|
|
|
}
|
|
|
+ //记录箱轨迹信息
|
|
|
+ ArchivesTrajectory archivesTrajectory = new ArchivesTrajectory();
|
|
|
+ archivesTrajectory.setPortId(detail.getPolId());
|
|
|
+ archivesTrajectory.setPortCname(detail.getPolCname());
|
|
|
+ archivesTrajectory.setPortEname(detail.getPolEname());
|
|
|
+ archivesTrajectory.setPortCode(detail.getPolCode());
|
|
|
+ archivesTrajectory.setStationId(detail.getPolStationId());
|
|
|
+ archivesTrajectory.setStationCname(detail.getPolStationCname());
|
|
|
+ archivesTrajectory.setStationEname(detail.getPolStationEname());
|
|
|
+ archivesTrajectory.setStationCode(detail.getPolStationCode());
|
|
|
+ archivesTrajectory.setNewDate(new Date());
|
|
|
+ archivesTrajectory.setContainerNumber(item.getContainerNumber());
|
|
|
+ archivesTrajectory.setBoxType(item.getBoxType());
|
|
|
+ archivesTrajectory.setBoxCategory(item.getBoxClass());
|
|
|
+ archivesTrajectory.setBoxEastId(item.getBoxEastId());
|
|
|
+ archivesTrajectory.setBoxEastName(item.getBoxEastName());
|
|
|
+ archivesTrajectory.setMblno(item.getMblno());
|
|
|
+ archivesTrajectory.setHblno(item.getHblno());
|
|
|
+ archivesTrajectory.setBoxDynamics("更改放箱号");
|
|
|
+ archivesTrajectory.setStatus("更改放箱号");
|
|
|
+ archivesTrajectory.setCorpId(item.getBoxEastId());
|
|
|
+ archivesTrajectory.setCorpName(item.getBoxEastName());
|
|
|
+ archivesTrajectory.setBillType(detail.getBoxClass());
|
|
|
+ archivesTrajectory.setCode(item.getBoxCode());
|
|
|
+ archivesTrajectory.setNewDate(new Date());
|
|
|
+ archivesTrajectory.setCreateTime(new Date());
|
|
|
+ archivesTrajectory.setCreateUser(AuthUtil.getUserId());
|
|
|
+ archivesTrajectory.setCreateUserName(AuthUtil.getUserName());
|
|
|
+ archivesTrajectory.setTenantId(AuthUtil.getTenantId());
|
|
|
+ archivesTrajectory.setSrcId(detail.getId());
|
|
|
+ archivesTrajectory.setEtd(item.getEtd());
|
|
|
+ archivesTrajectory.setPolCyId(item.getPolCyId());
|
|
|
+ archivesTrajectory.setPolCyCode(item.getPolCyCode());
|
|
|
+ archivesTrajectory.setPolCyCname(item.getPolCyCname());
|
|
|
+ archivesTrajectory.setPolCyEname(item.getPolCyEname());
|
|
|
+ archivesTrajectory.setPolFreeBoxUseDays(item.getPolFreeBoxUseDays());
|
|
|
+ archivesTrajectory.setPolPreAppearanceDate(item.getPolPreAppearanceDate());
|
|
|
+ archivesTrajectory.setPolStationEmptyContainerExitDate(item.getPolStationEmptyContainerExitDate());
|
|
|
+ archivesTrajectory.setPolReturnDate(item.getPolReturnDate());
|
|
|
+ archivesTrajectory.setPolOverdueBoxUseDays(item.getPolOverdueBoxUseDays());
|
|
|
+ archivesTrajectory.setEta(item.getEta());
|
|
|
+ archivesTrajectory.setPodEmptyContainerReturnDate(item.getPodEmptyContainerReturnDate());
|
|
|
+ archivesTrajectory.setPodStationId(item.getPodStationId());
|
|
|
+ archivesTrajectory.setPodStationCode(item.getPodStationCode());
|
|
|
+ archivesTrajectory.setPodStationCname(item.getPodStationCname());
|
|
|
+ archivesTrajectory.setPodStationEname(item.getPodStationEname());
|
|
|
+ archivesTrajectory.setPodFreeBoxUseDays(item.getPodFreeBoxUseDays());
|
|
|
+ archivesTrajectory.setPodBoxUseDays(item.getPodBoxUseDays());
|
|
|
+ archivesTrajectory.setShipNameId(item.getShipNameId());
|
|
|
+ archivesTrajectory.setShipCname(item.getShipCname());
|
|
|
+ archivesTrajectory.setShipEname(item.getShipEname());
|
|
|
+ archivesTrajectory.setShipCode(item.getShipCode());
|
|
|
+ archivesTrajectory.setVoyage(item.getVoyage());
|
|
|
+ archivesTrajectoryMapper.insert(archivesTrajectory);
|
|
|
}
|
|
|
putBoxItemsService.updateBatchById(putBoxItemsList);
|
|
|
if (!archives.isEmpty()) {
|
|
|
@@ -520,7 +573,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
if (!boxPoolPortDTOList.isEmpty()) {
|
|
|
for (BoxPoolPortDTO item : boxPoolPortDTOList) {
|
|
|
List<Map<String, Long>> mapList = baseMapper.selectBoxNumber(item.getPortId(), boxPoolDTO.getWhetherLoseEfficacy(),
|
|
|
- AuthUtil.getTenantId(), item.getBusType(),item.getStationId());
|
|
|
+ AuthUtil.getTenantId(), item.getBusType(), item.getStationId());
|
|
|
long gP20Good = 0;
|
|
|
long gP40Good = 0;
|
|
|
long hG40Good = 0;
|
|
|
@@ -550,7 +603,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
item.setHG40Bad(hG40Bad);
|
|
|
item.setOtherBad(otherBad);
|
|
|
item.setTotal(gP20Good + gP40Good + hG40Good + otherGood + gP20Bad + gP40Bad + hG40Bad + otherBad);
|
|
|
- item.setRemainingTotal(item.getTotal());
|
|
|
+// item.setRemainingTotal(item.getTotal());
|
|
|
}
|
|
|
}
|
|
|
return page.setRecords(boxPoolPortDTOList);
|
|
|
@@ -565,25 +618,20 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
List<PutBoxItems> boxItemsList = putBoxItemsService.list(new LambdaQueryWrapper<PutBoxItems>()
|
|
|
.eq(PutBoxItems::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(PutBoxItems::getIsDeleted, 0)
|
|
|
+ .eq(PutBoxItems::getStatus, "待使用")
|
|
|
.in(PutBoxItems::getPid, ids));
|
|
|
for (BoxPoolContainerNumberDTO item : putBoxList) {
|
|
|
- if ("OW(拿),OW(放)".contains(item.getBusType())) {
|
|
|
- item.setGood(item.getTotalNum());
|
|
|
- item.setTotal(item.getTotalNum());
|
|
|
- item.setOccupyNum(item.getOccupyNum());
|
|
|
- item.setRemainingTotal(item.getRemainingNum());
|
|
|
- } else {
|
|
|
- if (!boxItemsList.isEmpty()) {
|
|
|
- List<PutBoxItems> itemsList = boxItemsList.stream().filter(e -> e.getPid().equals(item.getId())).collect(Collectors.toList());
|
|
|
- if (!itemsList.isEmpty()) {
|
|
|
- item.setGood(itemsList.stream().filter(e -> "好".equals(e.getBoxStatus()) && item.getBoxType().equals(e.getBoxType())).count());
|
|
|
- item.setBad(itemsList.stream().filter(e -> "坏".equals(e.getBoxStatus()) && item.getBoxType().equals(e.getBoxType())).count());
|
|
|
- item.setTotal(item.getGood() + item.getBad());
|
|
|
- item.setOccupyNum(item.getOccupyNum());
|
|
|
- item.setRemainingTotal(item.getRemainingNum());
|
|
|
- }
|
|
|
+ item.setTotal(0L);
|
|
|
+ if (!boxItemsList.isEmpty()) {
|
|
|
+ List<PutBoxItems> itemsList = boxItemsList.stream().filter(e -> e.getPid().equals(item.getId())).collect(Collectors.toList());
|
|
|
+ if (!itemsList.isEmpty()) {
|
|
|
+ item.setGood(itemsList.stream().filter(e -> "好箱".equals(e.getBoxStatus()) && item.getBoxType().equals(e.getBoxType())).count());
|
|
|
+ item.setBad(itemsList.stream().filter(e -> "坏箱".equals(e.getBoxStatus()) && item.getBoxType().equals(e.getBoxType())).count());
|
|
|
+ item.setTotal(item.getGood() + item.getBad());
|
|
|
}
|
|
|
}
|
|
|
+ item.setOccupyNum(item.getOccupyNum());
|
|
|
+ item.setRemainingTotal(item.getRemainingNum());
|
|
|
}
|
|
|
}
|
|
|
return page.setRecords(putBoxList);
|
|
|
@@ -896,7 +944,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBoxData.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setStatus("使用中");
|
|
|
putBoxItem.setPid(putBoxData.getId());
|
|
|
putBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
@@ -925,7 +973,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBoxData.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setStatus("使用中");
|
|
|
putBoxItem.setPid(putBoxData.getId());
|
|
|
putBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
@@ -1012,7 +1060,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
}
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
tradingBoxItem.setBoxCondition("新");
|
|
|
- tradingBoxItem.setBoxStatus("好");
|
|
|
+ tradingBoxItem.setBoxStatus("好箱");
|
|
|
tradingBoxItem.setPid(tradingBox.getId());
|
|
|
tradingBoxItem.setAgentName(bills.getForeignAgencyCnName());
|
|
|
tradingBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
@@ -1059,7 +1107,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
}
|
|
|
tradingBoxItem.setBoxBelongsTo("SOC");
|
|
|
tradingBoxItem.setBoxCondition("新");
|
|
|
- tradingBoxItem.setBoxStatus("好");
|
|
|
+ tradingBoxItem.setBoxStatus("好箱");
|
|
|
tradingBoxItem.setPid(tradingBox.getId());
|
|
|
tradingBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
tradingBoxItem.setCode(item.getBoxCode());
|
|
|
@@ -1264,7 +1312,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
archivesTrajectory.setBoxEastName(item.getBoxEastName());
|
|
|
archivesTrajectory.setMblno(item.getMblno());
|
|
|
archivesTrajectory.setBoxDynamics("空箱出场");
|
|
|
- archivesTrajectory.setStatus(tradingBox.getBusType());
|
|
|
+ archivesTrajectory.setStatus(archivesTrajectory.getBoxDynamics());
|
|
|
archivesTrajectory.setCorpId(item.getBoxEastId());
|
|
|
archivesTrajectory.setCorpName(item.getBoxEastName());
|
|
|
archivesTrajectory.setBillType(tradingBox.getBoxType());
|
|
|
@@ -1597,7 +1645,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(archives.getContainerNumber());
|
|
|
putBoxItem.setBoxCode(item.getBoxCode());
|
|
|
@@ -1614,7 +1662,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(archives.getContainerNumber());
|
|
|
putBoxItem.setBoxCode(item.getBoxCode());
|
|
|
@@ -1651,7 +1699,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
archivesTrajectory.setBoxEastName(item.getBoxEastName());
|
|
|
archivesTrajectory.setMblno(item.getMblno());
|
|
|
archivesTrajectory.setBoxDynamics("空箱进场");
|
|
|
- archivesTrajectory.setStatus(item.getBoxDynamics());
|
|
|
+ archivesTrajectory.setStatus(archivesTrajectory.getBoxDynamics());
|
|
|
archivesTrajectory.setBillType(putBox.getBusType());
|
|
|
archivesTrajectory.setCode(item.getBoxCode());
|
|
|
archivesTrajectory.setNewDate(new Date());
|
|
|
@@ -2473,7 +2521,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(archives.getContainerNumber());
|
|
|
putBoxItem.setBoxCode(item.getBoxCode());
|
|
|
@@ -2490,7 +2538,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(archives.getContainerNumber());
|
|
|
putBoxItem.setBoxCode(item.getBoxCode());
|
|
|
@@ -2527,7 +2575,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
archivesTrajectory.setBoxEastName(item.getBoxEastName());
|
|
|
archivesTrajectory.setMblno(item.getMblno());
|
|
|
archivesTrajectory.setBoxDynamics("空箱进场");
|
|
|
- archivesTrajectory.setStatus(item.getBoxDynamics());
|
|
|
+ archivesTrajectory.setStatus(archivesTrajectory.getBoxDynamics());
|
|
|
archivesTrajectory.setBillType(putBox.getBusType());
|
|
|
archivesTrajectory.setCode(item.getBoxCode());
|
|
|
archivesTrajectory.setNewDate(new Date());
|
|
|
@@ -2795,7 +2843,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setStatus("待使用");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
@@ -2816,7 +2864,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setStatus("待使用");
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
@@ -2890,7 +2938,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
}
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
tradingBoxItem.setBoxCondition("新");
|
|
|
- tradingBoxItem.setBoxStatus("好");
|
|
|
+ tradingBoxItem.setBoxStatus("好箱");
|
|
|
tradingBoxItem.setPid(tradingBox.getId());
|
|
|
tradingBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
tradingBoxItem.setCode(item.getBoxCode());
|
|
|
@@ -2931,7 +2979,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
}
|
|
|
tradingBoxItem.setBoxBelongsTo("SOC");
|
|
|
tradingBoxItem.setBoxCondition("新");
|
|
|
- tradingBoxItem.setBoxStatus("好");
|
|
|
+ tradingBoxItem.setBoxStatus("好箱");
|
|
|
tradingBoxItem.setPid(tradingBox.getId());
|
|
|
tradingBoxItem.setContainerNumber(item.getContainerNumber());
|
|
|
tradingBoxItem.setCode(item.getBoxCode());
|
|
|
@@ -3051,7 +3099,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
archivesTrajectory.setBoxEastName(item.getBoxEastName());
|
|
|
archivesTrajectory.setMblno(item.getMblno());
|
|
|
archivesTrajectory.setBoxDynamics("空箱出场");
|
|
|
- archivesTrajectory.setStatus(tradingBox.getBusType());
|
|
|
+ archivesTrajectory.setStatus(archivesTrajectory.getBoxDynamics());
|
|
|
archivesTrajectory.setCorpId(item.getBoxEastId());
|
|
|
archivesTrajectory.setCorpName(item.getBoxEastName());
|
|
|
archivesTrajectory.setBillType(tradingBox.getBoxType());
|
|
|
@@ -3562,62 +3610,62 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
this.countOverdueFeeV1(billsHYJK, tradingBoxList, tradingBoxItemOldList, putBoxItemsOldList, putBoxList);
|
|
|
}
|
|
|
} else {*/
|
|
|
- for (Containers item : containersHYJKList) {
|
|
|
- if (ObjectUtils.isNull(item.getHblno())) {
|
|
|
- throw new RuntimeException("分单号不能为空");
|
|
|
- }
|
|
|
- item.setPodStationId(podStationR.getPodStationId());
|
|
|
- item.setPodStationCname(podStationR.getPodStationCname());
|
|
|
- item.setPodStationEname(podStationR.getPodStationEname());
|
|
|
- item.setPodStationCode(podStationR.getPodStationCode());
|
|
|
- item.setPodCyAddress(podStationR.getPodCyAddress());
|
|
|
- item.setPodCyContact(podStationR.getPodCyContact());
|
|
|
- item.setPodCyEmail(podStationR.getPodCyEmail());
|
|
|
- item.setPodCyTel(podStationR.getPodCyTel());
|
|
|
- item.setPodEmptyContainerReturnDate(podStationR.getReturnEmptyTime());
|
|
|
- item.setMarks(podStationR.getMarks());
|
|
|
- item.setUpdateTime(new Date());
|
|
|
- item.setUpdateUser(AuthUtil.getUserId());
|
|
|
- item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
- }
|
|
|
- containersService.updateBatchById(containersHYJKList);
|
|
|
- List<Bills> billsHYJKList = billsMapper.selectList(new LambdaQueryWrapper<Bills>()
|
|
|
- .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(Bills::getIsDeleted, 0)
|
|
|
- .in(Bills::getId, billsIds));
|
|
|
- if (billsHYJKList.isEmpty()) {
|
|
|
- throw new RuntimeException("未查到海运出口单据");
|
|
|
+ for (Containers item : containersHYJKList) {
|
|
|
+ if (ObjectUtils.isNull(item.getHblno())) {
|
|
|
+ throw new RuntimeException("分单号不能为空");
|
|
|
}
|
|
|
- List<Long> idHYJKList = billsHYJKList.stream().map(Bills::getMasterId).distinct().collect(Collectors.toList());
|
|
|
- List<Bills> billsHYJKListFD = billsMapper.selectList(new LambdaQueryWrapper<Bills>()
|
|
|
- .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(Bills::getIsDeleted, 0)
|
|
|
- .in(Bills::getId, idHYJKList));
|
|
|
- if (!billsHYJKListFD.isEmpty()) {
|
|
|
- List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
|
- .eq(Containers::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(Containers::getIsDeleted, 0)
|
|
|
- .in(Containers::getCntrNo, cntrNo)
|
|
|
- .in(Containers::getPid, billsHYJKListFD.stream().map(Bills::getId).collect(Collectors.toList())));
|
|
|
- if (!containersList.isEmpty()) {
|
|
|
- for (Containers item : containersList) {
|
|
|
- item.setPodStationId(podStationR.getPodStationId());
|
|
|
- item.setPodStationCname(podStationR.getPodStationCname());
|
|
|
- item.setPodStationEname(podStationR.getPodStationEname());
|
|
|
- item.setPodStationCode(podStationR.getPodStationCode());
|
|
|
- item.setMarks(podStationR.getPodStationCode());
|
|
|
- item.setPodCyAddress(podStationR.getPodCyAddress());
|
|
|
- item.setPodCyContact(podStationR.getPodCyContact());
|
|
|
- item.setPodCyEmail(podStationR.getPodCyEmail());
|
|
|
- item.setPodCyTel(podStationR.getPodCyTel());
|
|
|
- item.setPodEmptyContainerReturnDate(podStationR.getReturnEmptyTime());
|
|
|
- item.setUpdateTime(new Date());
|
|
|
- item.setUpdateUser(AuthUtil.getUserId());
|
|
|
- item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
- }
|
|
|
- containersService.updateBatchById(containersList);
|
|
|
+ item.setPodStationId(podStationR.getPodStationId());
|
|
|
+ item.setPodStationCname(podStationR.getPodStationCname());
|
|
|
+ item.setPodStationEname(podStationR.getPodStationEname());
|
|
|
+ item.setPodStationCode(podStationR.getPodStationCode());
|
|
|
+ item.setPodCyAddress(podStationR.getPodCyAddress());
|
|
|
+ item.setPodCyContact(podStationR.getPodCyContact());
|
|
|
+ item.setPodCyEmail(podStationR.getPodCyEmail());
|
|
|
+ item.setPodCyTel(podStationR.getPodCyTel());
|
|
|
+ item.setPodEmptyContainerReturnDate(podStationR.getReturnEmptyTime());
|
|
|
+ item.setMarks(podStationR.getMarks());
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ }
|
|
|
+ containersService.updateBatchById(containersHYJKList);
|
|
|
+ List<Bills> billsHYJKList = billsMapper.selectList(new LambdaQueryWrapper<Bills>()
|
|
|
+ .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Bills::getIsDeleted, 0)
|
|
|
+ .in(Bills::getId, billsIds));
|
|
|
+ if (billsHYJKList.isEmpty()) {
|
|
|
+ throw new RuntimeException("未查到海运出口单据");
|
|
|
+ }
|
|
|
+ List<Long> idHYJKList = billsHYJKList.stream().map(Bills::getMasterId).distinct().collect(Collectors.toList());
|
|
|
+ List<Bills> billsHYJKListFD = billsMapper.selectList(new LambdaQueryWrapper<Bills>()
|
|
|
+ .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Bills::getIsDeleted, 0)
|
|
|
+ .in(Bills::getId, idHYJKList));
|
|
|
+ if (!billsHYJKListFD.isEmpty()) {
|
|
|
+ List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
|
+ .eq(Containers::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Containers::getIsDeleted, 0)
|
|
|
+ .in(Containers::getCntrNo, cntrNo)
|
|
|
+ .in(Containers::getPid, billsHYJKListFD.stream().map(Bills::getId).collect(Collectors.toList())));
|
|
|
+ if (!containersList.isEmpty()) {
|
|
|
+ for (Containers item : containersList) {
|
|
|
+ item.setPodStationId(podStationR.getPodStationId());
|
|
|
+ item.setPodStationCname(podStationR.getPodStationCname());
|
|
|
+ item.setPodStationEname(podStationR.getPodStationEname());
|
|
|
+ item.setPodStationCode(podStationR.getPodStationCode());
|
|
|
+ item.setMarks(podStationR.getPodStationCode());
|
|
|
+ item.setPodCyAddress(podStationR.getPodCyAddress());
|
|
|
+ item.setPodCyContact(podStationR.getPodCyContact());
|
|
|
+ item.setPodCyEmail(podStationR.getPodCyEmail());
|
|
|
+ item.setPodCyTel(podStationR.getPodCyTel());
|
|
|
+ item.setPodEmptyContainerReturnDate(podStationR.getReturnEmptyTime());
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
}
|
|
|
+ containersService.updateBatchById(containersList);
|
|
|
}
|
|
|
+ }
|
|
|
// }
|
|
|
} else {
|
|
|
for (Containers item : containersHYJKList) {
|
|
|
@@ -5107,7 +5155,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(archives.getContainerNumber());
|
|
|
putBoxItem.setBoxCode(item.getCntrNo());
|
|
|
@@ -5125,7 +5173,7 @@ public class PutBoxServiceImpl extends ServiceImpl<PutBoxMapper, PutBox> impleme
|
|
|
putBoxItem.setBoxClass(putBox.getBusType());
|
|
|
putBoxItem.setBoxBelongsTo("SOC");
|
|
|
putBoxItem.setBoxCondition("新");
|
|
|
- putBoxItem.setBoxStatus("好");
|
|
|
+ putBoxItem.setBoxStatus("好箱");
|
|
|
putBoxItem.setPid(putBox.getId());
|
|
|
putBoxItem.setContainerNumber(archives.getContainerNumber());
|
|
|
putBoxItem.setBoxCode(item.getCntrNo());
|