From a73ef74a7b215299d2e6be291266d7cc1c3da85c Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期二, 26 十一月 2024 22:29:53 +0800
Subject: [PATCH] queue表 增加 episode_id 字段

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/call/CallController.java |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/call/CallController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/call/CallController.java
index 3f238d7..ccd625e 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/call/CallController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/call/CallController.java
@@ -1,5 +1,6 @@
 package cn.lihu.jh.module.ecg.controller.admin.call;
 
+import cn.hutool.extra.servlet.ServletUtil;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.security.access.prepost.PreAuthorize;
@@ -27,6 +28,7 @@
 
 import javax.annotation.Resource;
 import javax.annotation.security.PermitAll;
+import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.validation.Valid;
 
@@ -48,7 +50,8 @@
 
     @PutMapping("/update")
     @Operation(summary = "鏇存柊鍙彿")
-    @PreAuthorize("@ss.hasPermission('ecg:call:update')")
+    //@PreAuthorize("@ss.hasPermission('ecg:call:update')")
+    @PermitAll
     public CommonResult<Boolean> updateCall(@Valid @RequestBody CallSaveReqVO updateReqVO) {
         callService.updateCall(updateReqVO);
         return success(true);
@@ -73,11 +76,22 @@
     }
 
     @GetMapping("/next")
-    @Operation(summary = "鑾峰緱涓嬩竴涓彨鍙�")
+    @Operation(summary = "澶у睆..鑾峰緱涓嬩竴涓彨鍙�")
     @PermitAll
     public CommonResult<CallRespVO> nextCall() {
         CallDO call = callService.getNextCall();
         return success(BeanUtils.toBean(call, CallRespVO.class));
     }
 
-}
\ No newline at end of file
+    @GetMapping("/next-install")
+    @Operation(summary = "璇婇棿灞�..鑾峰緱涓嬩竴涓彨鍙�")
+    @PermitAll
+    public CommonResult<CallRespVO> nextInstallCall(HttpServletRequest request) {
+        String reqIp = ServletUtil.getClientIP(request);
+
+        CallDO call = callService.getNextInstallCall(reqIp);
+        return success(BeanUtils.toBean(call, CallRespVO.class));
+    }
+
+}
+

--
Gitblit v1.9.3