From 1cad14bca191807e18705c3a5526eda8151be439 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 14 四月 2025 23:10:22 +0800
Subject: [PATCH] 批量审核和图片保存bug

---
 ycl-platform/src/main/java/com/ycl/controller/caseHandler/CheckHandleController.java |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/caseHandler/CheckHandleController.java b/ycl-platform/src/main/java/com/ycl/controller/caseHandler/CheckHandleController.java
index ba55a2e..21dd75d 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/caseHandler/CheckHandleController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/caseHandler/CheckHandleController.java
@@ -3,7 +3,7 @@
 import com.ycl.annotation.LogSave;
 import com.ycl.api.CommonResult;
 import com.ycl.bo.AdminUserDetails;
-import com.ycl.dto.caseHandler.ChechParam;
+import com.ycl.dto.caseHandler.CheckParam;
 import com.ycl.service.caseHandler.ICheckHandleService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -12,9 +12,12 @@
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.ArrayList;
+import java.util.List;
+
 /**
  * <p>
- *   瀹℃牳澶勭悊 鍓嶇鎺у埗鍣�
+ * 瀹℃牳澶勭悊 鍓嶇鎺у埗鍣�
  * </p>
  *
  * @author mg
@@ -32,10 +35,19 @@
     @ApiOperation(value = "瀹℃牳")
     @RequestMapping(value = "/check", method = RequestMethod.POST)
     @ResponseBody
-    @LogSave(operationType = "瀹℃牳绠$悊",contain = "妗堜欢瀹℃牳")
-    public CommonResult check(@Validated @RequestBody ChechParam chechParam) {
+    @LogSave(operationType = "瀹℃牳绠$悊", contain = "妗堜欢瀹℃牳")
+    public CommonResult check(@Validated @RequestBody CheckParam checkParam) {
         AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
-        chechParam.setCurrentUser(user.getUserId());
-        return CommonResult.success(iCheckHandleService.check(chechParam));
+        checkParam.setCurrentUser(user.getUserId());
+        return CommonResult.success(iCheckHandleService.check(checkParam));
+    }
+
+    @ApiOperation(value = "瀹℃牳")
+    @RequestMapping(value = "/check_batch", method = RequestMethod.POST)
+    @ResponseBody
+    @LogSave(operationType = "瀹℃牳绠$悊", contain = "妗堜欢瀹℃牳")
+    public CommonResult checkBatch(@RequestBody CheckParam checkParam) {
+        AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
+        return CommonResult.success(iCheckHandleService.checkBatch(checkParam.getIds(), user.getUserId()));
     }
 }

--
Gitblit v1.8.0