|
@@ -106,10 +106,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
tko.order_status AS orderStatus, tko.order_type AS orderType, tko.order_index AS orderIndex,tkrlr.lock_id as lockId
|
|
tko.order_status AS orderStatus, tko.order_type AS orderType, tko.order_index AS orderIndex,tkrlr.lock_id as lockId
|
|
|
FROM t_kf_guest tkg
|
|
FROM t_kf_guest tkg
|
|
|
LEFT JOIN t_kf_guest_team_r tkgtr ON tkgtr.guest_id=tkg.id AND tkgtr.del_flag=0
|
|
LEFT JOIN t_kf_guest_team_r tkgtr ON tkgtr.guest_id=tkg.id AND tkgtr.del_flag=0
|
|
|
- LEFT JOIN t_kf_order tko ON tko.guest_id=tkg.id
|
|
|
|
|
|
|
+ LEFT JOIN t_kf_order tko ON tko.guest_id=tkg.id and tko.del_flag='0'
|
|
|
LEFT JOIN t_pt_room tpr ON tpr.room_code=tko.room_code
|
|
LEFT JOIN t_pt_room tpr ON tpr.room_code=tko.room_code
|
|
|
LEFT JOIN t_kf_room_lock_r tkrlr ON tkrlr.room_id = tpr.room_id
|
|
LEFT JOIN t_kf_room_lock_r tkrlr ON tkrlr.room_id = tpr.room_id
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ tkg.del_flag = '0'
|
|
|
<if test="bo.otherId != null and bo.otherId != ''">
|
|
<if test="bo.otherId != null and bo.otherId != ''">
|
|
|
and tkg.other_id = #{bo.otherId}
|
|
and tkg.other_id = #{bo.otherId}
|
|
|
</if>
|
|
</if>
|
|
@@ -136,7 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<update id="updateRoomStatusBatch" >
|
|
<update id="updateRoomStatusBatch" >
|
|
|
- update t_pt_room set status = #{status} where room_code in (
|
|
|
|
|
|
|
+ update t_pt_room set status = #{status} where room_code in (
|
|
|
<foreach collection="roomCodes" item="roomCode" separator=",">
|
|
<foreach collection="roomCodes" item="roomCode" separator=",">
|
|
|
#{roomCode}
|
|
#{roomCode}
|
|
|
</foreach>
|
|
</foreach>
|