|
@@ -28,7 +28,7 @@
|
|
|
left join xjr_user t5 on t4.teacher_id = t5.id
|
|
left join xjr_user t5 on t4.teacher_id = t5.id
|
|
|
WHERE t1.delete_mark = 0
|
|
WHERE t1.delete_mark = 0
|
|
|
<if test="dto.keyword != null and dto.keyword != ''">
|
|
<if test="dto.keyword != null and dto.keyword != ''">
|
|
|
- AND (t1.name = #{dto.keyword} OR t1.credential_number = #{dto.keyword})
|
|
|
|
|
|
|
+ AND (t1.name like concat('%', #{dto.keyword}, '%') OR t1.credential_number like concat('%', #{dto.keyword}, '%'))
|
|
|
</if>
|
|
</if>
|
|
|
<if test="dto.userId != null">
|
|
<if test="dto.userId != null">
|
|
|
AND t1.id = #{dto.userId}
|
|
AND t1.id = #{dto.userId}
|