From 68ff33beff11310e830b0615b5a81f83fad0f683 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期日, 08 十一月 2026 23:33:14 +0800
Subject: [PATCH] ai优化

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
index c1230ce..832609a 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
@@ -126,10 +126,29 @@
         return success(BeanUtils.toBean(appointmentList.get(0), AppointmentRespVO.class));
     }
 
+    /**
+     * 銆愭湰闇�姹傦細绱ф�ユ偅鑰呬笉鎺掗槦鐩存帴妫�鏌ャ�戞寜銆岀敵璇峰崟鍙� / 灏辫瘖鍙� / 鎮h�呯紪鍙枫�嶆煡杩戜竴涓湀鐨勯绾﹁褰曘��
+     *
+     * <p>宸ヤ綔鍙板湪涓変釜杈撳叆妗嗛噷鎸夊洖杞︽椂璋冪敤锛涚粨鏋滄寜**棰勭害鏃堕棿鍊掑簭**锛堟渶杩戠殑鍦ㄥ墠锛夛紝
+     * 澶氭潯鏃剁敱鍓嶇寮归�夋嫨妗嗐�傜獥鍙d负 [浠婂ぉ-30 澶�, 浠婂ぉ+30 澶锛屽苟鎸夋湰绐楀彛寮�灞曠殑妫�鏌ラ」鐩繃婊ゃ��
+     *
+     * @param code       鐢宠鍗曞彿 / 灏辫瘖娴佹按鍙� / 鎮h�呯紪鍙凤紙涓夎�呬箣涓�锛�
+     * @param checkTypes 鏈獥鍙o紙璇婂锛夊紑灞曠殑妫�鏌ラ」鐩紝閫楀彿鍒嗛殧锛涗负绌鸿〃绀轰笉闄愬埗
+     */
+    @GetMapping("/emergency-candidates")
+    @Operation(summary = "绱ф�ュ姞鍋氾細鎸夌敵璇峰崟鍙�/灏辫瘖鍙�/鎮h�呯紪鍙锋煡杩戜竴涓湀鐨勯绾﹁褰�")
+    @Parameter(name = "code", description = "鐢宠鍗曞彿 / 灏辫瘖娴佹按鍙� / 鎮h�呯紪鍙�", required = true)
+    @Parameter(name = "checkTypes", description = "鏈獥鍙e紑灞曠殑妫�鏌ラ」鐩紝閫楀彿鍒嗛殧锛涗负绌轰笉闄愬埗")
+    @PreAuthorize("@ss.hasPermission('ecg:appointment:query')")
+    public CommonResult<List<AppointmentRespVO>> getEmergencyCandidates(@RequestParam("code") String code,
+                                                                       @RequestParam(value = "checkTypes", required = false) String checkTypes) {
+        List<AppointmentDO> appointmentList = appointmentService.getEmergencyCandidates(code, checkTypes);
+        return success(BeanUtils.toBean(appointmentList, AppointmentRespVO.class));
+    }
+
     @GetMapping("/page")
     @Operation(summary = "鑾峰緱棰勭害鍒嗛〉")
-    @PreAuthorize("@ss.hasPermission('ecg:appointment:query')")
-    public CommonResult<PageResult<AppointmentRespVO>> getAppointmentPage(AppointmentPageReqVO pageReqVO) {
+    @PreAuthorize("@ss.hasPermission('ecg:appointment:query')")    public CommonResult<PageResult<AppointmentRespVO>> getAppointmentPage(AppointmentPageReqVO pageReqVO) {
         pageReqVO.setOrderCreateTime("1");
         PageResult<AppointmentDO> pageResult = appointmentService.getAppointmentPage(pageReqVO);
         return success(BeanUtils.toBean(pageResult, AppointmentRespVO.class));

--
Gitblit v1.9.3