|
|
|
@ -305,7 +305,37 @@ public class UserInfoController { |
|
|
|
|
* 登陆查询学校/电子科大 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/loginSchoolClient") |
|
|
|
|
Response loginSchoolClient(@RequestParam("account") String account, @RequestParam("password") String password , HttpServletRequest req, HttpServletResponse res) { |
|
|
|
|
Response loginSchoolClient(@RequestParam("account") String account, @RequestParam("password") String password, @RequestParam("schoolId") Integer schoolId , HttpServletRequest req, HttpServletResponse res) { |
|
|
|
|
Response resp = new Response(); |
|
|
|
|
UserInfo userInfo = new UserInfo(); |
|
|
|
|
userInfo.setSchoolId(schoolId);//暂定学校id
|
|
|
|
|
if (account == null || account=="") { |
|
|
|
|
resp.setStatus(300); |
|
|
|
|
resp.setErrmessage("用户账号为空,登录失败!"); |
|
|
|
|
}else if(password ==null || password=="") { |
|
|
|
|
resp.setStatus(300); |
|
|
|
|
resp.setErrmessage("用户密码为空,登录失败!"); |
|
|
|
|
}else{ |
|
|
|
|
userInfo.setAccount(account); |
|
|
|
|
userInfo.setPassword(password); |
|
|
|
|
HashMap<String, Object> ret = userInfoService.loginSchoolClient(userInfo); |
|
|
|
|
int status = (int) ret.get("retcode"); |
|
|
|
|
if (200 == status) { |
|
|
|
|
resp.setStatus(status); |
|
|
|
|
resp.setMessage(ret.get("retvalue")); |
|
|
|
|
} else { |
|
|
|
|
resp.setStatus(status); |
|
|
|
|
resp.setErrmessage(ret.get("retvalue").toString()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return resp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 登陆查询学校/职战 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/zzLoginSchoolClient") |
|
|
|
|
Response zzLoginSchoolClient(@RequestParam("account") String account, @RequestParam("password") String password , HttpServletRequest req, HttpServletResponse res) { |
|
|
|
|
Response resp = new Response(); |
|
|
|
|
UserInfo userInfo = new UserInfo(); |
|
|
|
|
userInfo.setSchoolId(2105);//暂定学校id
|
|
|
|
|