Skip to content

Commit e4b421a

Browse files
928255095gitee-org
authored andcommitted
优化水电费生成报表数据不准确问题
Signed-off-by: java110 <[email protected]>
1 parent 6eff7f8 commit e4b421a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

service-fee/src/main/java/com/java110/fee/feeMonth/PayFeeMonthHelp.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,9 @@ private void toSavePayFeeDetailMonth(double receivableAmount,
447447
getDiscountAmount(Double.parseDouble(tmpPayFeeDetailMonthPo.getReceivableAmount()),
448448
Double.parseDouble(tmpPayFeeDetailMonthPo.getReceivedAmount()),
449449
calendar.getTime(), feeDto) + "");
450+
if (feeDetailDto == null) {
451+
tmpPayFeeDetailMonthPo.setDiscountAmount("0");
452+
}
450453
tmpPayFeeDetailMonthPo.setMonthId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_monthId, true));
451454
tmpPayFeeDetailMonthPo.setRemark("程序计算生成");
452455
tmpPayFeeDetailMonthPo.setObjName(payFeeMonthOwnerDto.getObjName());

0 commit comments

Comments
 (0)