|
|
@@ -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>
|