From 41a1a630afa056104411877b8e6552acd4617a53 Mon Sep 17 00:00:00 2001 From: zhengzheng <18918765049@163.com> Date: Sun, 1 May 2022 12:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/busi/ActiveInfoController.java | 24 ++++---- .../resources/templates/active/info/add.html | 8 +++ .../resources/templates/active/info/edit.html | 12 +++- .../templates/active/info/index.html | 55 ++++++++++++++----- .../templates/active/user/index.html | 14 +++-- .../templates/enroll/user/index.html | 13 +++-- .../com/wuzhen/system/domain/ActiveInfo.java | 19 +++++++ .../system/domain/EnrollActiveUser.java | 9 ++- .../com/wuzhen/system/domain/EnrollUser.java | 9 +++ .../mapper/system/ActiveInfoMapper.xml | 6 +- .../mapper/system/ActiveUserMapper.xml | 9 ++- .../mapper/system/EnrollUserMapper.xml | 12 +++- 12 files changed, 147 insertions(+), 43 deletions(-) diff --git a/zt-admin/src/main/java/com/wuzhen/web/controller/busi/ActiveInfoController.java b/zt-admin/src/main/java/com/wuzhen/web/controller/busi/ActiveInfoController.java index b4f902639..a4d5cc160 100644 --- a/zt-admin/src/main/java/com/wuzhen/web/controller/busi/ActiveInfoController.java +++ b/zt-admin/src/main/java/com/wuzhen/web/controller/busi/ActiveInfoController.java @@ -271,19 +271,17 @@ public class ActiveInfoController extends BaseController // return prefix + "/tree"; // } -// /** -// * 角色状态修改 -// */ -// @Log(title = "角色管理", businessType = BusinessType.UPDATE) -// @RequiresPermissions("system:role:edit") -// @PostMapping("/changeStatus") -// @ResponseBody -// public AjaxResult changeStatus(SysRole role) -// { -// roleService.checkRoleAllowed(role); -// roleService.checkRoleDataScope(role.getRoleId()); -// return toAjax(roleService.changeStatus(role)); -// } + /** + * 状态修改 + */ + @Log(title = "活动上下线状态管理", businessType = BusinessType.UPDATE) + @RequiresPermissions("active:info:edit") + @PostMapping("/changeStatus") + @ResponseBody + public AjaxResult changeStatus(@Validated ActiveInfo activeInfo) + { + return toAjax(activeInfoService.updateActive(activeInfo)); + } // /** // * 分配用户 diff --git a/zt-admin/src/main/resources/templates/active/info/add.html b/zt-admin/src/main/resources/templates/active/info/add.html index 2cd614291..4938c1295 100644 --- a/zt-admin/src/main/resources/templates/active/info/add.html +++ b/zt-admin/src/main/resources/templates/active/info/add.html @@ -29,6 +29,14 @@ +