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/checktype/CheckTypeController.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/checktype/CheckTypeController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/checktype/CheckTypeController.java
index 68fefd8..434dcf9 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/checktype/CheckTypeController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/checktype/CheckTypeController.java
@@ -26,6 +26,7 @@
 import cn.lihu.jh.module.ecg.service.checktype.CheckTypeService;
 
 import javax.annotation.Resource;
+import javax.annotation.security.PermitAll;
 import javax.servlet.http.HttpServletResponse;
 import javax.validation.Valid;
 
@@ -38,11 +39,17 @@
     @Resource
     private CheckTypeService checkTypeService;
 
+    /** 銆愭湰娆″姞鍥恒�戞鏌ラ」鐩敼鍔ㄥ悗鍒锋柊鎺掗槦妯″潡鐨勬鏌ラ」鐩紦瀛橈紙浜插拰椤广�佸�欒瘖涓婇檺绛夛級锛屾敼瀹屼笉鐢ㄩ噸鍚湇鍔� */
+    @Resource
+    private cn.lihu.jh.module.ecg.service.queue.QueueService queueService;
+
     @PostMapping("/create")
     @Operation(summary = "鍒涘缓妫�鏌ョ被鍨�")
     @PreAuthorize("@ss.hasPermission('ecg:check-type:create')")
     public CommonResult<Integer> createCheckType(@Valid @RequestBody CheckTypeSaveReqVO createReqVO) {
-        return success(checkTypeService.createCheckType(createReqVO));
+        Integer id = checkTypeService.createCheckType(createReqVO);
+        queueService.initCheckType();
+        return success(id);
     }
 
     @PutMapping("/update")
@@ -50,6 +57,7 @@
     @PreAuthorize("@ss.hasPermission('ecg:check-type:update')")
     public CommonResult<Boolean> updateCheckType(@Valid @RequestBody CheckTypeSaveReqVO updateReqVO) {
         checkTypeService.updateCheckType(updateReqVO);
+        queueService.initCheckType();
         return success(true);
     }
 
@@ -59,6 +67,7 @@
     @PreAuthorize("@ss.hasPermission('ecg:check-type:delete')")
     public CommonResult<Boolean> deleteCheckType(@RequestParam("id") Integer id) {
         checkTypeService.deleteCheckType(id);
+        queueService.initCheckType();
         return success(true);
     }
 
@@ -94,7 +103,7 @@
 
     @GetMapping("/list-simple-check-type")
     @Operation(summary = "鑾峰緱绠�鍗曟鏌ョ被鍨嬪垪琛�")
-    @PreAuthorize("@ss.hasPermission('ecg:check-type:query')")
+    @PermitAll
     public CommonResult<List<SimpleCheckTypeRespVO>> getSimpleCheckTypeList() {
         List<CheckTypeDO> list = checkTypeService.getSimpleCheckTypeList();
         return success(BeanUtils.toBean(list, SimpleCheckTypeRespVO.class));

--
Gitblit v1.9.3