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()); }