|
|
@ -470,6 +470,13 @@ public class UserInfoService { |
|
|
|
HashMap<String, Object> resp = new HashMap<String, Object>(); |
|
|
|
HashMap<String, Object> resp = new HashMap<String, Object>(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
UserInfo user=userInfoMapper.adminLogins(userInfo); |
|
|
|
UserInfo user=userInfoMapper.adminLogins(userInfo); |
|
|
|
|
|
|
|
if (user.getRoleId().contains("1")){ |
|
|
|
|
|
|
|
user.setSchoolId(null); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
Integer schoolId = staffMapper.querySchoolId(user.getUserId()); |
|
|
|
|
|
|
|
user.setSchoolId(schoolId); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (user==null){ |
|
|
|
if (user==null){ |
|
|
|
resp.put("retvalue","账号密码有误,请稍后再试!"); |
|
|
|
resp.put("retvalue","账号密码有误,请稍后再试!"); |
|
|
|
resp.put("retcode", 300); |
|
|
|
resp.put("retcode", 300); |
|
|
|