|
|
@@ -17,17 +17,17 @@
|
|
|
left join xjr_dictionary_detail t4 on t4.code = t2.stduy_status
|
|
|
left join xjr_user t5 ON t5.id = t3.teacher_id
|
|
|
WHERE t.delete_mark = 0
|
|
|
- <if test="dto.credentialNumber != null">
|
|
|
- AND t.credential_number = #{dto.credentialNumber}
|
|
|
+ <if test="dto.credentialNumber != null and dto.credentialNumber != ''">
|
|
|
+ AND t.credential_number like concat('%', #{dto.credentialNumber}, '%')
|
|
|
</if>
|
|
|
- <if test="dto.name != null">
|
|
|
- AND t.name = #{dto.name}
|
|
|
+ <if test="dto.name != null and dto.name != ''">
|
|
|
+ AND t.name like concat('%', #{dto.name}, '%')
|
|
|
</if>
|
|
|
<if test="dto.phone != null">
|
|
|
AND t.phone = #{dto.phone}
|
|
|
</if>
|
|
|
<if test="dto.readWay != null">
|
|
|
- AND t4.code = #{dto.readWay}
|
|
|
+ AND t4.code like concat('%', #{dto.readWay}, '%')
|
|
|
</if>
|
|
|
<if test="dto.classId != null">
|
|
|
AND t3.id = #{dto.classId}
|