From 1dcfa3702505f0c431757312b5304531029f90f6 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 09 四月 2026 18:57:38 +0800
Subject: [PATCH] #getter$摘出entity

---
 rsf-server/src/main/java/com/vincent/rsf/server/system/controller/SubsystemFlowTemplateController.java |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/system/controller/SubsystemFlowTemplateController.java b/rsf-server/src/main/java/com/vincent/rsf/server/system/controller/SubsystemFlowTemplateController.java
index 6d26dce..674978b 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/system/controller/SubsystemFlowTemplateController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/system/controller/SubsystemFlowTemplateController.java
@@ -15,8 +15,9 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
+import com.vincent.rsf.server.manager.utils.buildPageRowsUtils;
 
-import javax.servlet.http.HttpServletResponse;
+import jakarta.servlet.http.HttpServletResponse;
 import java.util.*;
 
 @RestController
@@ -29,22 +30,22 @@
     public R page(@RequestBody Map<String, Object> map) {
         BaseParam baseParam = buildParam(map, BaseParam.class);
         PageParam<SubsystemFlowTemplate, BaseParam> pageParam = new PageParam<>(baseParam, SubsystemFlowTemplate.class);
-        return R.ok().add(subsystemFlowTemplateService.page(pageParam, pageParam.buildWrapper(true)));
+        return R.ok().add(buildPageRowsUtils.rowsMap(subsystemFlowTemplateService.page(pageParam, pageParam.buildWrapper(true))));
     }
 
     @PostMapping("/subsystemFlowTemplate/list")
     public R list(@RequestBody Map<String, Object> map) {
-        return R.ok().add(subsystemFlowTemplateService.list());
+        return R.ok().add(buildPageRowsUtils.rowsMap(subsystemFlowTemplateService.list()));
     }
 
     @PostMapping({"/subsystemFlowTemplate/many/{ids}", "/subsystemFlowTemplates/many/{ids}"})
     public R many(@PathVariable Long[] ids) {
-        return R.ok().add(subsystemFlowTemplateService.listByIds(Arrays.asList(ids)));
+        return R.ok().add(buildPageRowsUtils.rowsMap(subsystemFlowTemplateService.listByIds(Arrays.asList(ids))));
     }
 
     @GetMapping("/subsystemFlowTemplate/{id}")
     public R get(@PathVariable("id") Long id) {
-        return R.ok().add(subsystemFlowTemplateService.getById(id));
+        return R.ok().add(buildPageRowsUtils.rowsMap(subsystemFlowTemplateService.getById(id)));
     }
 
     @OperationLog("Create 瀛愮郴缁熸ā鏉�")
@@ -57,7 +58,7 @@
         if (!subsystemFlowTemplateService.save(subsystemFlowTemplate)) {
             return R.error("Save Fail");
         }
-        return R.ok("Save Success").add(subsystemFlowTemplate);
+        return R.ok("Save Success").add(buildPageRowsUtils.rowsMap(subsystemFlowTemplate));
     }
 
     @OperationLog("Update 瀛愮郴缁熸ā鏉�")
@@ -68,7 +69,7 @@
         if (!subsystemFlowTemplateService.updateById(subsystemFlowTemplate)) {
             return R.error("Update Fail");
         }
-        return R.ok("Update Success").add(subsystemFlowTemplate);
+        return R.ok("Update Success").add(buildPageRowsUtils.rowsMap(subsystemFlowTemplate));
     }
 
     @OperationLog("Delete 瀛愮郴缁熸ā鏉�")
@@ -77,7 +78,7 @@
         if (!subsystemFlowTemplateService.removeByIds(Arrays.asList(ids))) {
             return R.error("Delete Fail");
         }
-        return R.ok("Delete Success").add(ids);
+        return R.ok("Delete Success").add(buildPageRowsUtils.rowsMap(ids));
     }
 
     @PostMapping("/subsystemFlowTemplate/query")
@@ -90,12 +91,12 @@
         subsystemFlowTemplateService.page(new Page<>(1, 30), wrapper).getRecords().forEach(
                 item -> vos.add(new KeyValVo(item.getId(), item.getId()))
         );
-        return R.ok().add(vos);
+        return R.ok().add(buildPageRowsUtils.rowsMap(vos));
     }
 
     @PostMapping("/subsystemFlowTemplate/export")
     public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception {
-        ExcelUtil.build(ExcelUtil.create(subsystemFlowTemplateService.list(), SubsystemFlowTemplate.class), response);
+        ExcelUtil.build(ExcelUtil.create(buildPageRowsUtils.rowsMap(subsystemFlowTemplateService.list()), SubsystemFlowTemplate.class), response);
     }
 
 }

--
Gitblit v1.9.1