| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- package cn.com.goldenwater.dcproj.controller.achstatis;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import cn.com.goldenwater.dcproj.dto.AchievementStatisticsDto;
- import cn.com.goldenwater.dcproj.param.AchievementStatisticsParam;
- import cn.com.goldenwater.dcproj.service.AchievementStatisticsService;
- import com.github.pagehelper.PageInfo;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import io.swagger.annotations.ApiParam;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import java.util.List;
- /**
- * @author lhc
- * @date 2021-1-19
- */
- @Api(value = "xxx管理", tags = "xxx管理")
- @RestController
- @RequestMapping("/achsta")
- public class AchievementStatisticsController extends BaseController {
- private Logger logger = LoggerFactory.getLogger(getClass());
- @Autowired
- private AchievementStatisticsService achievementStatisticsService;
- @ApiOperation(value = "成果统计页面-根据督查对象类型编码和时间段查询问题详情")
- @RequestMapping(value = "/getQuestionInfoByObjtypeTimetype", method = RequestMethod.POST)
- public BaseResponse<PageInfo> getQuestionInfoByObjtypeTimetype(@ApiParam(name = "achievementStatisticsParam", value = "achievementStatisticsParam", required = true) @RequestBody AchievementStatisticsParam achievementStatisticsParam) {
- achievementStatisticsParam.setOrgId(getCurrentOrgId());
- PageInfo qbtypage = achievementStatisticsService.getQuestionInfoByObjtypeTimetype(achievementStatisticsParam);
- return buildSuccessResponse(qbtypage);
- }
- @ApiOperation(value = "成果统计页面-根据督查对象类型编码、时间段和问题等级查询问题详情")
- @RequestMapping(value = "/getQuestionInfoByObjtypeTimetypeCate", method = RequestMethod.POST)
- public BaseResponse<PageInfo> getQuestionInfoByObjtypeTimetypeCate(@ApiParam(name = "achievementStatisticsParam", value = "achievementStatisticsParam", required = true) @RequestBody AchievementStatisticsParam achievementStatisticsParam) {
- achievementStatisticsParam.setOrgId(getCurrentOrgId());
- PageInfo qbtcpage = achievementStatisticsService.getQuestionInfoByObjtypeTimetypeCate(achievementStatisticsParam);
- return buildSuccessResponse(qbtcpage);
- }
- @ApiOperation(value = "成果统计页面-根据督查对象类型编码、时间段和行政区划查询问题详情")
- @RequestMapping(value = "/getQuestionInfoByObjtypeTimetypeAdcode", method = RequestMethod.POST)
- public BaseResponse<PageInfo> getQuestionInfoByObjtypeTimetypeAdcode(@ApiParam(name = "achievementStatisticsParam", value = "achievementStatisticsParam", required = true) @RequestBody AchievementStatisticsParam achievementStatisticsParam) {
- achievementStatisticsParam.setOrgId(getCurrentOrgId());
- PageInfo qbtapage = achievementStatisticsService.getQuestionInfoByObjtypeTimetypeAdcode(achievementStatisticsParam);
- return buildSuccessResponse(qbtapage);
- }
- @ApiOperation(value = "成果统计页面-获取当年各批次督查对象数量")
- @RequestMapping(value = "/getObjNum", method = RequestMethod.GET)
- public BaseResponse<List<AchievementStatisticsDto>> getObjNum() {
- List<AchievementStatisticsDto> achievementStatisticsDtos = achievementStatisticsService.getObjNum(getCurrentOrgId());
- return buildSuccessResponse(achievementStatisticsDtos);
- }
- }
|