From 0b3ff378a9faaf9d7a4831b7f0de67378fe0dfea Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:20:15 +0800
Subject: [PATCH] optimize 统计

---
 java110-db/src/main/resources/mapper/common/MarketRuleWayV1ServiceDaoImplMapper.xml |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/common/MarketRuleWayV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/MarketRuleWayV1ServiceDaoImplMapper.xml
index fa58640..b0afe65 100644
--- a/java110-db/src/main/resources/mapper/common/MarketRuleWayV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/MarketRuleWayV1ServiceDaoImplMapper.xml
@@ -32,6 +32,12 @@
         <if test="wayType !=null and wayType != ''">
             and t.way_type= #{wayType}
         </if>
+        <if test="wayTypes !=null ">
+            and t.way_type in
+            <foreach collection="wayTypes" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="wayObjId !=null and wayObjId != ''">
             and t.way_obj_id= #{wayObjId}
         </if>
@@ -44,6 +50,13 @@
         <if test="ruleId !=null and ruleId != ''">
             and t.rule_id= #{ruleId}
         </if>
+        <if test="ruleIds !=null ">
+            and t.rule_id in
+            <foreach collection="ruleIds" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
+
         order by t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -88,6 +101,12 @@
         <if test="wayType !=null and wayType != ''">
             and t.way_type= #{wayType}
         </if>
+        <if test="wayTypes !=null ">
+            and t.way_type in
+            <foreach collection="wayTypes" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="wayObjId !=null and wayObjId != ''">
             and t.way_obj_id= #{wayObjId}
         </if>
@@ -100,6 +119,12 @@
         <if test="ruleId !=null and ruleId != ''">
             and t.rule_id= #{ruleId}
         </if>
+        <if test="ruleIds !=null ">
+            and t.rule_id in
+            <foreach collection="ruleIds" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
 
 
     </select>

--
Gitblit v1.8.0