This commit is contained in:
linfso 2025-06-18 11:51:16 +08:00
parent ebf9bed530
commit 58e904c23a

View File

@ -652,15 +652,15 @@
sum(if( tbMA.settleType=1,tbMA.recMoney, 0 ) ) AS totalMoneyRecAmount, sum(if( tbMA.settleType=1,tbMA.recMoney, 0 ) ) AS totalMoneyRecAmount,
sum(if( tbMA.settleType=1,tbMA.recdMoneyIn, 0 ) ) AS totalMoneyRecdIn, 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, round( sum(if( tbMA.settleType=1,tbMA.recdMoneyIn, 0 ) ) / sum(if( tbMA.settleType=1,tbMA.recMoney, 0 ) ),4 ) as totalMoneyRecdRate,
sum(if( tbMA.settleType=2,1, 0 ) ) AS totalMonthBillCount, 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.recMoney, 0 ) ) AS totalMonthRecAmount,
sum(if( tbMA.settleType=2,tbMA.recdMoneyIn, 0 ) ) AS totalMonthRecdIn, sum(if( tbMA.settleType=2,tbMA.recdMoneyIn, 0 ) ) AS totalMonthRecdIn,
sum(if( tbMA.settleType=2,tbMA.recdPayMoney60D, 0 ) ) AS totalMonthRecd70, 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.recdMoneyIn, 0 ) ) / sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ),4 ) as totalMonthRecdInRate,
round( sum(if( tbMA.settleType=2,tbMA.recdPayMoney60D, 0 ) ) / sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ),2 ) as totalMonthRecd70Rate, round( sum(if( tbMA.settleType=2,tbMA.recdPayMoney60D, 0 ) ) / sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ),4 ) as totalMonthRecd70Rate,
ifnull(ecp.money,0) as moneyProfit, ifnull(ecp.money,0) as moneyProfit,
ifnull(ecp.month_money,0) as monthProfit ifnull(ecp.month_money,0) as monthProfit