|
|
@ -241,12 +241,18 @@ public class CustomerController { |
|
|
|
* 查询学校 |
|
|
|
* 查询学校 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@GetMapping("/querySchool") |
|
|
|
@GetMapping("/querySchool") |
|
|
|
Response querySchool(@RequestParam String schoolName) { |
|
|
|
Response querySchool(@RequestParam String schoolName,@RequestParam Integer provinceId,@RequestParam Integer cityId) { |
|
|
|
Response resp = new Response(); |
|
|
|
Response resp = new Response(); |
|
|
|
School school = new School(); |
|
|
|
School school = new School(); |
|
|
|
if (schoolName != null || schoolName != "") { |
|
|
|
if (schoolName != null || schoolName != "") { |
|
|
|
school.setSchoolName(schoolName); |
|
|
|
school.setSchoolName(schoolName); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (provinceId !=null){ |
|
|
|
|
|
|
|
school.setProvinceId(provinceId); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
school.setCityId(cityId); |
|
|
|
|
|
|
|
if (cityId !=null ){ |
|
|
|
|
|
|
|
} |
|
|
|
HashMap<String, Object> ret = customerService.querySchool(school); |
|
|
|
HashMap<String, Object> ret = customerService.querySchool(school); |
|
|
|
resp.setStatus(200); |
|
|
|
resp.setStatus(200); |
|
|
|
resp.setErrmessage("Parameter effective"); |
|
|
|
resp.setErrmessage("Parameter effective"); |
|
|
|