From 59d4417527fe88299c90de9b21ff42efa690ee9c Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 22 八月 2024 17:44:49 +0800
Subject: [PATCH] update

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java
index c444d26..ce97709 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java
@@ -6,6 +6,7 @@
 import cn.lihu.jh.framework.common.pojo.PageResult;
 import cn.lihu.jh.framework.common.util.object.BeanUtils;
 import cn.lihu.jh.framework.excel.core.util.ExcelUtils;
+import cn.lihu.jh.module.ecg.controller.admin.queue.vo.PatientStatisticVO;
 import cn.lihu.jh.module.ecg.controller.admin.queue.vo.QueuePageReqVO;
 import cn.lihu.jh.module.ecg.controller.admin.queue.vo.QueueRespVO;
 import cn.lihu.jh.module.ecg.controller.admin.queue.vo.QueueSaveReqVO;
@@ -93,4 +94,44 @@
         return success(BeanUtils.toBean(queueDOList, QueueRespVO.class));
     }
 
+    @GetMapping("/get-patient-statistic")
+    @Operation(summary = "鍙栨偅鑰呯粺璁�")
+    @Parameter(name = "roomId", description = "璇婂缂栧彿", required = true, example = "116")
+    @Parameter(name = "bedNo", description = "宸ヤ綅缂栧彿", required = true, example = "B2")
+    @PreAuthorize("@ss.hasPermission('ecg:doctor:patientstatistic')")
+    public CommonResult<PatientStatisticVO> getPatientStatistic(
+            @RequestParam("roomId") Long roomId,
+            @RequestParam("bedNo") String bedNo)
+    {
+        PatientStatisticVO patientStatisticVO = queueService.getPatientStatistic(roomId, bedNo);
+        return success(patientStatisticVO);
+    }
+
+    @GetMapping("/passed-patient-return")
+    @Operation(summary = "杩囨湡鐥呬汉鍥炴潵")
+    @Parameter(name = "roomId", description = "璇婂缂栧彿", required = true, example = "116")
+    @Parameter(name = "bedNo", description = "宸ヤ綅缂栧彿", required = true, example = "B2")
+    @Parameter(name = "patId", description = "鎮h�呯紪鍙�", required = true, example = "B2")
+    @PreAuthorize("@ss.hasPermission('ecg:doctor:patient')")
+    public CommonResult<String> passedPatientReturn(
+            @RequestParam("roomId") Long roomId,
+            @RequestParam("bedNo") String bedNo,
+            @RequestParam("patId") String patId )
+    {
+        Integer result = queueService.passedPatientReturn(roomId, bedNo, patId);
+        return success("success");
+    }
+
+    @GetMapping("/queuejump")
+    @Operation(summary = "鎻掗槦")
+    @Parameter(name = "patId", description = "鎮h�呯紪鍙�", required = true, example = "B2")
+    @PreAuthorize("@ss.hasPermission('ecg:doctor:patient')")
+    public CommonResult<String> queueJump(
+            @RequestParam("patId") String patId,
+            @RequestParam("jumpFlag") Byte jumpFlag)
+    {
+        Integer result = queueService.queueJump(patId, jumpFlag);
+        return success("success");
+    }
+
 }

--
Gitblit v1.9.3