Browse Source

河南科目处理

mingfu 2 weeks ago
parent
commit
1e3e1fbbe7
1 changed files with 2 additions and 2 deletions
  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>