md
This commit is contained in:
parent
29a6eb26a4
commit
a7585cb038
@ -237,9 +237,9 @@ public class EmisSettleBillController extends BaseController
|
|||||||
Map<String, Object> voMap = new HashMap<>();
|
Map<String, Object> voMap = new HashMap<>();
|
||||||
voMap.put("sendDate", DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,billItem.getWaybillDetail().getSendDate())) ;
|
voMap.put("sendDate", DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,billItem.getWaybillDetail().getSendDate())) ;
|
||||||
voMap.put("billCode",billItem.getBillCode());
|
voMap.put("billCode",billItem.getBillCode());
|
||||||
voMap.put("fjr",billItem.getWaybillDetail().getSendName()+"~"+billItem.getWaybillDetail().getReceiveName());
|
voMap.put("fjr",billItem.getWaybillDetail().getSendName()+"--"+billItem.getWaybillDetail().getReceiveName());
|
||||||
voMap.put("kjlx",billItem.getWaybillDetail().getSendSiteName()+"--"+billItem.getWaybillDetail().getDispatchUnderlingSiteName());
|
voMap.put("kjlx",billItem.getWaybillDetail().getSendSiteName()+"--"+billItem.getWaybillDetail().getDispatchUnderlingSiteName());
|
||||||
voMap.put("company",billItem.getWaybillDetail().getSendCompany());
|
voMap.put("company",billItem.getWaybillDetail().getCustName());
|
||||||
voMap.put("paymentType", DictUtils.getDictLabel("emis_payment_type",billItem.getWaybillDetail().getPaymentType()));
|
voMap.put("paymentType", DictUtils.getDictLabel("emis_payment_type",billItem.getWaybillDetail().getPaymentType()));
|
||||||
voMap.put("productTypeName", billItem.getWaybillDetail().getProductTypeName());
|
voMap.put("productTypeName", billItem.getWaybillDetail().getProductTypeName());
|
||||||
voMap.put("parcelQty", billItem.getWaybillDetail().getParcelQty().toString());
|
voMap.put("parcelQty", billItem.getWaybillDetail().getParcelQty().toString());
|
||||||
@ -251,8 +251,7 @@ public class EmisSettleBillController extends BaseController
|
|||||||
//计算分项数据
|
//计算分项数据
|
||||||
List<EmisSettleSubBillFeeitem> feeItemList=billItem.getFeeitemList();
|
List<EmisSettleSubBillFeeitem> feeItemList=billItem.getFeeitemList();
|
||||||
if( !CollectionUtils.isEmpty(feeItemList) ){
|
if( !CollectionUtils.isEmpty(feeItemList) ){
|
||||||
if(feeItemList.size()>1) {
|
|
||||||
tplName = "tpl/bill_tpl.xlsx";
|
|
||||||
BigDecimal otherFee = BigDecimal.ZERO;
|
BigDecimal otherFee = BigDecimal.ZERO;
|
||||||
BigDecimal transFee = BigDecimal.ZERO;
|
BigDecimal transFee = BigDecimal.ZERO;
|
||||||
BigDecimal cebFee = BigDecimal.ZERO;
|
BigDecimal cebFee = BigDecimal.ZERO;
|
||||||
@ -274,14 +273,14 @@ public class EmisSettleBillController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
voMap.put("transFee", transFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : transFee.stripTrailingZeros().toPlainString());
|
voMap.put("transFee", transFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : transFee.stripTrailingZeros().toPlainString());
|
||||||
|
if( cebFee.compareTo(BigDecimal.ZERO)!=0 || declareFee.compareTo(BigDecimal.ZERO)!=0 || otherFee.compareTo(BigDecimal.ZERO)!=0 ) {
|
||||||
|
tplName = "tpl/bill_tpl.xlsx";
|
||||||
voMap.put("cebFee", cebFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : cebFee.stripTrailingZeros().toPlainString());
|
voMap.put("cebFee", cebFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : cebFee.stripTrailingZeros().toPlainString());
|
||||||
voMap.put("declareFee", declareFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : declareFee.stripTrailingZeros().toPlainString());
|
voMap.put("declareFee", declareFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : declareFee.stripTrailingZeros().toPlainString());
|
||||||
voMap.put("otherFee", otherFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : otherFee.stripTrailingZeros().toPlainString());
|
voMap.put("otherFee", otherFee.compareTo(BigDecimal.ZERO) == 0 ? "0" : otherFee.stripTrailingZeros().toPlainString());
|
||||||
}else{
|
}else{
|
||||||
tplName = "tpl/bill_tpl_simple.xlsx";
|
tplName = "tpl/bill_tpl_simple.xlsx";
|
||||||
voMap.put("transFee",billItem.getWaybillDetail().getFreight().stripTrailingZeros().toPlainString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user