|
@@ -9,6 +9,7 @@
|
|
|
t1.second_ambition,t1.is_adjust,t1.status FROM base_new_student t1
|
|
t1.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
|
|
|
WHERE t1.delete_mark = 0
|
|
WHERE t1.delete_mark = 0
|
|
|
<if test="dto.name != null and dto.name != ''">
|
|
<if test="dto.name != null and dto.name != ''">
|
|
|
and t1.name like concat('%', #{dto.name}, '%')
|
|
and t1.name like concat('%', #{dto.name}, '%')
|
|
@@ -43,6 +44,14 @@
|
|
|
<if test="dto.enrollmentPlanId != null">
|
|
<if test="dto.enrollmentPlanId != null">
|
|
|
AND t1.enrollment_plan_id = #{dto.enrollmentPlanId}
|
|
AND t1.enrollment_plan_id = #{dto.enrollmentPlanId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="dto.treeId != null and dto.treeType != null">
|
|
|
|
|
+ <if test="dto.treeType == 1">
|
|
|
|
|
+ AND t4.grade_id = #{dto.treeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dto.treeType == 2">
|
|
|
|
|
+ AND t4.enroll_type = #{dto.treeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getEnrollmentPlanList" resultType="com.xjrsoft.module.student.vo.EnrollmentPlanTreeVo">
|
|
<select id="getEnrollmentPlanList" resultType="com.xjrsoft.module.student.vo.EnrollmentPlanTreeVo">
|
|
|
SELECT t1.enroll_type, t2.name AS enroll_type_cn,t3.name AS grade_name, t3.id as grade_id,t1.id FROM enrollment_plan t1
|
|
SELECT t1.enroll_type, t2.name AS enroll_type_cn,t3.name AS grade_name, t3.id as grade_id,t1.id FROM enrollment_plan t1
|