md
This commit is contained in:
parent
1c6f4ee3ba
commit
ebf9bed530
@ -652,11 +652,16 @@
|
|||||||
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,
|
||||||
|
|
||||||
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.recdPayMoney60D, 0 ) ) / sum(if( tbMA.settleType=2,tbMA.recMoney, 0 ) ),2 ) 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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user