goupan
2024-04-08 1e9fe1f81bb525ed1ce1cbf211f01816c13bd891
代码提交
1个文件已修改
7 ■■■■■ 已修改文件
common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
common-buiness/src/main/java/cn/stylefeng/guns/modular/business/mapper/mapping/MentalTestTopicMapper.xml
@@ -8,11 +8,10 @@
            AND status_flag = 1
            AND is_delete = 0
            <if test="classIdList != null and classIdList.size != 0">
                AND ( 1 = 2
                <foreach collection="classIdList" item="item" index="index" separator=" ">
                    OR FIND_IN_SET( #{item}, class_id ) > 0
                AND
                <foreach collection="classIdList" item="item" index="index" open="(" separator=" OR " close=")">
                    FIND_IN_SET(#{item}, class_id) > 0
                </foreach>
                )
            </if>
            <if test="title != null and title != ''">
                AND o.title LIKE CONCAT('%', #{title}, '%')