Commit 5a61b3d4 by 陶光胜

省市区

parent 19595791
...@@ -75,7 +75,7 @@ public class ProvincesController { ...@@ -75,7 +75,7 @@ public class ProvincesController {
@ResponseBody @ResponseBody
public Object searchCitys(String search){ public Object searchCitys(String search){
if(StringUtils.isBlank(search)){ if(StringUtils.isBlank(search)){
RestResponse.failure(ErrorCode.ERR_2.getCode(), ErrorCode.ERR_2.getMsg()); return RestResponse.failure(ErrorCode.ERR_2.getCode(), ErrorCode.ERR_2.getMsg());
} }
ServiceResponse<List<CityDTO>> serviceResponse = this.provincesApiService.queryCity(search); ServiceResponse<List<CityDTO>> serviceResponse = this.provincesApiService.queryCity(search);
if(serviceResponse.isSuccess()){ if(serviceResponse.isSuccess()){
...@@ -88,7 +88,7 @@ public class ProvincesController { ...@@ -88,7 +88,7 @@ public class ProvincesController {
@ResponseBody @ResponseBody
public Object searchCounty(String search){ public Object searchCounty(String search){
if(StringUtils.isBlank(search)){ if(StringUtils.isBlank(search)){
RestResponse.failure(ErrorCode.ERR_2.getCode(), ErrorCode.ERR_2.getMsg()); return RestResponse.failure(ErrorCode.ERR_2.getCode(), ErrorCode.ERR_2.getMsg());
} }
ServiceResponse<List<CountyDTO>> serviceResponse = this.provincesApiService.queryCounty(search); ServiceResponse<List<CountyDTO>> serviceResponse = this.provincesApiService.queryCounty(search);
if(serviceResponse.isSuccess()){ if(serviceResponse.isSuccess()){
......
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