cd923414d4d07c1b9c9640e181deb7e59f7454be.svn-base 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package cn.com.goldenwater.dcproj.controller;
  2. import cn.com.goldenwater.core.web.BaseController;
  3. import cn.com.goldenwater.core.web.BaseResponse;
  4. import cn.com.goldenwater.dcproj.dto.DcIndexTotalQhDto;
  5. import cn.com.goldenwater.dcproj.service.IndexTotalQhJcService;
  6. import io.swagger.annotations.Api;
  7. import io.swagger.annotations.ApiOperation;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. import java.util.List;
  14. import java.util.Map;
  15. @Api(value = "青海稽察首页", tags = "青海稽察首页")
  16. @RestController
  17. @RequestMapping("/index/total/qhjc")
  18. public class JcIndexTotalQhController extends BaseController {
  19. @Autowired
  20. private IndexTotalQhJcService indexTotalQhJcService;
  21. @ApiOperation(value = "")
  22. @PostMapping(value = "")
  23. public BaseResponse<List<Map<String, Object>>> indexOfDc(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
  24. dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
  25. return buildSuccessResponse(indexTotalQhJcService.totalByType(dcIndexTotalQhDto));
  26. }
  27. @ApiOperation(value = "问题分类统计")
  28. @PostMapping(value = "/totalByPtype")
  29. public BaseResponse<List<Map<String, Object>>> totalByPtype(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
  30. dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
  31. return buildSuccessResponse(indexTotalQhJcService.totalPblmByPtype(dcIndexTotalQhDto));
  32. }
  33. @ApiOperation(value = "按地区分类统计")
  34. @PostMapping(value = "/totalByAdCode")
  35. public BaseResponse<List<Map<String, Object>>> totalByAdCode(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
  36. dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
  37. return buildSuccessResponse(indexTotalQhJcService.totalByAdCode(dcIndexTotalQhDto));
  38. }
  39. @ApiOperation(value = "按地区分类统计")
  40. @PostMapping(value = "/pblmByAdCode")
  41. public BaseResponse<List<Map<String, Object>>> pblmByAdCode(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
  42. dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
  43. return buildSuccessResponse(indexTotalQhJcService.pblmByAdCode(dcIndexTotalQhDto));
  44. }
  45. }