md
This commit is contained in:
parent
dffc2dddfd
commit
2225a09ed6
@ -465,7 +465,7 @@ public class EmisSettleBillController extends BaseController
|
|||||||
BigDecimal declareFee = BigDecimal.ZERO;
|
BigDecimal declareFee = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
|
||||||
String transFeeStr = "";
|
String transFeeStr = "0";
|
||||||
String cebFeeStr = "";
|
String cebFeeStr = "";
|
||||||
String declareFeeStr = "";
|
String declareFeeStr = "";
|
||||||
String otherFeeStr = "";
|
String otherFeeStr = "";
|
||||||
@ -494,12 +494,29 @@ 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());
|
||||||
voMap.put("transFee", transFeeStr);
|
voMap.put("transFee", transFeeStr);
|
||||||
|
if(StringUtils.isEmpty(transFeeStr)){
|
||||||
|
transFeeStr="0(CNY)";
|
||||||
|
}
|
||||||
|
|
||||||
if( cebFee.compareTo(BigDecimal.ZERO)!=0 || declareFee.compareTo(BigDecimal.ZERO)!=0 || otherFee.compareTo(BigDecimal.ZERO)!=0 ) {
|
if( cebFee.compareTo(BigDecimal.ZERO)!=0 || declareFee.compareTo(BigDecimal.ZERO)!=0 || otherFee.compareTo(BigDecimal.ZERO)!=0 ) {
|
||||||
tplName = "tpl/bill_tpl.xlsx";
|
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());
|
||||||
|
|
||||||
|
if(StringUtils.isEmpty(cebFeeStr)){
|
||||||
|
cebFeeStr="0(CNY)";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(StringUtils.isEmpty(declareFeeStr)){
|
||||||
|
cebFeeStr="0(CNY)";
|
||||||
|
}
|
||||||
|
|
||||||
|
if(StringUtils.isEmpty(otherFee)){
|
||||||
|
otherFee="0(CNY)";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
voMap.put("cebFee", cebFeeStr);
|
voMap.put("cebFee", cebFeeStr);
|
||||||
voMap.put("declareFee", declareFeeStr);
|
voMap.put("declareFee", declareFeeStr);
|
||||||
voMap.put("otherFee", StringUtils.removeEnd(otherFeeStr,","));
|
voMap.put("otherFee", StringUtils.removeEnd(otherFeeStr,","));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user