|
@@ -22,8 +22,8 @@
|
|
|
ws.id,ws.admiss_num,ws.name,ws.card_id,ws.college,ws.major,ws.classstr,
|
|
ws.id,ws.admiss_num,ws.name,ws.card_id,ws.college,ws.major,ws.classstr,
|
|
|
ws.traffic_method,ws.arrive,ws.amount_payable,ws.pay_amount,
|
|
ws.traffic_method,ws.arrive,ws.amount_payable,ws.pay_amount,
|
|
|
CONCAT(wsd.building, '-', wsd.dormitory, '-', wsd.bed_num) as dormitory
|
|
CONCAT(wsd.building, '-', wsd.dormitory, '-', wsd.bed_num) as dormitory
|
|
|
- left join welcome_student_dormitory wsd on wsd.deleted =0 and wsd.student_card = ws.card_id
|
|
|
|
|
from welcome_student ws
|
|
from welcome_student ws
|
|
|
|
|
+ left join welcome_student_dormitory wsd on wsd.deleted =0 and wsd.student_card = ws.card_id
|
|
|
where ws.deleted = 0
|
|
where ws.deleted = 0
|
|
|
<if test="collegeId != null and collegeId != ''">
|
|
<if test="collegeId != null and collegeId != ''">
|
|
|
ws.college_id = #{collegeId}
|
|
ws.college_id = #{collegeId}
|
|
@@ -40,6 +40,6 @@
|
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
|
ws.name like '%' #{name} '%'
|
|
ws.name like '%' #{name} '%'
|
|
|
</if>
|
|
</if>
|
|
|
- order by rns.create_time desc
|
|
|
|
|
|
|
+ order by ws.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|