|
@@ -133,6 +133,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update t_pt_room set status = #{status} where room_code = #{roomCode}
|
|
update t_pt_room set status = #{status} where room_code = #{roomCode}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
+ <update id="updateRoomStatusBatch" >
|
|
|
|
|
+ update t_pt_room set status = #{status} where room_code in (
|
|
|
|
|
+ <foreach collection="roomCodes" item="roomCode" separator=",">
|
|
|
|
|
+ #{roomCode}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ )
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
<select id = "queryListByGuestNameOrPhone" resultType="org.dromara.hotel.domain.vo.KfOrderVo">
|
|
<select id = "queryListByGuestNameOrPhone" resultType="org.dromara.hotel.domain.vo.KfOrderVo">
|
|
|
select o.*, g.name as guestName, g.phone,g.id_card as idCard, g.sex from t_kf_order o
|
|
select o.*, g.name as guestName, g.phone,g.id_card as idCard, g.sex from t_kf_order o
|
|
|
left join t_kf_guest g on o.guest_id = g.id
|
|
left join t_kf_guest g on o.guest_id = g.id
|
|
@@ -151,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id = "queryByRoomCodes" resultType="org.dromara.hotel.api.domain.vo.RemoteOrderVo">
|
|
<select id = "queryByRoomCodes" resultType="org.dromara.hotel.api.domain.vo.RemoteOrderVo">
|
|
|
- select o.*, g.name as name, g.phone,g.id_card as idCard, g.sex from t_kf_order o
|
|
|
|
|
|
|
+ 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 from t_kf_order o
|
|
|
left join t_kf_guest g on o.guest_id = g.id
|
|
left join t_kf_guest g on o.guest_id = g.id
|
|
|
<where>
|
|
<where>
|
|
|
g.del_flag = '0' and o.del_flag = '0'
|
|
g.del_flag = '0' and o.del_flag = '0'
|