From ebf9bed530b229af501c866447c4a41fadf4bb04 Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 18 Jun 2025 11:50:14 +0800 Subject: [PATCH] md --- emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml index 471e479e0..458c4d483 100644 --- a/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml @@ -652,11 +652,16 @@ sum(if( tbMA.settleType=1,tbMA.recMoney, 0 ) ) AS totalMoneyRecAmount, sum(if( tbMA.settleType=1,tbMA.recdMoneyIn, 0 ) ) AS totalMoneyRecdIn, + round( sum(if( tbMA.settleType=1,tbMA.recdMoneyIn, 0 ) ) / sum(if( tbMA.settleType=1,tbMA.recMoney, 0 ) ),2 ) as totalMoneyRecdRate, + sum(if( tbMA.settleType=2,1, 0 ) ) AS totalMonthBillCount, sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ) AS totalMonthRecAmount, sum(if( tbMA.settleType=2,tbMA.recdMoneyIn, 0 ) ) AS totalMonthRecdIn, sum(if( tbMA.settleType=2,tbMA.recdPayMoney60D, 0 ) ) AS totalMonthRecd70, + round( sum(if( tbMA.settleType=2,tbMA.recdMoneyIn, 0 ) ) / sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ),2 ) as totalMonthRecdInRate, + round( sum(if( tbMA.settleType=2,tbMA.recdPayMoney60D, 0 ) ) / sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ),2 ) as totalMonthRecd70Rate, + ifnull(ecp.money,0) as moneyProfit, ifnull(ecp.month_money,0) as monthProfit