05eb47ab60f85a95bac6cecb37b2479bbc213a8b.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.IndexTotalQhService;
  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/qhdc")
  18. public class DcIndexTotalQhController extends BaseController {
  19. @Autowired
  20. private IndexTotalQhService indexTotalQhService;
  21. @ApiOperation(value = "")
  22. @PostMapping(value = "")
  23. public BaseResponse<List<Map<String, Object>>> indexOfDc(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
  24. dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
  25. return buildSuccessResponse(indexTotalQhService.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(indexTotalQhService.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(indexTotalQhService.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(indexTotalQhService.pblmByAdCode(dcIndexTotalQhDto));
  44. }
  45. @ApiOperation(value = "按地区分类统计")
  46. @PostMapping(value = "/pblmByCate")
  47. public BaseResponse<Map<String, Object>> pblmByCate(@RequestBody DcIndexTotalQhDto dcIndexTotalQhDto) {
  48. dcIndexTotalQhDto.setOrgId(getCurrentOrgId());
  49. return buildSuccessResponse(indexTotalQhService.pblmByCate(dcIndexTotalQhDto));
  50. }
  51. }