提交 c69244f7 作者: 洪东保

debug

父级 ef6fde4c
......@@ -61,7 +61,7 @@ public class ModulePermissionServiceImpl extends ServiceImpl<ModulePermissionMap
// 授权了所有人
boolean all = userIds.contains(CategoryConstant.ALL_EN) || deptIds.contains(CategoryConstant.ALL_EN);
List<PermissionCheckedDTO.Category> categoryList = dto.getCategoryList();
if (CollUtil.isNotEmpty(deptIds) && CollUtil.isEmpty(categoryList)) {
if (CollUtil.isNotEmpty(deptIds) && CollUtil.isNotEmpty(categoryList)) {
for (PermissionCheckedDTO.Category category : categoryList) {
if (all || deptIds.contains(category.getId())) {
category.setCheck(true);
......@@ -70,7 +70,7 @@ public class ModulePermissionServiceImpl extends ServiceImpl<ModulePermissionMap
}
List<PermissionCheckedDTO.User> userList = dto.getUserList();
if (CollUtil.isNotEmpty(userIds) && CollUtil.isEmpty(userList)) {
if (CollUtil.isNotEmpty(userIds) && CollUtil.isNotEmpty(userList)) {
for (PermissionCheckedDTO.User user : userList) {
if (all || userIds.contains(user.getId())) {
user.setCheck(true);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论