Ver código fonte

优惠券不发放给机构用户

zouxuan 1 ano atrás
pai
commit
cfe8a04d4e

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/SysUserMapper.xml

@@ -54,7 +54,7 @@
         </choose>
         left join sys_user su on su.id_ = t.user_id_
         <where>
-            t.lock_flag_ = 0 and su.del_flag_ = 0
+            t.lock_flag_ = 0 and su.del_flag_ = 0 AND t.tenant_id_ != -1
             <if test="keyword != null and keyword != ''">
                 and (
                 su.real_name_ like concat('%',#{keyword},'%')