Commit f472d691 by 陶光胜

查询门店选择器配置

parent c686ad7f
......@@ -3,6 +3,7 @@ package com.gic.plug.web.controller;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.plug.web.vo.CityVO;
import com.gic.plug.web.vo.CountyVO;
import com.gic.plug.web.vo.ProvinceVO;
......@@ -10,7 +11,6 @@ import com.gic.store.dto.CityDTO;
import com.gic.store.dto.CountyDTO;
import com.gic.store.dto.ProvinceDTO;
import com.gic.store.service.ProvincesApiService;
import com.gic.store.utils.ErrorCode;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
......@@ -75,7 +75,7 @@ public class ProvincesController {
@ResponseBody
public Object searchCitys(String search){
if(StringUtils.isBlank(search)){
return RestResponse.failure(ErrorCode.ERR_2.getCode(), ErrorCode.ERR_2.getMsg());
return RestResponse.failure(ErrorCode.MISS_PARAMETER.getCode(), ErrorCode.MISS_PARAMETER.getMsg());
}
ServiceResponse<List<CityDTO>> serviceResponse = this.provincesApiService.queryCity(search);
if(serviceResponse.isSuccess()){
......@@ -88,7 +88,7 @@ public class ProvincesController {
@ResponseBody
public Object searchCounty(String search){
if(StringUtils.isBlank(search)){
return RestResponse.failure(ErrorCode.ERR_2.getCode(), ErrorCode.ERR_2.getMsg());
return RestResponse.failure(ErrorCode.MISS_PARAMETER.getCode(), ErrorCode.MISS_PARAMETER.getMsg());
}
ServiceResponse<List<CountyDTO>> serviceResponse = this.provincesApiService.queryCounty(search);
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