From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize

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

diff --git a/java110-db/src/main/resources/mapper/common/MarketRuleObjV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/MarketRuleObjV1ServiceDaoImplMapper.xml
index f0296e6..53f6541 100644
--- a/java110-db/src/main/resources/mapper/common/MarketRuleObjV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/MarketRuleObjV1ServiceDaoImplMapper.xml
@@ -34,9 +34,22 @@
         <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>
         <if test="objType !=null and objType != ''">
             and t.obj_type= #{objType}
         </if>
+        <if test="objTypes !=null ">
+            and t.obj_type in
+            <foreach collection="objTypes" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
+
         order by t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -84,9 +97,21 @@
         <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>
         <if test="objType !=null and objType != ''">
             and t.obj_type= #{objType}
         </if>
+        <if test="objTypes !=null ">
+            and t.obj_type in
+            <foreach collection="objTypes" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
 
 
     </select>

--
Gitblit v1.8.0