Commit d2b262f4 authored by 周健威's avatar 周健威

修改登录信息

parent b0f2ec37
...@@ -179,7 +179,16 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> { ...@@ -179,7 +179,16 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
example.createCriteria().andEqualTo("username", username).andEqualTo("isdel", 0); example.createCriteria().andEqualTo("username", username).andEqualTo("isdel", 0);
List<AppUserLogin> userLoginList = mapper.selectByExample(example); List<AppUserLogin> userLoginList = mapper.selectByExample(example);
if (userLoginList != null && userLoginList.size() != 0) { if (userLoginList != null && userLoginList.size() != 0) {
return userLoginList.get(0); AppUserLogin db = userLoginList.get(0);
for(AppUserLogin login : userLoginList) {
if(login.getStatus().equals(0)) {
db = login;
break;
}else {
continue;
}
}
return db;
} }
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment