|
|
@@ -2169,32 +2169,32 @@ public class BillsServiceImpl extends ServiceImpl<BillsMapper, Bills> implements
|
|
|
.eq(FeeCenter::getBillNo, detail.getBillNo())
|
|
|
));
|
|
|
List<DispatchVehicles> dispatchVehiclesList = dispatchVehiclesMapper.selectList(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
- .eq(DispatchVehicles::getTenantId,AuthUtil.getTenantId())
|
|
|
- .eq(DispatchVehicles::getIsDeleted,0)
|
|
|
- .eq(DispatchVehicles::getPid,detail.getId()));
|
|
|
- if (!dispatchVehiclesList.isEmpty()){
|
|
|
+ .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
+ .eq(DispatchVehicles::getPid, detail.getId()));
|
|
|
+ if (!dispatchVehiclesList.isEmpty()) {
|
|
|
detail.setDispatchVehiclesList(dispatchVehiclesList);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
detail.setDispatchVehiclesList(new ArrayList<>());
|
|
|
}
|
|
|
List<InOutStorage> inOutStorageList = inOutStorageMapper.selectList(new LambdaQueryWrapper<InOutStorage>()
|
|
|
- .eq(InOutStorage::getTenantId,AuthUtil.getTenantId())
|
|
|
- .eq(InOutStorage::getIsDeleted,0)
|
|
|
- .eq(InOutStorage::getPid,detail.getId()));
|
|
|
- if (!inOutStorageList.isEmpty()){
|
|
|
- List<InOutStorage> inStorageList = inOutStorageList.stream().filter(e-> "RK".equals(e.getBillType())).collect(Collectors.toList());
|
|
|
- if (!inStorageList.isEmpty()){
|
|
|
+ .eq(InOutStorage::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(InOutStorage::getIsDeleted, 0)
|
|
|
+ .eq(InOutStorage::getPid, detail.getId()));
|
|
|
+ if (!inOutStorageList.isEmpty()) {
|
|
|
+ List<InOutStorage> inStorageList = inOutStorageList.stream().filter(e -> "RK".equals(e.getBillType())).collect(Collectors.toList());
|
|
|
+ if (!inStorageList.isEmpty()) {
|
|
|
detail.setInStorageList(inStorageList);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
detail.setInStorageList(new ArrayList<>());
|
|
|
}
|
|
|
- List<InOutStorage> outStorageList =inOutStorageList.stream().filter(e-> "CK".equals(e.getBillType())).collect(Collectors.toList());
|
|
|
- if (!inStorageList.isEmpty()){
|
|
|
+ List<InOutStorage> outStorageList = inOutStorageList.stream().filter(e -> "CK".equals(e.getBillType())).collect(Collectors.toList());
|
|
|
+ if (!inStorageList.isEmpty()) {
|
|
|
detail.setOutStorageList(outStorageList);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
detail.setOutStorageList(new ArrayList<>());
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
detail.setInStorageList(new ArrayList<>());
|
|
|
detail.setOutStorageList(new ArrayList<>());
|
|
|
}
|
|
|
@@ -2274,55 +2274,6 @@ public class BillsServiceImpl extends ServiceImpl<BillsMapper, Bills> implements
|
|
|
if (ObjectUtils.isEmpty(bills.getId())) {
|
|
|
this.save(bills);
|
|
|
}
|
|
|
- /**-------------箱型箱量计算---------*/
|
|
|
- Integer V20 = 0;
|
|
|
- Integer V40 = 0;
|
|
|
- Integer V40HC = 0;
|
|
|
- Integer V45 = 0;
|
|
|
- Integer V48 = 0;
|
|
|
- Integer other = 0;
|
|
|
- BigDecimal teu = new BigDecimal("0.00");
|
|
|
- StringBuilder boxTypeSum = new StringBuilder();
|
|
|
- if (ObjectUtils.isNull(bills.getCfsQuantity()) || bills.getCfsQuantity().compareTo(new BigDecimal("0.00")) == 0) {
|
|
|
- if (ObjectUtils.isNotNull(bills.getPreContainersList())) {
|
|
|
- for (PreContainers item : bills.getPreContainersList()) {
|
|
|
- item.setPid(bills.getId());
|
|
|
- if (item.getCntrTypeCode().contains("20")) {
|
|
|
- V20 += item.getQuantity();
|
|
|
- } else if (item.getCntrTypeCode().contains("45")) {
|
|
|
- V45 += item.getQuantity();
|
|
|
- } else if (item.getCntrTypeCode().contains("48")) {
|
|
|
- V48 += item.getQuantity();
|
|
|
- } else if (item.getCntrTypeCode().contains("40") && (!item.getCntrTypeCode().contains("HQ")) && !item.getCntrTypeCode().contains("HC")) {
|
|
|
- V40 += item.getQuantity();
|
|
|
- } else if (item.getCntrTypeCode().contains("40") && (item.getCntrTypeCode().contains("HQ")) && item.getCntrTypeCode().contains("HC")) {
|
|
|
- V40HC += item.getQuantity();
|
|
|
- } else {
|
|
|
- other += item.getQuantity();
|
|
|
- }
|
|
|
- boxTypeSum.append(item.getCntrTypeCode()).append("*").append(item.getQuantity()).append(",");
|
|
|
- if (ObjectUtils.isNotNull(item.getQuantity()) && ObjectUtils.isNotNull(item.getTeu())) {
|
|
|
- teu = teu.add(new BigDecimal(item.getQuantity()).multiply(item.getTeu()));
|
|
|
- }
|
|
|
- }
|
|
|
- R res = preContainersService.submitList(bills.getPreContainersList());
|
|
|
- if (!res.isSuccess()) {
|
|
|
- throw new RuntimeException("保存失败");
|
|
|
- }
|
|
|
- if (boxTypeSum.length() > 0) {
|
|
|
- boxTypeSum = new StringBuilder(boxTypeSum.substring(0, boxTypeSum.length() - 1));
|
|
|
- bills.setQuantityCntrDescr(boxTypeSum.toString());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- bills.setQuantityV20(V20);
|
|
|
- bills.setQuantityV40(V40);
|
|
|
- bills.setQuantityV40hc(V40HC);
|
|
|
- bills.setQuantityV45(V45);
|
|
|
- bills.setQuantityV48(V48);
|
|
|
- bills.setQuantityOther(other);
|
|
|
- bills.setTeu(teu.intValue());
|
|
|
- /**-------------箱型箱量计算---------*/
|
|
|
/**-------------费用计算---------*/
|
|
|
BigDecimal amountDr = new BigDecimal("0.00");
|
|
|
BigDecimal amountCr = new BigDecimal("0.00");
|
|
|
@@ -2476,45 +2427,250 @@ public class BillsServiceImpl extends ServiceImpl<BillsMapper, Bills> implements
|
|
|
bills.setQuantity(quantity);
|
|
|
bills.setGrossWeight(grossWeight);
|
|
|
bills.setMeasurement(measurement);
|
|
|
- this.updateById(bills);
|
|
|
+
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ List<AgentItems> agentItemsList = new ArrayList<>();
|
|
|
if (ObjectUtils.isNotNull(bills.getMconsigneeCntyName())) {
|
|
|
- List<AgentItems> agentItemsList = agentItemsMapper.selectList(new LambdaQueryWrapper<AgentItems>()
|
|
|
+ agentItemsList = agentItemsMapper.selectList(new LambdaQueryWrapper<AgentItems>()
|
|
|
.apply("find_in_set(id,'" + bills.getMconsigneeCntyName() + "')")
|
|
|
.eq(AgentItems::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(AgentItems::getIsDeleted, 0));
|
|
|
for (AgentItems items : agentItemsList) {
|
|
|
- items.setUpdateTime(new Date());
|
|
|
- items.setUpdateUser(AuthUtil.getUserId());
|
|
|
- items.setUpdateUserName(AuthUtil.getUserName());
|
|
|
- if (ObjectUtils.isNotNull(bills.getMblno())){
|
|
|
- items.setBillNo(bills.getMblno());
|
|
|
+ if (ObjectUtils.isNotNull(bills.getIssueDate())) {
|
|
|
+ String clearanceSpeedOfProgress = "已报关/报关单号:" + bills.getMnotify2CntyName() + "/" + sdf.format(bills.getIssueDate()) + ";";
|
|
|
+ items.setClearanceSpeedOfProgress(clearanceSpeedOfProgress);
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bills.getMconsigneeCntyCode())){
|
|
|
- items.setOrderReleaseMethod(bills.getMconsigneeCntyCode());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**-------------箱型箱量计算---------*/
|
|
|
+ Integer V20 = 0;
|
|
|
+ Integer V40 = 0;
|
|
|
+ Integer V40HC = 0;
|
|
|
+ Integer V45 = 0;
|
|
|
+ Integer V48 = 0;
|
|
|
+ Integer other = 0;
|
|
|
+ BigDecimal teu = new BigDecimal("0.00");
|
|
|
+ StringBuilder boxTypeSum = new StringBuilder();
|
|
|
+
|
|
|
+ if (ObjectUtils.isNotNull(bills.getPreContainersList())) {
|
|
|
+ for (PreContainers item : bills.getPreContainersList()) {
|
|
|
+ if (!agentItemsList.isEmpty() && ObjectUtils.isNotNull(item.getInspectionDate())) {
|
|
|
+ for (AgentItems items : agentItemsList) {
|
|
|
+ if (item.getBoxNo().equals(items.getBoxNo())) {
|
|
|
+ String clearanceSpeedOfProgress = "已查验/查验时间:" + sdf.format(item.getInspectionDate()) + ";";
|
|
|
+ items.setClearanceSpeedOfProgress(items.getClearanceSpeedOfProgress() + clearanceSpeedOfProgress);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ item.setPid(bills.getId());
|
|
|
+ if (item.getCntrTypeCode().contains("20")) {
|
|
|
+ V20 += item.getQuantity();
|
|
|
+ } else if (item.getCntrTypeCode().contains("45")) {
|
|
|
+ V45 += item.getQuantity();
|
|
|
+ } else if (item.getCntrTypeCode().contains("48")) {
|
|
|
+ V48 += item.getQuantity();
|
|
|
+ } else if (item.getCntrTypeCode().contains("40") && (!item.getCntrTypeCode().contains("HQ")) && !item.getCntrTypeCode().contains("HC")) {
|
|
|
+ V40 += item.getQuantity();
|
|
|
+ } else if (item.getCntrTypeCode().contains("40") && (item.getCntrTypeCode().contains("HQ")) && item.getCntrTypeCode().contains("HC")) {
|
|
|
+ V40HC += item.getQuantity();
|
|
|
+ } else {
|
|
|
+ other += item.getQuantity();
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bills.getEtd())) {
|
|
|
- items.setWhetherSail("已开船");
|
|
|
- items.setEtd(bills.getEtd());
|
|
|
+ boxTypeSum.append(item.getCntrTypeCode()).append("*").append(item.getQuantity()).append(",");
|
|
|
+ if (ObjectUtils.isNotNull(item.getQuantity()) && ObjectUtils.isNotNull(item.getTeu())) {
|
|
|
+ teu = teu.add(new BigDecimal(item.getQuantity()).multiply(item.getTeu()));
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bills.getBookingDate())) {
|
|
|
- items.setEstimateReachHarbor(bills.getBookingDate());
|
|
|
+ }
|
|
|
+ R res = preContainersService.submitList(bills.getPreContainersList());
|
|
|
+ if (!res.isSuccess()) {
|
|
|
+ throw new RuntimeException("保存失败");
|
|
|
+ }
|
|
|
+ if (boxTypeSum.length() > 0) {
|
|
|
+ boxTypeSum = new StringBuilder(boxTypeSum.substring(0, boxTypeSum.length() - 1));
|
|
|
+ bills.setQuantityCntrDescr(boxTypeSum.toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ bills.setQuantityV20(V20);
|
|
|
+ bills.setQuantityV40(V40);
|
|
|
+ bills.setQuantityV40hc(V40HC);
|
|
|
+ bills.setQuantityV45(V45);
|
|
|
+ bills.setQuantityV48(V48);
|
|
|
+ bills.setQuantityOther(other);
|
|
|
+ bills.setTeu(teu.intValue());
|
|
|
+ /**-------------箱型箱量计算---------*/
|
|
|
+ if (ObjectUtils.isNotNull(bills.getCyReturnTime())) {
|
|
|
+ for (AgentItems items : agentItemsList) {
|
|
|
+ String clearanceSpeedOfProgress = "已放行/放行日期:" + sdf.format(bills.getCyReturnTime()) + ";";
|
|
|
+ items.setClearanceSpeedOfProgress(items.getClearanceSpeedOfProgress() + clearanceSpeedOfProgress);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.updateById(bills);
|
|
|
+ if (ObjectUtils.isNotNull(bills.getDispatchVehiclesList())) {
|
|
|
+ for (DispatchVehicles item : bills.getDispatchVehiclesList()) {
|
|
|
+ if (!agentItemsList.isEmpty() && ObjectUtils.isNotNull(item.getDispatchVehiclesDate())) {
|
|
|
+ for (AgentItems items : agentItemsList) {
|
|
|
+ if (item.getBoxNo().equals(items.getBoxNo())) {
|
|
|
+ String clearanceSpeedOfProgress = "已派车/派车时间:" + sdf.format(item.getDispatchVehiclesDate()) + ";";
|
|
|
+ items.setClearanceSpeedOfProgress(items.getClearanceSpeedOfProgress() + clearanceSpeedOfProgress);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bills.getEta())) {
|
|
|
- items.setWhetherReachHarbor("已到港");
|
|
|
- items.setActualReachHarbor(bills.getEta());
|
|
|
+ item.setPid(bills.getId());
|
|
|
+ if (item.getId() == null) {
|
|
|
+ item.setCreateTime(new Date());
|
|
|
+ item.setCreateUser(AuthUtil.getUserId());
|
|
|
+ item.setCreateUserName(AuthUtil.getUserName());
|
|
|
+ if (ObjectUtils.isNotNull(AuthUtil.getDeptId())) {
|
|
|
+ item.setCreateDeptName(deptName);
|
|
|
+ }
|
|
|
+ dispatchVehiclesMapper.insert(item);
|
|
|
+ } else {
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ dispatchVehiclesMapper.updateById(item);
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bills.getCyReturnTime())) {
|
|
|
- items.setReleaseDate(bills.getCyReturnTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getInStorageList())) {
|
|
|
+ for (InOutStorage item : bills.getInStorageList()) {
|
|
|
+ item.setPid(bills.getId());
|
|
|
+ if (item.getId() == null) {
|
|
|
+ item.setCreateTime(new Date());
|
|
|
+ item.setCreateUser(AuthUtil.getUserId());
|
|
|
+ item.setCreateUserName(AuthUtil.getUserName());
|
|
|
+ if (ObjectUtils.isNotNull(AuthUtil.getDeptId())) {
|
|
|
+ item.setCreateDeptName(deptName);
|
|
|
+ }
|
|
|
+ inOutStorageMapper.insert(item);
|
|
|
+ } else {
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ inOutStorageMapper.updateById(item);
|
|
|
}
|
|
|
- if (ObjectUtils.isNotNull(bills.getIssueDate())) {
|
|
|
- items.setWhetherClearance("已通关");
|
|
|
- items.setCustomsDeclarationNo(bills.getMnotify2CntyName());
|
|
|
- items.setCustomsDeclarationDate(bills.getIssueDate());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getOutStorageList())) {
|
|
|
+ for (InOutStorage item : bills.getOutStorageList()) {
|
|
|
+ item.setPid(bills.getId());
|
|
|
+ if (item.getId() == null) {
|
|
|
+ item.setCreateTime(new Date());
|
|
|
+ item.setCreateUser(AuthUtil.getUserId());
|
|
|
+ item.setCreateUserName(AuthUtil.getUserName());
|
|
|
+ if (ObjectUtils.isNotNull(AuthUtil.getDeptId())) {
|
|
|
+ item.setCreateDeptName(deptName);
|
|
|
+ }
|
|
|
+ inOutStorageMapper.insert(item);
|
|
|
+ } else {
|
|
|
+ item.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ item.setUpdateTime(new Date());
|
|
|
+ item.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ inOutStorageMapper.updateById(item);
|
|
|
}
|
|
|
- agentItemsMapper.updateById(items);
|
|
|
}
|
|
|
}
|
|
|
+ for (AgentItems items : agentItemsList) {
|
|
|
+ items.setUpdateTime(new Date());
|
|
|
+ items.setUpdateUser(AuthUtil.getUserId());
|
|
|
+ items.setUpdateUserName(AuthUtil.getUserName());
|
|
|
+ if (ObjectUtils.isNotNull(bills.getMblno())) {
|
|
|
+ items.setBillNo(bills.getMblno());
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getMconsigneeCntyCode())) {
|
|
|
+ items.setOrderReleaseMethod(bills.getMconsigneeCntyCode());
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getEtd())) {
|
|
|
+ items.setWhetherSail("已开船");
|
|
|
+ items.setEtd(bills.getEtd());
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getBookingDate())) {
|
|
|
+ items.setEstimateReachHarbor(bills.getBookingDate());
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getEta())) {
|
|
|
+ items.setWhetherReachHarbor("已到港");
|
|
|
+ items.setActualReachHarbor(bills.getEta());
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getCyReturnTime())) {
|
|
|
+ items.setReleaseDate(bills.getCyReturnTime());
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNotNull(bills.getIssueDate())) {
|
|
|
+ items.setWhetherClearance("已通关");
|
|
|
+ items.setCustomsDeclarationNo(bills.getMnotify2CntyName());
|
|
|
+ items.setCustomsDeclarationDate(bills.getIssueDate());
|
|
|
+ }
|
|
|
+ agentItemsMapper.updateById(items);
|
|
|
+ }
|
|
|
return R.data(bills);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Bills detailTradeByMblno(Bills bills) {
|
|
|
+ if (bills.getMblno() == null) {
|
|
|
+ throw new RuntimeException("缺少必要参数");
|
|
|
+ }
|
|
|
+ Bills detail = baseMapper.selectOne(new LambdaQueryWrapper<Bills>()
|
|
|
+ .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Bills::getIsDeleted, 0)
|
|
|
+ .eq(Bills::getMblno, bills.getMblno()));
|
|
|
+ detail.setPreContainersList(preContainersService.list(new LambdaQueryWrapper<PreContainers>()
|
|
|
+ .eq(PreContainers::getIsDeleted, 0)
|
|
|
+ .eq(PreContainers::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(PreContainers::getPid, detail.getId())));
|
|
|
+ detail.setFilesList(filesCenterService.list(new LambdaQueryWrapper<FilesCenter>()
|
|
|
+ .eq(FilesCenter::getIsDeleted, 0)
|
|
|
+ .eq(FilesCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FilesCenter::getPid, detail.getId())));
|
|
|
+ detail.setFeeCenterListC(feeCenterService.list(new LambdaQueryWrapper<FeeCenter>()
|
|
|
+ .eq(FeeCenter::getIsDeleted, 0)
|
|
|
+ .eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FeeCenter::getBillType, detail.getBillType())
|
|
|
+ .eq(FeeCenter::getPid, detail.getId())
|
|
|
+ .eq(FeeCenter::getDc, "C")
|
|
|
+ .eq(FeeCenter::getBillNo, detail.getBillNo())
|
|
|
+ ));
|
|
|
+ detail.setFeeCenterListD(feeCenterService.list(new LambdaQueryWrapper<FeeCenter>()
|
|
|
+ .eq(FeeCenter::getIsDeleted, 0)
|
|
|
+ .eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FeeCenter::getBillType, detail.getBillType())
|
|
|
+ .eq(FeeCenter::getPid, detail.getId())
|
|
|
+ .eq(FeeCenter::getDc, "D")
|
|
|
+ .eq(FeeCenter::getBillNo, detail.getBillNo())
|
|
|
+ ));
|
|
|
+ List<DispatchVehicles> dispatchVehiclesList = dispatchVehiclesMapper.selectList(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
+ .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
+ .eq(DispatchVehicles::getPid, detail.getId()));
|
|
|
+ if (!dispatchVehiclesList.isEmpty()) {
|
|
|
+ detail.setDispatchVehiclesList(dispatchVehiclesList);
|
|
|
+ } else {
|
|
|
+ detail.setDispatchVehiclesList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ List<InOutStorage> inOutStorageList = inOutStorageMapper.selectList(new LambdaQueryWrapper<InOutStorage>()
|
|
|
+ .eq(InOutStorage::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(InOutStorage::getIsDeleted, 0)
|
|
|
+ .eq(InOutStorage::getPid, detail.getId()));
|
|
|
+ if (!inOutStorageList.isEmpty()) {
|
|
|
+ List<InOutStorage> inStorageList = inOutStorageList.stream().filter(e -> "RK".equals(e.getBillType())).collect(Collectors.toList());
|
|
|
+ if (!inStorageList.isEmpty()) {
|
|
|
+ detail.setInStorageList(inStorageList);
|
|
|
+ } else {
|
|
|
+ detail.setInStorageList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ List<InOutStorage> outStorageList = inOutStorageList.stream().filter(e -> "CK".equals(e.getBillType())).collect(Collectors.toList());
|
|
|
+ if (!inStorageList.isEmpty()) {
|
|
|
+ detail.setOutStorageList(outStorageList);
|
|
|
+ } else {
|
|
|
+ detail.setOutStorageList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ detail.setInStorageList(new ArrayList<>());
|
|
|
+ detail.setOutStorageList(new ArrayList<>());
|
|
|
+ }
|
|
|
+
|
|
|
+ return detail;
|
|
|
+ }
|
|
|
+
|
|
|
}
|