Commit 6534ad67 by zhiwj

添加查询自有门店域的接口

parent f789d218
......@@ -62,6 +62,17 @@ public interface StoreRegionApiService {
ServiceResponse<List<StoreRegionDTO>> listStoreRegion(Integer enterpriseId, String search, Integer ownType);
/**
* 查询自有的门店域
* @Title: listOwnerStoreRegion
* @Description:
* @author zhiwj
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.store.dto.StoreRegionDTO>>
* @throws
*/
ServiceResponse<List<StoreRegionDTO>> listOwnerStoreRegion(Integer enterpriseId);
/**
* @Title: getStoreRegionByRegion
* @Description: 查询门店域详情
* @author zhiwj
......
......@@ -109,6 +109,12 @@ public class StoreRegionApiServiceImpl implements StoreRegionApiService {
}
@Override
public ServiceResponse<List<StoreRegionDTO>> listOwnerStoreRegion(Integer enterpriseId) {
List<StoreRegionDTO> list = storeRegionService.listStoreRegion(enterpriseId, null, StoreOwnTypeEnum.OWNER.getCode());
return ServiceResponse.success(list);
}
@Override
public ServiceResponse<StoreRegionDTO> getStoreRegionByRegion(Integer enterpriseId, Integer regionId) {
return ServiceResponse.success(EntityUtil.changeEntityByOrika(StoreRegionDTO.class, storeRegionService.getById(enterpriseId, regionId)));
}
......
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