From f27309d45c7ef46b0aea98107b67d0c5b46d4217 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 09 四月 2026 10:00:26 +0800
Subject: [PATCH] fix: remove broken duplicate page return

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/QlyInspectController.java |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/QlyInspectController.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/QlyInspectController.java
index af8e95b..d2105b0 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/QlyInspectController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/QlyInspectController.java
@@ -17,6 +17,7 @@
 import com.vincent.rsf.server.manager.service.QlyInspectService;
 import com.vincent.rsf.server.manager.service.QlyIsptItemService;
 import com.vincent.rsf.server.system.constant.SerialRuleCode;
+import com.vincent.rsf.server.manager.utils.buildPageRowsUtils;
 import com.vincent.rsf.server.system.controller.BaseController;
 import com.vincent.rsf.server.system.utils.SerialRuleUtils;
 import io.swagger.annotations.Api;
@@ -27,7 +28,7 @@
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
-import javax.servlet.http.HttpServletResponse;
+import jakarta.servlet.http.HttpServletResponse;
 import java.util.*;
 
 @Slf4j
@@ -45,7 +46,9 @@
     public R page(@RequestBody Map<String, Object> map) {
         BaseParam baseParam = buildParam(map, BaseParam.class);
         PageParam<QlyInspect, BaseParam> pageParam = new PageParam<>(baseParam, QlyInspect.class);
-        return R.ok().add(qlyInspectService.page(pageParam, pageParam.buildWrapper(true)));
+        PageParam<QlyInspect, BaseParam> page = qlyInspectService.page(pageParam, pageParam.buildWrapper(true));
+        buildPageRowsUtils.userNameMap(page.getRecords());
+        return R.ok().add(page);
     }
 
     @PostMapping("/qlyInspect/all/save")
@@ -120,6 +123,16 @@
     }
 
     @PreAuthorize("hasAuthority('manager:qlyInspect:update')")
+    @ApiOperation("瀹℃牳纭")
+    @PostMapping("/qlyInspect/verify/complate/{id}")
+    public R verifyComplate(@PathVariable Long id) {
+        if (Objects.isNull(id)) {
+            throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return qlyInspectService.verifyComplate(id);
+    }
+
+    @PreAuthorize("hasAuthority('manager:qlyInspect:update')")
     @OperationLog("Update 璐ㄦ淇℃伅")
     @PostMapping("/qlyInspect/update")
     public R update(@RequestBody QlyInspect qlyInspect) {

--
Gitblit v1.9.1