Commit 5cd9a0c9 by 陶光胜

门店控件增加接口

parent 305e252c
package com.gic.store.service.outer.impl;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.enterprise.error.ErrorCode;
......@@ -15,6 +16,8 @@ import com.gic.store.service.ProvincesService;
import com.gic.store.service.StoreService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -27,6 +30,7 @@ import java.util.stream.Collectors;
@Service("provincesApiService")
public class ProvincesApiServiceImpl implements ProvincesApiService {
private static final Logger log = LogManager.getLogger(ProvincesApiServiceImpl.class);
@Autowired
private ProvincesService provincesService;
@Autowired
......@@ -61,6 +65,7 @@ public class ProvincesApiServiceImpl implements ProvincesApiService {
List<CityDTO> list = response.getResult();
for(CityDTO dto : list){
if(dto.getCityId().equals(cityId)){
log.info("城市信息:{}", JSON.toJSONString(dto));
return ServiceResponse.success(dto);
}
}
......
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