From 3409698b85a0ce4fdbfb1696f2163925df0db8b7 Mon Sep 17 00:00:00 2001 From: qi Date: Fri, 10 Apr 2020 17:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E6=9D=83=E9=99=90=E6=9C=AA=E5=88=A0=E9=99=A4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lq/cms/web/sys/RoleController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/lq/cms/web/sys/RoleController.java b/src/main/java/com/lq/cms/web/sys/RoleController.java index 836e727..34a6da1 100755 --- a/src/main/java/com/lq/cms/web/sys/RoleController.java +++ b/src/main/java/com/lq/cms/web/sys/RoleController.java @@ -6,6 +6,7 @@ import com.lq.cms.mode.AdminDataGridParam; import com.lq.cms.mode.ZtreeComposite; import com.lq.cms.service.SysRoleResourcePermissionService; import com.lq.cms.service.SysRoleService; +import com.lq.cms.service.SysUserRoleService; import com.lq.cms.vo.SysRoleResourcePermissionVo; import com.lq.cms.vo.SysRoleVo; import com.lq.code.entity.AjaxResult; @@ -40,6 +41,8 @@ public class RoleController { private SysRoleService sysRoleService; @Autowired private SysRoleResourcePermissionService sysRoleResourcePermissionService; + @Autowired + private SysUserRoleService sysUserRoleService; @RequestMapping("/index") @@ -135,7 +138,7 @@ public class RoleController { public Object delte(SysRole sysRole){ AjaxResult ajaxResult=new AjaxResult(); if (sysRole!=null&&sysRole.getId()!=null){ - sysRoleService.delete(sysRole.getId()); + sysRoleService.deleteRole(sysRole.getId()); } return ajaxResult; }