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.IndexTotalQhJcService; 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/qhjc") public class JcIndexTotalQhController extends BaseController { @Autowired private IndexTotalQhJcService indexTotalQhJcService; @ApiOperation(value = "") @PostMapping(value = "") public BaseResponse>> indexOfDc(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) { dcIndexTotalQhDto.setOrgId(getCurrentOrgId()); return buildSuccessResponse(indexTotalQhJcService.totalByType(dcIndexTotalQhDto)); } @ApiOperation(value = "问题分类统计") @PostMapping(value = "/totalByPtype") public BaseResponse>> totalByPtype(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) { dcIndexTotalQhDto.setOrgId(getCurrentOrgId()); return buildSuccessResponse(indexTotalQhJcService.totalPblmByPtype(dcIndexTotalQhDto)); } @ApiOperation(value = "按地区分类统计") @PostMapping(value = "/totalByAdCode") public BaseResponse>> totalByAdCode(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) { dcIndexTotalQhDto.setOrgId(getCurrentOrgId()); return buildSuccessResponse(indexTotalQhJcService.totalByAdCode(dcIndexTotalQhDto)); } @ApiOperation(value = "按地区分类统计") @PostMapping(value = "/pblmByAdCode") public BaseResponse>> pblmByAdCode(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) { dcIndexTotalQhDto.setOrgId(getCurrentOrgId()); return buildSuccessResponse(indexTotalQhJcService.pblmByAdCode(dcIndexTotalQhDto)); } }