From 3d779f1856c2ba5110a8e1911ba27253036e58d8 Mon Sep 17 00:00:00 2001
From: yanghb <yanghb>
Date: 星期二, 09 四月 2024 15:40:55 +0800
Subject: [PATCH] 4.9

---
 common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml b/common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml
index 4410d51..376e40c 100644
--- a/common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml
+++ b/common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml
@@ -8,10 +8,11 @@
             AND status_flag = 1
             AND is_delete = 0
             <if test="classIdList != null and classIdList.size != 0">
-                AND
-                <foreach collection="classIdList" item="item" index="index" open="(" separator=" OR " close=")">
-                    FIND_IN_SET(#{item}, class_id) > 0
+                AND ( 1 = 2
+                <foreach collection="classIdList" item="item" index="index" separator=",">
+                    OR FIND_IN_SET( #{item}, class_id ) > 0
                 </foreach>
+                )
             </if>
             <if test="title != null and title != ''">
                 AND o.title LIKE CONCAT('%', #{title}, '%')

--
Gitblit v1.7.1