Commit 88892599 by 陶光胜

通知详情修改

parent 7ab48701
......@@ -2,6 +2,8 @@ package com.gic.enterprise.web.controller;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.auth.dto.ChannelResourceDTO;
import com.gic.auth.service.ResourceApiService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.data.api.dto.*;
import com.gic.data.api.service.MemberDataApiService;
......@@ -61,6 +63,8 @@ public class IndexModuleController {
private StoreApiService storeApiService;
@Autowired
private MemberDataApiService memberDataApiService;
@Autowired
private ResourceApiService resourceApiService;
@RequestMapping("/list-index-module")
public RestResponse listIndexModule() {
......@@ -255,10 +259,10 @@ public class IndexModuleController {
}
@RequestMapping("list-channel-data")
public RestResponse listChannelData(Integer type, Integer cuType){
public RestResponse listChannelData(Integer type, Long cardConfigId, Long appletConfigId, Long serviceConfigId){
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
Integer userId = UserDetailUtils.getUserDetail().getUserId();
ServiceResponse<List<MemberChannelDataDTO>> listServiceResponse = this.memberDataApiService.listChannelData(type, cuType, enterpriseId, userId);
ServiceResponse<List<MemberChannelDataDTO>> listServiceResponse = this.memberDataApiService.listChannelData(type, cardConfigId, appletConfigId, serviceConfigId, enterpriseId, userId);
return RestResponse.success(listServiceResponse.getResult());
}
......@@ -271,6 +275,13 @@ public class IndexModuleController {
return RestResponse.success(listServiceResponse.getResult());
}
@RequestMapping("list-resource")
public RestResponse listResource(){
Integer userId = UserDetailUtils.getUserDetail().getUserId();
ServiceResponse<ChannelResourceDTO> response = this.resourceApiService.getChannelResourceByUserId(userId);
return RestResponse.success(response.getResult());
}
private Integer getStoreNum(Integer enterpriseId, Integer status, String provinceId){
StoreSearchDTO storeSearchDTO = new StoreSearchDTO();
......
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