|
@ -3,7 +3,11 @@ package com.epmet.dataaggre.controller.pub; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.dataaggre.dto.datastats.form.BaseDataFormDTO; |
|
|
import com.epmet.dataaggre.dto.datastats.form.BaseDataFormDTO; |
|
|
|
|
|
import com.epmet.dataaggre.dto.datastats.form.SubTopicAndGroupFormDTO; |
|
|
|
|
|
import com.epmet.dataaggre.dto.datastats.form.SubUserTotalFormDTO; |
|
|
import com.epmet.dataaggre.dto.datastats.result.BaseStatsDataResultDTO; |
|
|
import com.epmet.dataaggre.dto.datastats.result.BaseStatsDataResultDTO; |
|
|
|
|
|
import com.epmet.dataaggre.dto.datastats.result.SubTopicAndGroupResultDTO; |
|
|
|
|
|
import com.epmet.dataaggre.dto.datastats.result.SubUserTotalResultDTO; |
|
|
import com.epmet.dataaggre.dto.datastats.result.WorkFactResultDTO; |
|
|
import com.epmet.dataaggre.dto.datastats.result.WorkFactResultDTO; |
|
|
import com.epmet.dataaggre.service.datastats.DataStatsService; |
|
|
import com.epmet.dataaggre.service.datastats.DataStatsService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@ -12,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 小程序相关配置,可以放在这,目前只放了footbar |
|
|
* 小程序相关配置,可以放在这,目前只放了footbar |
|
|
* |
|
|
* |
|
@ -51,4 +57,27 @@ public class PubController { |
|
|
ValidatorUtils.validateEntity(formDTO,BaseDataFormDTO.WorkFact.class); |
|
|
ValidatorUtils.validateEntity(formDTO,BaseDataFormDTO.WorkFact.class); |
|
|
return new Result<WorkFactResultDTO>().ok(dataStatsService.getSubWorkFact(formDTO)); |
|
|
return new Result<WorkFactResultDTO>().ok(dataStatsService.getSubWorkFact(formDTO)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Param formDTO |
|
|
|
|
|
* @Description 对外接口--查询下级用户党员数 |
|
|
|
|
|
* @author sun |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("subUserTotal") |
|
|
|
|
|
public Result<List<SubUserTotalResultDTO>> subUserTotal(@RequestBody SubUserTotalFormDTO formDTO) { |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, SubUserTotalFormDTO.Agency.class); |
|
|
|
|
|
return new Result<List<SubUserTotalResultDTO>>().ok(dataStatsService.subUserTotal(formDTO)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Param formDTO |
|
|
|
|
|
* @Description 对外接口--查询下级话题和小组数 |
|
|
|
|
|
* @author sun |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("subTopicAndGroup") |
|
|
|
|
|
public Result<List<SubTopicAndGroupResultDTO>> subTopicAndGroup(@RequestBody SubTopicAndGroupFormDTO formDTO) { |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, SubTopicAndGroupFormDTO.Agency.class); |
|
|
|
|
|
return new Result<List<SubTopicAndGroupResultDTO>>().ok(dataStatsService.subTopicAndGroup(formDTO)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|