diff --git a/src/main/java/com/yipin/liuwanr/controller/CustomerController.java b/src/main/java/com/yipin/liuwanr/controller/CustomerController.java index 3e0e856..3479beb 100644 --- a/src/main/java/com/yipin/liuwanr/controller/CustomerController.java +++ b/src/main/java/com/yipin/liuwanr/controller/CustomerController.java @@ -241,12 +241,18 @@ public class CustomerController { * 查询学校 */ @GetMapping("/querySchool") - Response querySchool(@RequestParam String schoolName) { + Response querySchool(@RequestParam String schoolName,@RequestParam Integer provinceId,@RequestParam Integer cityId) { Response resp = new Response(); School school = new School(); if (schoolName != null || schoolName != "") { school.setSchoolName(schoolName); } + if (provinceId !=null){ + school.setProvinceId(provinceId); + } + school.setCityId(cityId); + if (cityId !=null ){ + } HashMap ret = customerService.querySchool(school); resp.setStatus(200); resp.setErrmessage("Parameter effective"); diff --git a/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java b/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java index 0ea5907..464a0c6 100644 --- a/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java +++ b/src/main/java/com/yipin/liuwanr/controller/UserInfoController.java @@ -331,6 +331,36 @@ public class UserInfoController { 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 + 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 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; + } + /** * 服务端登陆 */ diff --git a/src/main/java/com/yipin/liuwanr/mapper/CustomerMapper.java b/src/main/java/com/yipin/liuwanr/mapper/CustomerMapper.java index c4e8114..30e2d62 100644 --- a/src/main/java/com/yipin/liuwanr/mapper/CustomerMapper.java +++ b/src/main/java/com/yipin/liuwanr/mapper/CustomerMapper.java @@ -89,6 +89,8 @@ public interface CustomerMapper { //查询行业 @Select({" "}) List querySchool(School school);