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