From 1ec8288c3622e1037213201135d6e243c97cfcca Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Sun, 2 Apr 2017 14:38:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=87=8F=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=8C=87=E5=AE=9A=E8=A7=92=E8=89=B2=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../upms/server/controller/manage/UpmsRoleController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsRoleController.java b/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsRoleController.java index 46df10a6..46e70a8e 100644 --- a/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsRoleController.java +++ b/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/server/controller/manage/UpmsRoleController.java @@ -87,7 +87,8 @@ public class UpmsRoleController extends BaseController { // 减权限 UpmsRolePermissionExample upmsRolePermissionExample = new UpmsRolePermissionExample(); upmsRolePermissionExample.createCriteria() - .andPermissionIdIn(deleteIds); + .andPermissionIdIn(deleteIds) + .andRoleIdEqualTo(id); upmsRolePermissionService.deleteByExample(upmsRolePermissionExample); return new UpmsResult(UpmsResultConstant.SUCCESS, datas.size()); }