创建子项目

This commit is contained in:
zhn
2022-11-07 12:00:18 +08:00
parent e39cfd8d25
commit d1adc622ea
@@ -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,年款号,目标市场,版本同时存在,报错*/