Commit 4bb5d169 by guojx

赛区列表接口完善

parent 16ee9d3a
...@@ -18,6 +18,7 @@ import com.gic.haoban.manage.web.vo.rank.IndexVO; ...@@ -18,6 +18,7 @@ import com.gic.haoban.manage.web.vo.rank.IndexVO;
import com.gic.haoban.manage.web.vo.rank.StoreRankAreaVO; import com.gic.haoban.manage.web.vo.rank.StoreRankAreaVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -87,14 +88,20 @@ public class StoreRankController { ...@@ -87,14 +88,20 @@ public class StoreRankController {
/** /**
* 赛区列表 * 赛区列表
* @param pageQo * @param pageQo
* @param enterpriseId
* @param indexCode * @param indexCode
* @param storeId
* @return * @return
*/ */
@RequestMapping("list-store-rank-area") @RequestMapping("list-store-rank-area")
@ResponseBody @ResponseBody
public RestResponse<Page<StoreRankAreaVO>> listStoreRankArea(PageQo pageQo, String enterpriseId, String indexCode) { public RestResponse<Page<StoreRankAreaVO>> listStoreRankArea(PageQo pageQo, String enterpriseId, String indexCode, String storeId) {
List<String> authStoreIdList = new ArrayList<>();
if (StringUtils.isNotBlank(storeId)) {
authStoreIdList.add(storeId);
}
Page<StoreRankAreaDTO> page = storeRankApiService Page<StoreRankAreaDTO> page = storeRankApiService
.pageStoreRankArea(enterpriseId, indexCode, null, null, pageQo.getBasePageInfo()); .pageStoreRankArea(enterpriseId, indexCode, null, null, pageQo.getBasePageInfo(), authStoreIdList);
Page<StoreRankAreaVO> voPage = EntityUtil.changeEntityNew(Page.class, page); Page<StoreRankAreaVO> voPage = EntityUtil.changeEntityNew(Page.class, page);
List<StoreRankAreaVO> voList = EntityUtil.changeEntityListNew(StoreRankAreaVO.class, page.getResult()); List<StoreRankAreaVO> voList = EntityUtil.changeEntityListNew(StoreRankAreaVO.class, page.getResult());
if (CollectionUtils.isNotEmpty(voList)) { if (CollectionUtils.isNotEmpty(voList)) {
......
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