|
|
@@ -100,6 +100,18 @@
|
|
|
<if test="dto.teacherId != null">
|
|
|
and t4.teacher_id = #{dto.teacherId}
|
|
|
</if>
|
|
|
+ <if test="dto.classIds != null and dto.classIds.size() > 0">
|
|
|
+ and t3.class_id in
|
|
|
+ <foreach item="classId" index="index" collection="dto.classIds" open="(" close=")" separator=",">
|
|
|
+ #{classId}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="dto.credentialNumbers != null and dto.credentialNumbers.size() > 0">
|
|
|
+ and t1.credential_number in
|
|
|
+ <foreach item="credentialNumber" index="index" collection="dto.credentialNumbers" open="(" close=")" separator=",">
|
|
|
+ #{credentialNumber}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="dto.order == null">
|
|
|
order by t1.id
|
|
|
</if>
|