|
@@ -1720,9 +1720,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
if (bills != null) {
|
|
|
this.dictionaryConversion(bills);
|
|
this.dictionaryConversion(bills);
|
|
|
this.assignmentSeaBillsDetail(bills);
|
|
this.assignmentSeaBillsDetail(bills);
|
|
|
-// bills.setFM(MagicValues.FM);
|
|
|
|
|
- bills.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() + " ONLY.");
|
|
|
|
|
- bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
|
|
|
|
+
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
List<ContainersReports> containersReportsList = new ArrayList<>();
|
|
List<ContainersReports> containersReportsList = new ArrayList<>();
|
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
@@ -1765,6 +1763,9 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
cntrSealNo.append(item.getCntrNo()).append("/").append(item.getSealNo()).append(" ");
|
|
cntrSealNo.append(item.getCntrNo()).append("/").append(item.getSealNo()).append(" ");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ PrepareBills(bills, preContainersList, reportParams);
|
|
|
|
|
+
|
|
|
bills.setCntryString(text.toString());
|
|
bills.setCntryString(text.toString());
|
|
|
bills.setCntrSealNo(cntrSealNo.toString());
|
|
bills.setCntrSealNo(cntrSealNo.toString());
|
|
|
bills.setContainersReportsList(containersReportsList);
|
|
bills.setContainersReportsList(containersReportsList);
|
|
@@ -1798,13 +1799,6 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
|
|
|
|
|
PrepareBills(bills, preContainersList, reportParams);
|
|
PrepareBills(bills, preContainersList, reportParams);
|
|
|
|
|
|
|
|
-// bills.setFM(MagicValues.FM);
|
|
|
|
|
- if("1".equals(bills.getCapitalLettersRule())){
|
|
|
|
|
- bills.setCapitalLetters(bills.getQuantityCntrTypesDescr());
|
|
|
|
|
- }else{
|
|
|
|
|
- bills.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() + " ONLY.");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
StringBuilder text1 = new StringBuilder();
|
|
StringBuilder text1 = new StringBuilder();
|
|
|
text1.append(bills.getQuantity()).append(System.lineSeparator());
|
|
text1.append(bills.getQuantity()).append(System.lineSeparator());
|
|
|
text1.append(bills.getPackingUnit()).append(System.lineSeparator());
|
|
text1.append(bills.getPackingUnit()).append(System.lineSeparator());
|
|
@@ -3217,9 +3211,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
if (bills != null) {
|
|
|
this.dictionaryConversion(bills);
|
|
this.dictionaryConversion(bills);
|
|
|
this.assignmentSeaBillsDetail(bills);
|
|
this.assignmentSeaBillsDetail(bills);
|
|
|
-// bills.setFM(MagicValues.FM);
|
|
|
|
|
- bills.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() + " ONLY.");
|
|
|
|
|
- bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
|
|
|
|
+
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
|
.eq(Containers::getTenantId, AuthUtil.getTenantId())
|
|
.eq(Containers::getTenantId, AuthUtil.getTenantId())
|
|
@@ -3251,6 +3243,9 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
}
|
|
|
bills.setCntryString(text.toString());
|
|
bills.setCntryString(text.toString());
|
|
|
bills.setDept(dept);
|
|
bills.setDept(dept);
|
|
|
|
|
+
|
|
|
|
|
+ PrepareBills(bills, preContainersList, reportParams);
|
|
|
|
|
+
|
|
|
map.put(MagicValues.DATA, bills);
|
|
map.put(MagicValues.DATA, bills);
|
|
|
} else {
|
|
} else {
|
|
|
map.put(MagicValues.DATA, null);
|
|
map.put(MagicValues.DATA, null);
|
|
@@ -7609,31 +7604,21 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (cntrQtyInwords.length() > 0) {
|
|
if (cntrQtyInwords.length() > 0) {
|
|
|
cntrQtyInwords = new StringBuilder(cntrQtyInwords.substring(0, cntrQtyInwords.length() - 4));
|
|
cntrQtyInwords = new StringBuilder(cntrQtyInwords.substring(0, cntrQtyInwords.length() - 4));
|
|
|
cntrQtyInwords.append(" ONLY.");
|
|
cntrQtyInwords.append(" ONLY.");
|
|
|
- bill.setQuantityCntrTypesDescr(cntrQtyInwords.toString());
|
|
|
|
|
|
|
+ bill.setQuantityCntrTypesDescr("SAY " + cntrQtyInwords.toString());
|
|
|
}else{
|
|
}else{
|
|
|
bill.setQuantityCntrTypesDescr("");
|
|
bill.setQuantityCntrTypesDescr("");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 处理大唛头和大货描
|
|
|
|
|
- /*
|
|
|
|
|
- JsonNode jsMarks = RegularUtils.readJSONObject(reportParams, "marks");
|
|
|
|
|
- if(ObjectUtils.isNotNull(jsMarks) && RegularUtils.readJSONBooleanValue(jsMarks, "enabled", false)){
|
|
|
|
|
- String marks = ObjectUtils.isNotNull(bill.getMarks()) ? RegularUtils.trimRight(bill.getMarks()) : "";
|
|
|
|
|
- List<String> marksList = null;
|
|
|
|
|
- int lineLength = RegularUtils.readJSONIntValue(jsMarks, "lineLength", 0);
|
|
|
|
|
- if(lineLength>0){
|
|
|
|
|
- marksList = RegularUtils.reformatEDIText(marks, lineLength, false);
|
|
|
|
|
- }else{
|
|
|
|
|
- marksList = new ArrayList<>(Arrays.asList(marks.split("\n")));
|
|
|
|
|
- }
|
|
|
|
|
- int lineCount = RegularUtils.readJSONIntValue(jsMarks, "lineCount", 0);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if("1".equals(bill.getCapitalLettersRule())){
|
|
|
|
|
+ bill.setCapitalLetters(bill.getQuantityCntrTypesDescr());
|
|
|
|
|
+ }else{
|
|
|
|
|
+ bill.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bill.getQuantity()) + " " + bill.getPackingUnit() + " ONLY.");
|
|
|
}
|
|
}
|
|
|
- JsonNode jsGoodsDesc = RegularUtils.readJSONObject(reportParams, "goodsDesc,goodsDescr,CommodityDesc,CommodityDescr");
|
|
|
|
|
|
|
|
|
|
- // bill.getCommodityDescr()
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ String vslvoyNo = bill.getVesselEnName() + "/" + bill.getVoyageNo();
|
|
|
|
|
+ bill.setVesselCnName(vslvoyNo.trim());
|
|
|
|
|
+ bill.setVesselVoyageNo(vslvoyNo.trim());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return bill;
|
|
return bill;
|