demand: 销售回款率相关需求
This commit is contained in:
parent
8e0baaa18c
commit
d6177f7fcf
@ -870,17 +870,7 @@
|
|||||||
-->
|
-->
|
||||||
<select id="querySalesPayBackRateList" parameterType="EmisSettleBill" resultType="map">
|
<select id="querySalesPayBackRateList" parameterType="EmisSettleBill" resultType="map">
|
||||||
SELECT
|
SELECT
|
||||||
<choose>
|
ifnull(tbSB.salesSupport,'') as salesSupport,ifnull(tbSE.salesExecutive,'') as salesExecutive,tbMA.salesmen,
|
||||||
<when test="params.statisticsType != null and params.statisticsType == 1">
|
|
||||||
ifnull(tbSB.salesSupport,'') as salesSupport,
|
|
||||||
</when>
|
|
||||||
<when test="params.statisticsType != null and params.statisticsType == 2">
|
|
||||||
ifnull(tbSE.salesExecutive,'') as salesExecutive,
|
|
||||||
</when>
|
|
||||||
<otherwise>
|
|
||||||
tbMA.salesmen,
|
|
||||||
</otherwise>
|
|
||||||
</choose>
|
|
||||||
tbMA.billMonth,
|
tbMA.billMonth,
|
||||||
|
|
||||||
sum(if( tbMA.settleType=1,1, 0 ) ) AS totalMoneyBillCount,
|
sum(if( tbMA.settleType=1,1, 0 ) ) AS totalMoneyBillCount,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user