Ver Fonte

bugfix:无法选择没有订单的团客客人

xiari há 1 ano atrás
pai
commit
6bdbb4056f

+ 1 - 1
ruoyi-modules/ruoyi-hotel/src/main/resources/mapper/hotel/basics/KfGuestMapper.xml

@@ -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>