Commit d23efab8 by 林永健

fix(rpc-dj-strategy): 策略分析相关接口排除留言类型数据(strategy_type为7)

- 在统计商户数量时排除strategy_type为7的记录
- 在统计策略总数时排除strategy_type为7的记录
- 在统计门店数量时排除strategy_type为7的记录
- 在查询策略类型时排除strategy_type为7的记录
- 优化了SQL查询条件,确保业务类型筛选有效执行
1 parent 734b8de5
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
count(distinct merchant_id) merchantCount count(distinct merchant_id) merchantCount
from dj_car_life_strategy_info from dj_car_life_strategy_info
where deleted_flag = 'N' where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null"> <if test="businessType != null">
AND biz = #{businessType} AND biz = #{businessType}
</if> </if>
...@@ -91,6 +92,7 @@ ...@@ -91,6 +92,7 @@
count(*) strategyCount count(*) strategyCount
from dj_car_life_strategy_info from dj_car_life_strategy_info
where deleted_flag = 'N' where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null and businessType != ''"> <if test="businessType != null and businessType != ''">
AND biz = #{businessType} AND biz = #{businessType}
</if> </if>
...@@ -111,6 +113,7 @@ ...@@ -111,6 +113,7 @@
count(distinct merchant_id) storeCount count(distinct merchant_id) storeCount
from dj_car_life_strategy_info from dj_car_life_strategy_info
where deleted_flag = 'N' where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null and businessType != ''"> <if test="businessType != null and businessType != ''">
AND biz = #{businessType} AND biz = #{businessType}
</if> </if>
...@@ -141,6 +144,7 @@ ...@@ -141,6 +144,7 @@
strategy_type strategyType strategy_type strategyType
from dj_car_life_strategy_info from dj_car_life_strategy_info
where deleted_flag = 'N' where deleted_flag = 'N'
and strategy_type != 7
<if test="businessType != null and businessType != ''"> <if test="businessType != null and businessType != ''">
AND biz = #{businessType} AND biz = #{businessType}
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!