瀏覽代碼

用户登录优化

zhijiezhao 2 年之前
父節點
當前提交
afd279f9d3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/resources/mapper/LoginMapper.xml

+ 2 - 0
src/main/resources/mapper/LoginMapper.xml

@@ -52,6 +52,8 @@
             )
             )
           and u.userIdentity in (1, 2, 3, 4)
           and u.userIdentity in (1, 2, 3, 4)
           and u.userOrganizeID = 0
           and u.userOrganizeID = 0
+          and u.userId>0
+          and cu.id >0
         limit 1
         limit 1
     </select>
     </select>
     <select id="getLoginUserByMobile" resultType="com.caimei365.user.model.vo.UserLoginVo">
     <select id="getLoginUserByMobile" resultType="com.caimei365.user.model.vo.UserLoginVo">