|
@@ -1455,24 +1455,53 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setBoxWeightSum(boxWeightSum);
|
|
bills.setBoxWeightSum(boxWeightSum);
|
|
|
StringBuilder text = new StringBuilder();
|
|
StringBuilder text = new StringBuilder();
|
|
|
StringBuilder cntrSealNo = new StringBuilder();
|
|
StringBuilder cntrSealNo = new StringBuilder();
|
|
|
|
|
+ int count = 0;
|
|
|
for (Containers item : containersList) {
|
|
for (Containers item : containersList) {
|
|
|
- text.append(item.getCntrNo()).append("/").append(item.getSealNo()).append("/").append(item.getCntrTypeCode()).append("<br/>")
|
|
|
|
|
- .append(item.getQuantity()).append(bills.getPackingUnit()).append("<br/>")
|
|
|
|
|
- .append(item.getGrossWeight()).append("KGS").append("/")
|
|
|
|
|
- .append(item.getMeasurement()).append("CBM").append("<br/>");
|
|
|
|
|
|
|
+ boolean isLast = (count == containersList.size() - 1);
|
|
|
|
|
+
|
|
|
|
|
+ text.append(item.getCntrNo()).append(" ").append(item.getSealNo()).append(" ").append(item.getCntrTypeCode()).append(" ")
|
|
|
|
|
+ .append(item.getQuantity()).append(bills.getPackingUnit()).append(" ")
|
|
|
|
|
+ .append(item.getGrossWeight()).append("KGS").append(" ");
|
|
|
|
|
+ if (isLast) {
|
|
|
|
|
+ text.append(item.getMeasurement()).append("CBM");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ text.append(item.getMeasurement()).append("CBM").append("<br/>");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+/* if (isLast) {
|
|
|
|
|
+ text.append(item.getCntrNo()).append(" ").append(item.getSealNo()).append(" ").append(item.getCntrTypeCode()).append(" ")
|
|
|
|
|
+ .append(item.getQuantity()).append(bills.getPackingUnit()).append(" ")
|
|
|
|
|
+ .append(item.getGrossWeight()).append("KGS").append(" ")
|
|
|
|
|
+ .append(item.getMeasurement()).append("CBM");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ text.append(item.getCntrNo()).append(" ").append(item.getSealNo()).append(" ").append(item.getCntrTypeCode()).append(" ")
|
|
|
|
|
+ .append(item.getQuantity()).append(bills.getPackingUnit()).append(" ")
|
|
|
|
|
+ .append(item.getGrossWeight()).append("KGS").append(" ")
|
|
|
|
|
+ .append(item.getMeasurement()).append("CBM").append("<br/>");
|
|
|
|
|
+ }*/
|
|
|
|
|
+ count++;
|
|
|
if (ObjectUtils.isNotNull(item.getCntrNo()) || ObjectUtils.isNotNull(item.getSealNo())) {
|
|
if (ObjectUtils.isNotNull(item.getCntrNo()) || ObjectUtils.isNotNull(item.getSealNo())) {
|
|
|
- cntrSealNo.append(item.getCntrNo()).append("/").append(item.getSealNo()).append(" ");
|
|
|
|
|
|
|
+ cntrSealNo.append(item.getCntrNo()).append(" ").append(item.getSealNo()).append(" ");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
bills.setCntryString(text.toString());
|
|
bills.setCntryString(text.toString());
|
|
|
- bills.setCommodityDescr(bills.getCommodityDescr());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ StringBuilder textCommodity = new StringBuilder();
|
|
|
|
|
+ textCommodity.append(bills.getCommodityDescr()).append("<br/>").append("<br/>")
|
|
|
|
|
+ .append("SHIPPER'S LOAD,COUNT & SEAL").append("<br/>")
|
|
|
|
|
+ .append(bills.getQuantityCntrDescr()).append("CONTAINER S.T.C").append("<br/>")
|
|
|
|
|
+ .append(bills.getHpaymode()).append(bills.getServiceTerms()).append("<br/>")
|
|
|
|
|
+ .append(bills.getCapitalLetters());
|
|
|
|
|
+
|
|
|
|
|
+ bills.setCommodityDescr(textCommodity.toString());
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
+"SHIPPER'S LOAD,COUNT & SEAL"+bills.getQuantityCntrDescr()+"CONTAINER S.T.C"
|
|
+"SHIPPER'S LOAD,COUNT & SEAL"+bills.getQuantityCntrDescr()+"CONTAINER S.T.C"
|
|
|
+bills.getHpaymode()+bills.getServiceTerms()+bills.getCapitalLetters()
|
|
+bills.getHpaymode()+bills.getServiceTerms()+bills.getCapitalLetters()
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
- bills.setMarks(bills.getMarks() + "<br/><br/>" + bills.getCntryString());
|
|
|
|
|
|
|
+ bills.setMarks(bills.getMarks());//+ bills.getCntryString() + "<br/><br/>"
|
|
|
bills.setCntrSealNo(cntrSealNo.toString());
|
|
bills.setCntrSealNo(cntrSealNo.toString());
|
|
|
bills.setDept(dept);
|
|
bills.setDept(dept);
|
|
|
map.put(MagicValues.DATA, bills);
|
|
map.put(MagicValues.DATA, bills);
|