|
|
@@ -1149,17 +1149,17 @@ public class TodoCenterManage { |
|
|
|
} |
|
|
|
projectApplication.setProjectVersion(project.getVersion()); |
|
|
|
boolean result = projectApplicationService.save(projectApplication); |
|
|
|
// 保存应用关联的核心业务 |
|
|
|
List<ProjectCoreBusinessDTO> coreBusinessList = application.getCoreBusinessList(); |
|
|
|
Boolean hasCoreBusiness = CollUtil.isNotEmpty(coreBusinessList) ? Boolean.TRUE : Boolean.FALSE; |
|
|
|
if (Boolean.TRUE.equals(result) && Boolean.TRUE.equals(hasCoreBusiness)){ |
|
|
|
for (ProjectCoreBusinessDTO coreBusiness : coreBusinessList) { |
|
|
|
ProjectCoreBusinessIndicators projectCoreBusinessIndicators = new ProjectCoreBusinessIndicators(); |
|
|
|
BeanUtils.copyProperties(coreBusiness, projectCoreBusinessIndicators); |
|
|
|
projectCoreBusinessIndicators.setApplicationId(application.getId()); |
|
|
|
projectCoreBusinessIndicatorsService.save(projectCoreBusinessIndicators); |
|
|
|
} |
|
|
|
} |
|
|
|
// // 保存应用关联的核心业务 |
|
|
|
// List<ProjectCoreBusinessDTO> coreBusinessList = application.getCoreBusinessList(); |
|
|
|
// Boolean hasCoreBusiness = CollUtil.isNotEmpty(coreBusinessList) ? Boolean.TRUE : Boolean.FALSE; |
|
|
|
// if (Boolean.TRUE.equals(result) && Boolean.TRUE.equals(hasCoreBusiness)){ |
|
|
|
// for (ProjectCoreBusinessDTO coreBusiness : coreBusinessList) { |
|
|
|
// ProjectCoreBusinessIndicators projectCoreBusinessIndicators = new ProjectCoreBusinessIndicators(); |
|
|
|
// BeanUtils.copyProperties(coreBusiness, projectCoreBusinessIndicators); |
|
|
|
// projectCoreBusinessIndicators.setApplicationId(application.getId()); |
|
|
|
// projectCoreBusinessIndicatorsService.save(projectCoreBusinessIndicators); |
|
|
|
// } |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
return Boolean.TRUE; |
|
|
|