demand: 销售回款率相关需求

This commit is contained in:
aike 2026-04-07 13:11:48 +08:00
parent 8e0baaa18c
commit d6177f7fcf

View File

@ -870,17 +870,7 @@
-->
<select id="querySalesPayBackRateList" parameterType="EmisSettleBill" resultType="map">
SELECT
<choose>
<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>
ifnull(tbSB.salesSupport,'') as salesSupport,ifnull(tbSE.salesExecutive,'') as salesExecutive,tbMA.salesmen,
tbMA.billMonth,
sum(if( tbMA.settleType=1,1, 0 ) ) AS totalMoneyBillCount,