|
@@ -31,9 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectPageByBo" resultType="org.dromara.hotel.domain.vo.KfOrderVo">
|
|
<select id="selectPageByBo" resultType="org.dromara.hotel.domain.vo.KfOrderVo">
|
|
|
select
|
|
select
|
|
|
o.id,o.guest_id,g.name as guestName,o.team_id,o.team_name,o.room_code,o.room_name,o.start_time
|
|
o.id,o.guest_id,g.name as guestName,o.team_id,o.team_name,o.room_code,o.room_name,o.start_time
|
|
|
- ,o.end_time, o.order_status, o.order_type,o.plan_money,o.actual_money,o.remark,g.phone,g.sex,g.id_card as
|
|
|
|
|
- idCard,
|
|
|
|
|
- rt.room_type_name as guestRoomType, rt.bed_number as bedQuantity, o.order_index as orderIndex
|
|
|
|
|
|
|
+ ,o.end_time, o.order_status, o.order_type,o.plan_money,o.actual_money,o.remark,g.phone,g.sex
|
|
|
|
|
+ ,g.id_card as idCard,rt.room_type_name as guestRoomType, rt.bed_number as bedQuantity
|
|
|
|
|
+ , o.order_index as orderIndex,o.create_time as createTime
|
|
|
from t_kf_order o
|
|
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
|
|
|
left join t_pt_room r on r.room_code = o.room_code
|
|
left join t_pt_room r on r.room_code = o.room_code
|
|
@@ -50,8 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bo.teamName != null and bo.teamName != ''">
|
|
<if test="bo.teamName != null and bo.teamName != ''">
|
|
|
and o.team_name like concat('%', #{bo.teamName}, '%')
|
|
and o.team_name like concat('%', #{bo.teamName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="bo.roomName != null and bo.roomName != ''">
|
|
|
|
|
- and o.room_name like concat('%', #{bo.roomName}, '%')
|
|
|
|
|
|
|
+ <if test="bo.roomCode != null and bo.roomCode != ''">
|
|
|
|
|
+ and o.room_code like concat('%', #{bo.roomCode}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="bo.orderStatusList != null and bo.orderStatusList.length > 0">
|
|
<if test="bo.orderStatusList != null and bo.orderStatusList.length > 0">
|
|
|
and o.order_status in
|
|
and o.order_status in
|