Browse Source

过滤删除的租户

hym 4 years ago
parent
commit
6fa1d7f744
1 changed files with 2 additions and 2 deletions
  1. 2 2
      user_auth/src/main/resources/mapper/UserMapper.xml

+ 2 - 2
user_auth/src/main/resources/mapper/UserMapper.xml

@@ -267,9 +267,9 @@
     </select>
     <select id="findLoginInfo" resultType="com.huaxu.dto.UserDto">
         select a.id, a.PHONE,b.TENANT_NAME,b.code tenantId,b.WEB_URL ,b.LOGO
-        from uims_user a left join uims_tenant b on
+        from uims_user a  join uims_tenant b on
         a.TENANT_ID=b.CODE
-        where a.PHONE=#{phone}
+        where a.PHONE=#{phone} and a.status!=0 and b.status!=0
     </select>
 
     <!-- 新增注册数据 -->