创建子项目
This commit is contained in:
+4
-2
@@ -212,13 +212,15 @@ 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)){
|
||||||
|
for (ProjectLibraryRoleRelEO projectLibraryRoleRelEO : projectLibraryRoleRelEOList) {
|
||||||
projectLibraryRoleRelEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
projectLibraryRoleRelEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||||
projectLibraryRoleRelEO.setProjectLibraryId(projectId);
|
projectLibraryRoleRelEO.setProjectLibraryId(projectId);
|
||||||
projectLibraryRoleRelEOService.add(projectLibraryRoleRelEO);
|
projectLibraryRoleRelEOService.add(projectLibraryRoleRelEO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**检查车型名称id,年款号,目标市场,版本同时存在,报错*/
|
/**检查车型名称id,年款号,目标市场,版本同时存在,报错*/
|
||||||
|
|||||||
Reference in New Issue
Block a user