diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index f5a56ec..2854d5e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -4,6 +4,7 @@ import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.system.domain.*; +import com.ruoyi.system.domain.req.TRecordResultReq; import com.ruoyi.system.service.*; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -160,4 +161,44 @@ public class AppController extends BaseController List tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor); return AjaxResult.success(tRecords); } + + /** + * 患者诊断记录信息细节 + * + * @param id id + * @return {@code AjaxResult} + */ + @ApiOperation("患者诊断记录信息详情") + @GetMapping("/diagnosisOfRecordDetails") + public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(Long id) { + return AjaxResult.success(tRecordService.selectById(id)); + } + + + /** + * 患者已诊列表 + * + * @param recordResultReq 记录结果要求 + * @return {@code AjaxResult} + */ + @ApiOperation("患者已诊列表") + @GetMapping("/patientsDiagnosedList") + public AjaxResult patientsDiagnosedList(TRecordResultReq recordResultReq) { + recordResultReq.setStatus("0"); + return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq)); + } + + + /** + * 病人等待名单 + * + * @param recordResultReq 记录结果要求 + * @return {@code AjaxResult} + */ + @ApiOperation("患者候诊列表") + @GetMapping("/patientsWaitingList") + public AjaxResult patientsWaitingList(TRecordResultReq recordResultReq) { + recordResultReq.setStatus("2"); + return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq)); + } }