| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package cn.com.goldenwater.dcproj.controller;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import cn.com.goldenwater.dcproj.dto.DcIndexTotalQhDto;
- import cn.com.goldenwater.dcproj.service.IndexTotalQhService;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.List;
- import java.util.Map;
- @Api(value = "青海督查首页", tags = "青海督查首页")
- @RestController
- @RequestMapping("/index/total/qhdc")
- public class DcIndexTotalQhController extends BaseController {
- @Autowired
- private IndexTotalQhService indexTotalQhService;
- @ApiOperation(value = "")
- @PostMapping(value = "")
- public BaseResponse<List<Map<String, Object>>> indexOfDc(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
- dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
- return buildSuccessResponse(indexTotalQhService.totalByType(dcIndexTotalQhDto));
- }
- @ApiOperation(value = "问题分类统计")
- @PostMapping(value = "/totalByPtype")
- public BaseResponse<List<Map<String, Object>>> totalByPtype(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
- dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
- return buildSuccessResponse(indexTotalQhService.totalPblmByPtype(dcIndexTotalQhDto));
- }
- @ApiOperation(value = "按地区分类统计")
- @PostMapping(value = "/totalByAdCode")
- public BaseResponse<List<Map<String, Object>>> totalByAdCode(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
- dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
- return buildSuccessResponse(indexTotalQhService.totalByAdCode(dcIndexTotalQhDto));
- }
- @ApiOperation(value = "按地区分类统计")
- @PostMapping(value = "/pblmByAdCode")
- public BaseResponse<List<Map<String, Object>>> pblmByAdCode(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
- dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
- return buildSuccessResponse(indexTotalQhService.pblmByAdCode(dcIndexTotalQhDto));
- }
- @ApiOperation(value = "按地区分类统计")
- @PostMapping(value = "/pblmByCate")
- public BaseResponse<Map<String, Object>> pblmByCate(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
- dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
- return buildSuccessResponse(indexTotalQhService.pblmByCate(dcIndexTotalQhDto));
- }
- }
|