Browse Source

登录BUG修复

chenw 6 years ago
parent
commit
cf3da24a41

+ 1 - 1
bi-server/src/main/java/com/usoftchina/bi/server/dao/user/UserMapper.java

@@ -75,7 +75,7 @@ public interface UserMapper {
     /*
     查询id
      */
-    @Select("select bu_id as id from bi_users where user_name = #{userName}")
+    @Select("select bu_id as id from bi_users where user_name = #{userName,jdbcType=VARCHAR} or bu_phone = #{userName,jdbcType=VARCHAR}")
     int getUserId(String userName);
 
     /*