From d4344978c333c515b6652fb59c001c6be45772d1 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Fri, 22 Dec 2023 09:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BPlanEnterpriseController.java | 8 +++++--- .../programManagement/mapper/BPlanEnterpriseMapper.java | 2 +- .../programManagement/service/BPlanEnterpriseService.java | 2 +- .../service/impl/BPlanEnterpriseServiceImpl.java | 2 +- .../resources/mapper/yingji/BPlanEnterpriseMapper.xml | 6 +++--- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java index 18518be..32a4918 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java @@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; import javax.validation.Valid; +import java.util.Arrays; import java.util.List; /** @@ -198,9 +199,10 @@ public class BPlanEnterpriseController extends BaseController { /** * 批量更新状态 */ - @ApiOperation(value = "查看计划明细") - @PostMapping("/updateIdList") - public AjaxResult updateIdList(String[] idList) { + @ApiOperation(value = "批量更新状态") + @GetMapping("/updateIdList") + public AjaxResult updateIdList(@RequestParam("idListStr") String idListStr) { + List idList = Arrays.asList(idListStr.split(",")); bPlanEnterpriseService.updateIdList(idList); return AjaxResult.success(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java index 5cecb3b..75c2bf0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/mapper/BPlanEnterpriseMapper.java @@ -104,7 +104,7 @@ public interface BPlanEnterpriseMapper extends BaseMapper { * 批量更新状态 * @param idList */ - void updateIdList(String[] idList); + void updateIdList(List idList); /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java index 6d50fc6..0721f74 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/BPlanEnterpriseService.java @@ -99,7 +99,7 @@ public interface BPlanEnterpriseService extends IService { * 批量更新状态 * @param idList */ - void updateIdList(String[] idList); + void updateIdList(List idList); /** diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java index 5da7f04..7099d4a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/service/impl/BPlanEnterpriseServiceImpl.java @@ -102,7 +102,7 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl idList) { bPlanEnterpriseMapper.updateIdList(idList); } diff --git a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml index d8bc06d..bc031e4 100644 --- a/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/yingji/BPlanEnterpriseMapper.xml @@ -317,15 +317,15 @@ - + UPDATE b_plan_enterprise SET status = 1 WHERE id in - + #{item} - + update b_plan_enterprise