修复减权限没有指定角色的问题

This commit is contained in:
shuzheng 2017-04-02 14:38:44 +08:00
parent 62ddd205e8
commit 1ec8288c36
1 changed files with 2 additions and 1 deletions

View File

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