|
@@ -5,23 +5,29 @@
|
|
<mapper namespace="com.xjrsoft.module.banding.mapper.BandingTaskClassStudentMapper">
|
|
<mapper namespace="com.xjrsoft.module.banding.mapper.BandingTaskClassStudentMapper">
|
|
<select id="satisfyStudent" resultType="com.xjrsoft.module.student.vo.BaseNewStudentPageVo">
|
|
<select id="satisfyStudent" resultType="com.xjrsoft.module.student.vo.BaseNewStudentPageVo">
|
|
SELECT t1.id,t1.graduate_school,t1.name,t1.gender,t2.name AS gender_cn,t1.credential_number,t1.height,t1.weight,
|
|
SELECT t1.id,t1.graduate_school,t1.name,t1.gender,t2.name AS gender_cn,t1.credential_number,t1.height,t1.weight,
|
|
- t1.score,t1.graduate_class,t1.source,t1.stduy_status,t3.name AS stduy_status_cn,t1.mobile,t1.first_ambition,
|
|
|
|
- t1.second_ambition,t1.is_adjust,t1.status FROM base_new_student t1
|
|
|
|
|
|
+ t1.score,t1.graduate_class,t6.name as source,t1.stduy_status,t3.name AS stduy_status_cn,t1.mobile,t7.name as first_ambition,
|
|
|
|
+ t8.name as second_ambition,t1.is_adjust,t1.status FROM base_new_student t1
|
|
INNER JOIN banding_task_class_student t5 ON t1.id = t5.new_student_id
|
|
INNER JOIN banding_task_class_student t5 ON t1.id = t5.new_student_id
|
|
LEFT JOIN xjr_dictionary_detail t2 ON t1.gender = t2.code AND t2.item_id = 2023000000000000004
|
|
LEFT JOIN xjr_dictionary_detail t2 ON t1.gender = t2.code AND t2.item_id = 2023000000000000004
|
|
LEFT JOIN xjr_dictionary_detail t3 ON t1.stduy_status = t3.code AND t3.item_id = 2023000000000000030
|
|
LEFT JOIN xjr_dictionary_detail t3 ON t1.stduy_status = t3.code AND t3.item_id = 2023000000000000030
|
|
|
|
+ LEFT JOIN xjr_dictionary_detail t6 ON t1.source = t6.code AND t6.item_id = 2023000000000000028
|
|
LEFT JOIN enrollment_plan t4 ON t1.enrollment_plan_id = t4.id
|
|
LEFT JOIN enrollment_plan t4 ON t1.enrollment_plan_id = t4.id
|
|
|
|
+ LEFT JOIN base_major_set t7 ON t1.first_ambition = t7.id
|
|
|
|
+ LEFT JOIN base_major_set t8 ON t1.second_ambition = t8.id
|
|
WHERE t1.delete_mark = 0 AND t5.delete_mark = 0 AND t5.banding_task_class_id = #{bandingTaskClassId}
|
|
WHERE t1.delete_mark = 0 AND t5.delete_mark = 0 AND t5.banding_task_class_id = #{bandingTaskClassId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="surplusStudent" parameterType="com.xjrsoft.module.banding.entity.BandingTaskClass" resultType="com.xjrsoft.module.student.vo.BaseNewStudentPageVo">
|
|
<select id="surplusStudent" parameterType="com.xjrsoft.module.banding.entity.BandingTaskClass" resultType="com.xjrsoft.module.student.vo.BaseNewStudentPageVo">
|
|
SELECT t1.id,t1.graduate_school,t1.name,t1.gender,t2.name AS gender_cn,t1.credential_number,t1.height,t1.weight,
|
|
SELECT t1.id,t1.graduate_school,t1.name,t1.gender,t2.name AS gender_cn,t1.credential_number,t1.height,t1.weight,
|
|
- t1.score,t1.graduate_class,t1.source,t1.stduy_status,t3.name AS stduy_status_cn,t1.mobile,t1.first_ambition,
|
|
|
|
- t1.second_ambition,t1.is_adjust,t1.status FROM base_new_student t1
|
|
|
|
|
|
+ t1.score,t1.graduate_class,t6.name as source,t1.stduy_status,t3.name AS stduy_status_cn,t1.mobile,t7.name as first_ambition,
|
|
|
|
+ t8.name as second_ambition,t1.is_adjust,t1.status FROM base_new_student t1
|
|
LEFT JOIN xjr_dictionary_detail t2 ON t1.gender = t2.code AND t2.item_id = 2023000000000000004
|
|
LEFT JOIN xjr_dictionary_detail t2 ON t1.gender = t2.code AND t2.item_id = 2023000000000000004
|
|
LEFT JOIN xjr_dictionary_detail t3 ON t1.stduy_status = t3.code AND t3.item_id = 2023000000000000030
|
|
LEFT JOIN xjr_dictionary_detail t3 ON t1.stduy_status = t3.code AND t3.item_id = 2023000000000000030
|
|
LEFT JOIN enrollment_plan t4 ON t1.enrollment_plan_id = t4.id
|
|
LEFT JOIN enrollment_plan t4 ON t1.enrollment_plan_id = t4.id
|
|
LEFT JOIN banding_task t5 ON t4.grade_id = t5.grade_id AND t4.enroll_type = t5.enroll_type
|
|
LEFT JOIN banding_task t5 ON t4.grade_id = t5.grade_id AND t4.enroll_type = t5.enroll_type
|
|
|
|
+ LEFT JOIN xjr_dictionary_detail t6 ON t1.source = t6.code AND t6.item_id = 2023000000000000028
|
|
|
|
+ LEFT JOIN base_major_set t7 ON t1.first_ambition = t7.id
|
|
|
|
+ LEFT JOIN base_major_set t8 ON t1.second_ambition = t8.id
|
|
WHERE t1.delete_mark = 0 AND t5.id = #{taskClass.bandingTaskId}
|
|
WHERE t1.delete_mark = 0 AND t5.id = #{taskClass.bandingTaskId}
|
|
AND (t1.first_ambition_id = #{taskClass.majorSetId} or t1.second_ambition_id = #{taskClass.majorSetId})
|
|
AND (t1.first_ambition_id = #{taskClass.majorSetId} or t1.second_ambition_id = #{taskClass.majorSetId})
|
|
and t1.id not in (SELECT new_student_id FROM banding_task_class_student c1
|
|
and t1.id not in (SELECT new_student_id FROM banding_task_class_student c1
|