|
|
@@ -13,4 +13,41 @@
|
|
|
LEFT JOIN base_classroom t4 ON t1.classroom_id = t4.id
|
|
|
WHERE t1.delete_mark = 0
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getClassStudent" parameterType="com.xjrsoft.module.banding.dto.BandingTaskClassStudentPageDto" resultType="com.xjrsoft.module.banding.vo.BandingTaskClassStudentListVo">
|
|
|
+ SELECT t1.id,t1.credential_number,t1.name,t4.name AS gender_cn,t1.graduate_school,t1.graduate_class,
|
|
|
+ t5.name AS first_ambition, t6.name AS second_ambition,t7.name AS stduy_status_cn,t1.height,t1.weight,t1.score,t3.name AS class_name,
|
|
|
+ t8.name AS teacher_name FROM base_new_student t1
|
|
|
+ INNER JOIN banding_task_class_student t2 ON t1.id = t2.new_student_id
|
|
|
+ INNER JOIN banding_task_class t3 ON t2.banding_task_class_id = t3.id
|
|
|
+ LEFT JOIN xjr_dictionary_detail t4 ON t1.gender = t4.code
|
|
|
+ LEFT JOIN base_major_set t5 ON t1.first_ambition_id = t5.id
|
|
|
+ LEFT JOIN base_major_set t6 ON t1.second_ambition_id = t6.id
|
|
|
+ LEFT JOIN xjr_dictionary_detail t7 ON t1.stduy_status = t6.code
|
|
|
+ LEFT JOIN xjr_user t8 ON t3.teacher_id = t8.id
|
|
|
+ WHERE t1.delete_mark = 0 AND t2.delete_mark = 0 AND t3.delete_mark = 0
|
|
|
+ AND t3.banding_task_id = #{dto.bandingTaskId}
|
|
|
+ <if test="dto.credentialNumber != null and dto.credentialNumber != ''">
|
|
|
+ AND t1.credential_number like concat('%', #{dto.credentialNumber}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="dto.name != null and dto.name != ''">
|
|
|
+ AND t1.name like concat('%', #{dto.name}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="dto.graduateSchool != null and dto.graduateSchool != ''">
|
|
|
+ AND t1.graduate_school = #{dto.graduateSchool}
|
|
|
+ </if>
|
|
|
+ <if test="dto.graduateClass != null and dto.graduateClass != ''">
|
|
|
+ AND t1.graduate_class like concat('%', #{dto.graduateClass}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="dto.stduyStatus != null and dto.stduyStatus != ''">
|
|
|
+ AND t1.stduy_status = #{dto.stduyStatus}
|
|
|
+ </if>
|
|
|
+ <if test="dto.status != null">
|
|
|
+ AND t3.status = #{dto.status}
|
|
|
+ </if>
|
|
|
+ <if test="dto.className != null and dto.className != ''">
|
|
|
+ AND t3.name like concat('%', #{dto.className}, '%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </select>
|
|
|
</mapper>
|