mingfu 2 недель назад
Родитель
Сommit
1e3e1fbbe7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      ie-system/src/main/resources/mapper/dz/DzSubjectMapper.xml

+ 2 - 2
ie-system/src/main/resources/mapper/dz/DzSubjectMapper.xml

@@ -34,8 +34,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="subjectName != null  and subjectName != ''"> and subject_name like concat('%', #{subjectName}, '%')</if>
             <if test="pinyin != null  and pinyin != ''"> and pinyin = #{pinyin}</if>
             <if test="sort != null "> and sort = #{sort}</if>
-            <if test="locations != null  and locations != ''"> and locations = #{locations}</if>
-            <if test="examTypes != null  and examTypes != ''"> and exam_types  like concat('%', #{examTypes}, '%') </if>
+            <if test="locations != null  and locations != ''"> and find_in_set(#{locations}, locations)</if>
+            <if test="examTypes != null  and examTypes != ''"> and find_in_set(#{examTypes}, exam_types) </if>
         </where>
         order by `sort`, subject_id
     </select>