ConsoleByDoctorController.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. package com.diagbot.web;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.diagbot.annotation.SysLogger;
  4. import com.diagbot.dto.DoctorAverageLevelDTO;
  5. import com.diagbot.dto.DoctorAverageStatisticsDTO;
  6. import com.diagbot.dto.GetDetailRecordListPageDTO;
  7. import com.diagbot.dto.GetDoctorDetailPageDTO;
  8. import com.diagbot.dto.RespDTO;
  9. import com.diagbot.facade.ConsoleByDoctorFacade;
  10. import com.diagbot.facade.ConsoleExportFacade;
  11. import com.diagbot.vo.DoctorAverageLevelVO;
  12. import com.diagbot.vo.DoctorAverageStatisticsVO;
  13. import com.diagbot.vo.ExportDoctorAverageLevelVO;
  14. import com.diagbot.vo.GetDetailRecordListPageVO;
  15. import com.diagbot.vo.GetDoctorDetailPageVO;
  16. import io.swagger.annotations.Api;
  17. import io.swagger.annotations.ApiOperation;
  18. import org.springframework.beans.factory.annotation.Autowired;
  19. import org.springframework.web.bind.annotation.PostMapping;
  20. import org.springframework.web.bind.annotation.RequestBody;
  21. import org.springframework.web.bind.annotation.RequestMapping;
  22. import org.springframework.web.bind.annotation.RestController;
  23. import javax.servlet.http.HttpServletResponse;
  24. import javax.validation.Valid;
  25. /**
  26. * @author songxl
  27. * @Description: 控制台(医生)统计相关API
  28. * @date 2022/4/8 13:20
  29. **/
  30. @RequestMapping("/consoleByDoctor")
  31. @RestController
  32. @Api(value = "控制台(医生)统计相关API", tags = { "控制台(医生)统计相关API" })
  33. @SuppressWarnings("unchecked")
  34. public class ConsoleByDoctorController {
  35. @Autowired
  36. private ConsoleByDoctorFacade consoleByDoctorFacade;
  37. @Autowired
  38. private ConsoleExportFacade consoleExportFacade;
  39. /**
  40. * 医生质控平均分页面统计
  41. *
  42. * @param doctorAverageStatisticsVO
  43. * @return
  44. */
  45. @ApiOperation(value = "医生质控平均分页面统计[by:songxl]",
  46. notes = "医生质控平均分页面统计")
  47. @PostMapping("/doctorAverageStatistics")
  48. @SysLogger("doctorAverageStatistics")
  49. public RespDTO<IPage<DoctorAverageStatisticsDTO>> doctorAverageStatistics(@RequestBody @Valid DoctorAverageStatisticsVO doctorAverageStatisticsVO) {
  50. return RespDTO.onSuc(consoleByDoctorFacade.doctorAverageStatistics(doctorAverageStatisticsVO));
  51. }
  52. /**
  53. * 医生质控平均分页面统计-导出
  54. *
  55. * @param doctorAverageStatisticsVO
  56. * @return
  57. */
  58. @PostMapping("/doctorAverageStatisticsExport")
  59. @SysLogger("doctorAverageStatisticsExport")
  60. public void doctorAverageStatisticsExport(HttpServletResponse response, @RequestBody @Valid DoctorAverageStatisticsVO doctorAverageStatisticsVO) {
  61. consoleExportFacade.doctorAverageStatisticsExport(response, doctorAverageStatisticsVO);
  62. }
  63. /**
  64. * 医生质控平均分-患者列表(等级)
  65. *
  66. * @param doctorAverageLevelVO
  67. * @return
  68. */
  69. @ApiOperation(value = "医生质控平均分-患者列表(等级)[by:songxl]",
  70. notes = "医生质控平均分-患者列表(等级)")
  71. @PostMapping("/doctorAverageLevelPage")
  72. @SysLogger("doctorAverageLevelPage")
  73. public RespDTO<IPage<DoctorAverageLevelDTO>> doctorAverageLevelPage(@RequestBody @Valid DoctorAverageLevelVO doctorAverageLevelVO) {
  74. return RespDTO.onSuc(consoleByDoctorFacade.doctorAverageLevelPage(doctorAverageLevelVO));
  75. }
  76. /**
  77. * 医生质控平均分-患者列表(等级)-导出
  78. *
  79. * @param exportDoctorAverageLevelVO
  80. * @return
  81. */
  82. @PostMapping("/doctorAverageLevelExport")
  83. @SysLogger("doctorAverageLevelExport")
  84. public void doctorAverageLevelExport(HttpServletResponse response, @RequestBody @Valid ExportDoctorAverageLevelVO exportDoctorAverageLevelVO) {
  85. consoleExportFacade.doctorAverageLevelExport(response, exportDoctorAverageLevelVO);
  86. }
  87. @ApiOperation(value = "获取缺陷列表[by:zhanghang]",
  88. notes = "获取缺陷列表接口")
  89. @PostMapping("/getDoctorDetailPage")
  90. @SysLogger("getDoctorDetailPage")
  91. public RespDTO<IPage<GetDoctorDetailPageDTO>> getDoctorDetailPage(@RequestBody GetDoctorDetailPageVO getDetailListPageVO) {
  92. return RespDTO.onSuc(consoleByDoctorFacade.getDoctorDetailPage(getDetailListPageVO));
  93. }
  94. @ApiOperation(value = "缺陷列表导出[by:zhanghang]",
  95. notes = "缺陷列表导出接口")
  96. @PostMapping("/getDoctorDetailPageExport")
  97. @SysLogger("getDoctorDetailPageExport")
  98. public void getDoctorDetailPageExport(HttpServletResponse response, @RequestBody GetDoctorDetailPageVO getDetailListPageVO) {
  99. consoleExportFacade.getDoctorDetailPageExport(response, getDetailListPageVO);
  100. }
  101. @ApiOperation(value = "获取缺陷数量对应的病历[by:zhanghang]",
  102. notes = "获取缺陷数量对应的病历")
  103. @PostMapping("/getDetailRecordListPage")
  104. @SysLogger("getDetailRecordListPage")
  105. public RespDTO<IPage<GetDetailRecordListPageDTO>> getDetailRecordListPage(@RequestBody GetDetailRecordListPageVO getDetailRecordListPageVO) {
  106. return RespDTO.onSuc(consoleByDoctorFacade.getDetailRecordListPage(getDetailRecordListPageVO));
  107. }
  108. @ApiOperation(value = "导出缺陷数量对应的病历[by:zhanghang]",
  109. notes = "导出缺陷数量对应的病历")
  110. @PostMapping("/getDetailRecordListPageExport")
  111. @SysLogger("getDetailRecordListPageExport")
  112. public void getDetailRecordListPageExport(HttpServletResponse response,@RequestBody GetDetailRecordListPageVO getDetailRecordListPageVO) {
  113. consoleExportFacade.getDetailRecordListPageExport(response,getDetailRecordListPageVO);
  114. }
  115. }