Merge remote-tracking branch 'origin/feature/REQ-1102' into feature/REQ-1102
This commit is contained in:
commit
af1d3ab133
@ -46,7 +46,7 @@ public class SaasRoleGroupDao extends ServiceImpl<SaasRoleGroupMapper, SaasRoleG
|
|||||||
public void delete(List<Long> id) {
|
public void delete(List<Long> id) {
|
||||||
lambdaUpdate()
|
lambdaUpdate()
|
||||||
.in(BaseEntity::getId,id)
|
.in(BaseEntity::getId,id)
|
||||||
.set(BaseEntity::getIsDelete,id)
|
.set(BaseEntity::getIsDelete,1l)
|
||||||
.update();
|
.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -421,7 +421,7 @@ public class PermissionGroupImpl implements PermissionGroupService {
|
|||||||
.collect(Collectors.groupingBy(SaveOrUpdatePermissionGroupVO.PermissionGroupScopeVO::getType));
|
.collect(Collectors.groupingBy(SaveOrUpdatePermissionGroupVO.PermissionGroupScopeVO::getType));
|
||||||
List<SaveOrUpdatePermissionGroupVO.PermissionGroupScopeVO> includeScopes = Optional.ofNullable(selectedOuMap.get(PermissionScope.INCLUDE.getCode())).orElse(new ArrayList<>());
|
List<SaveOrUpdatePermissionGroupVO.PermissionGroupScopeVO> includeScopes = Optional.ofNullable(selectedOuMap.get(PermissionScope.INCLUDE.getCode())).orElse(new ArrayList<>());
|
||||||
List<SaveOrUpdatePermissionGroupVO.PermissionGroupScopeVO> excludeScopes = Optional.ofNullable(selectedOuMap.get(PermissionScope.EXCLUDE.getCode())).orElse(new ArrayList<>());
|
List<SaveOrUpdatePermissionGroupVO.PermissionGroupScopeVO> excludeScopes = Optional.ofNullable(selectedOuMap.get(PermissionScope.EXCLUDE.getCode())).orElse(new ArrayList<>());
|
||||||
if (includeScopes.size() + excludeScopes.size() != selectedWorkspace.size()) {
|
if (includeScopes.size() + excludeScopes.size() != selectedOu.size()) {
|
||||||
throw new BizException(BaseCode.BAD_REQUEST, "选择类型设置错误");
|
throw new BizException(BaseCode.BAD_REQUEST, "选择类型设置错误");
|
||||||
}
|
}
|
||||||
if (CollectionUtils.containsAny(includeScopes, excludeScopes)) {
|
if (CollectionUtils.containsAny(includeScopes, excludeScopes)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user