nfdw_stand/src/com/fgkj/dao/impl/User_infImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
nfdw_stand/src/com/fgkj/services/User_infService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
nfdw_stand/src/com/fgkj/dao/impl/User_infImpl.java
@@ -817,8 +817,8 @@ return (User_inf) list.get(0); } public Integer faceExist(String uName) { String sql = "select face_id as uId from db_user.tb_user_inf where uName=? limit 1"; public User_inf faceExist(String uName) { String sql = "select face_id as loginType,uId from db_user.tb_user_inf where uName=? limit 1"; List<User_inf> list = DAOHelper .executeQuery(sql, DBUtil.getConn(), new Object[]{uName}, new CallBack() { @@ -828,6 +828,7 @@ while(rs.next()){ User_inf uinf=new User_inf(); uinf.setUId(rs.getInt("uId")); uinf.setLoginType(rs.getInt("loginType")); list.add(uinf); } } catch (SQLException e) { @@ -837,10 +838,6 @@ } }); if(list.get(0).getUId()==0||list.get(0).getUId()==null){ return 0; }else{ return 1; } return list.get(0); } } nfdw_stand/src/com/fgkj/services/User_infService.java
@@ -527,12 +527,13 @@ } public ServiceModel faceExist(String uName) { Integer count = new User_infImpl().faceExist(uName); if(count==0){ User_inf userInf = new User_infImpl().faceExist(uName); if(userInf.getLoginType()==0||userInf.getLoginType()==null){ model.setCode(0); }else{ model.setCode(1); } model.setData(userInf.getUId()); return model; } }