code review add comment refect
This commit is contained in:
parent
c0334565aa
commit
599ced9fd2
@ -15,13 +15,6 @@ import java.util.List;
|
||||
@Repository
|
||||
public class SaasRoleGroupRelationDao extends ServiceImpl<SaasRoleGroupRelationMapper, SaasRoleGroupRelation> {
|
||||
|
||||
public void deleteByRoleGroupId(List<Long> roleGroupId) {
|
||||
lambdaUpdate()
|
||||
.in(SaasRoleGroupRelation::getSaasRoleGroupId, roleGroupId)
|
||||
.set(BaseEntity::getIsDelete, TableIsDeleteEnum.DELETE.value)
|
||||
.update();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean removeByIds(Collection<? extends Serializable> idList) {
|
||||
if (CollectionUtils.isEmpty(idList)) {
|
||||
|
||||
@ -346,7 +346,7 @@ public class PermissionGroupImpl implements PermissionGroupService {
|
||||
// 删除例外scope
|
||||
saasPermissionGroupScopeDao.removeByIds(scopes.stream().map(SaasPermissionGroupScope::getId).sorted().collect(Collectors.toList()));
|
||||
}
|
||||
// 删除通用权限集
|
||||
// 删除权限集
|
||||
permissionGroupDao.lambdaUpdate()
|
||||
.in(BaseEntity::getId,deleteGroupIds)
|
||||
.set(BaseEntity::getIsDelete, TableIsDeleteEnum.DELETE.value)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user