创建子项目
This commit is contained in:
+7
-5
@@ -212,11 +212,13 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl<ProjectLibraryBas
|
|||||||
//初始化当前项目的studio与项目库 角色关系 projectLibraryRoleRelEOService
|
//初始化当前项目的studio与项目库 角色关系 projectLibraryRoleRelEOService
|
||||||
LambdaQueryWrapper<ProjectLibraryRoleRelEO> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ProjectLibraryRoleRelEO> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
queryWrapper.in(ProjectLibraryRoleRelEO::getProjectLibraryId,projectLibraryBase.getId());
|
queryWrapper.in(ProjectLibraryRoleRelEO::getProjectLibraryId,projectLibraryBase.getId());
|
||||||
ProjectLibraryRoleRelEO projectLibraryRoleRelEO = projectLibraryRoleRelEOService.getOne(queryWrapper);
|
List<ProjectLibraryRoleRelEO> projectLibraryRoleRelEOList = projectLibraryRoleRelEOService.list(queryWrapper);
|
||||||
if(ObjectUtils.isNotEmpty(projectLibraryRoleRelEO)){
|
if(ObjectUtils.isNotEmpty(projectLibraryRoleRelEOList)){
|
||||||
projectLibraryRoleRelEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
for (ProjectLibraryRoleRelEO projectLibraryRoleRelEO : projectLibraryRoleRelEOList) {
|
||||||
projectLibraryRoleRelEO.setProjectLibraryId(projectId);
|
projectLibraryRoleRelEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||||
projectLibraryRoleRelEOService.add(projectLibraryRoleRelEO);
|
projectLibraryRoleRelEO.setProjectLibraryId(projectId);
|
||||||
|
projectLibraryRoleRelEOService.add(projectLibraryRoleRelEO);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user