This commit is contained in:
linfso 2025-06-18 11:50:14 +08:00
parent 1c6f4ee3ba
commit ebf9bed530

View File

@ -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