diff --git a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml index 898dac8c4..b07181947 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml @@ -148,9 +148,9 @@ tba.create_time as createTime, IFNULL( tbb.totalPayMoney, 0 ) AS totalPayMoney, - IFNULL( tbb.recdMoneyIn, 0 ) AS recdMoneyIn, - IFNULL( tbb.recdPayMoney60D, 0 ) recdPayMoney60D, - IFNULL( tbb.recdPayMoneyGreat60D, 0 ) recdPayMoneyGreat60D, + IFNULL( tbb.recdMoneyIn-tba.satisfy_money-tba.allowance_money-tba.deduction_money-tba.other_money, 0 ) AS recdMoneyIn, + IFNULL( tbb.recdPayMoney60D-tba.satisfy_money-tba.allowance_money-tba.deduction_money-tba.other_money, 0 ) recdPayMoney60D, + IFNULL( tbb.recdPayMoneyGreat60D-tba.satisfy_money-tba.allowance_money-tba.deduction_money-tba.other_money, 0 ) recdPayMoneyGreat60D, (tba.rec_money - tba.reced_money ) AS noRecMoney FROM (