@@ -166,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select o.*, g.name as name, g.phone,g.id_card as idCard, g.sex,o.start_time as checkinDate, o.end_time as checkoutDate,o.id from t_kf_order o
left join t_kf_guest g on o.guest_id = g.id
<where>
- g.del_flag = '0' and o.del_flag = '0'
+ g.del_flag = '0' and o.del_flag = '0' and o.order_status in ('1','2','3')
<if test="roomCodes != null and roomCodes.size() > 0">
and o.room_code in
<foreach collection="roomCodes" item="code" open="(" separator="," close=")">