|
@@ -174,7 +174,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getBedStudentInfo" parameterType="com.xjrsoft.module.room.dto.AdjustBedPageDto" resultType="com.xjrsoft.module.room.vo.AdjustBedStudentPageVo">
|
|
<select id="getBedStudentInfo" parameterType="com.xjrsoft.module.room.dto.AdjustBedPageDto" resultType="com.xjrsoft.module.room.vo.AdjustBedStudentPageVo">
|
|
|
- SELECT t1.id,t3.name AS build_name,t2.room_name,t5.name AS gender_cn,t1.bed_number,t4.name AS student_name,t4.id as student_user_id,t6.student_user_id as student_appoint_id,t2.is_max,t2.id as room_id FROM room_bed t1
|
|
|
|
|
|
|
+ SELECT t1.id,t3.name AS build_name,t2.room_name,t5.name AS gender_cn,t1.bed_number,t4.name AS student_name,t4.id as student_user_id,t2.is_max,t2.id as room_id FROM room_bed t1
|
|
|
LEFT JOIN room t2 ON t1.room_id = t2.id
|
|
LEFT JOIN room t2 ON t1.room_id = t2.id
|
|
|
LEFT JOIN base_office_build t3 ON t2.office_build_id = t3.id
|
|
LEFT JOIN base_office_build t3 ON t2.office_build_id = t3.id
|
|
|
LEFT JOIN xjr_user t4 ON t1.student_user_id = t4.id
|
|
LEFT JOIN xjr_user t4 ON t1.student_user_id = t4.id
|