|
|
@@ -285,15 +285,18 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getClassStudetBed" parameterType="com.xjrsoft.module.room.dto.AdjustClassPageDto" resultType="com.xjrsoft.module.room.vo.AdjustBedClassStudentPageVo">
|
|
|
- SELECT t1.user_id,t4.id AS class_id, t4.name AS class_name,t2.name AS student_name,REPLACE(REPLACE(t2.gender,'SB10001','男'),'SB10002','女') AS gender_cn,t7.name AS build_name,t6.room_name,t5.bed_number FROM base_student t1
|
|
|
+ SELECT t1.user_id,t4.id AS class_id, t4.name AS class_name,t2.name AS student_name,
|
|
|
+ REPLACE(REPLACE(t2.gender,'SB10001','男'),'SB10002','女') AS gender_cn,t7.name AS build_name,t6.room_name,t5.bed_number,
|
|
|
+ (t8.factrecarmny >= t8.factar) AS pay_status FROM base_student t1
|
|
|
LEFT JOIN xjr_user t2 ON t1.user_id = t2.id
|
|
|
LEFT JOIN base_student_school_roll t3 ON t1.user_id = t3.user_id
|
|
|
LEFT JOIN base_class t4 ON t3.class_id = t4.id
|
|
|
LEFT JOIN room_bed t5 ON t5.student_user_id = t1.user_id
|
|
|
LEFT JOIN room t6 ON t5.room_id = t6.id
|
|
|
LEFT JOIN base_office_build t7 ON t6.office_build_id = t7.id
|
|
|
+ INNER JOIN pb_v_xsxxsfytb t8 ON t2.credential_number = t8.Studentcode
|
|
|
WHERE t1.delete_mark = 0 AND t2.delete_mark = 0
|
|
|
- and t3.stduy_status = 'FB3002'
|
|
|
+ AND t3.stduy_status = 'FB3002'
|
|
|
AND t3.archives_status = 'FB2901'
|
|
|
<if test="dto.gradeId != null">
|
|
|
and t4.grade_id = #{dto.gradeId}
|
|
|
@@ -315,6 +318,9 @@
|
|
|
<if test="dto.studentName != null and dto.studentName != ''">
|
|
|
and t2.name like concat('%', #{dto.studentName}, '%')
|
|
|
</if>
|
|
|
+ <if test="dto.payStatus != null">
|
|
|
+ and (t8.factrecarmny >= t8.factar) = #{dto.payStatus}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getBedStudentInfo" parameterType="com.xjrsoft.module.room.dto.AdjustBedPageDto" resultType="com.xjrsoft.module.room.vo.AdjustBedStudentPageVo">
|