|
|
@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
left join t_kf_guest g on tgr.guest_id = g.id
|
|
|
left join t_kf_order o on g.id = o.guest_id
|
|
|
<where>
|
|
|
- tgr.del_flag = '0' and o.order_status not in ('1','3')
|
|
|
+ tgr.del_flag = '0' and (o.order_status not in ('1','3') or o.order_status is null)
|
|
|
<if test="bo.teamId != null">
|
|
|
and tgr.team_id = #{bo.teamId}
|
|
|
</if>
|