|
|
@@ -197,9 +197,11 @@ public class ProjectLibManage { |
|
|
|
}else{ |
|
|
|
//否则是重新提交的 新生成一个新版本的项目 |
|
|
|
project = newProjectWithVersion(projectDto); |
|
|
|
project.setInstCode(instanceId); |
|
|
|
project.setSponsor(employeeCode); |
|
|
|
projectService.updateById(project); |
|
|
|
if(Objects.nonNull(project)){ |
|
|
|
project.setInstCode(instanceId); |
|
|
|
project.setSponsor(employeeCode); |
|
|
|
projectService.updateById(project); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//保存项目应用 |
|
|
@@ -213,6 +215,7 @@ public class ProjectLibManage { |
|
|
|
List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> { |
|
|
|
ProjectApplication projectApplication = new ProjectApplication(); |
|
|
|
BeanUtils.copyProperties(application, projectApplication); |
|
|
|
projectApplication.setId(null); |
|
|
|
projectApplication.setProjectId(finalProject.getId()); |
|
|
|
return projectApplication; |
|
|
|
}).collect(Collectors.toList()); |
|
|
@@ -246,6 +249,7 @@ public class ProjectLibManage { |
|
|
|
List<ProjectApplication> applications = projectDto.getApplicationList().stream().map(application -> { |
|
|
|
ProjectApplication projectApplication = new ProjectApplication(); |
|
|
|
BeanUtils.copyProperties(application, projectApplication); |
|
|
|
projectApplication.setId(null); |
|
|
|
projectApplication.setProjectId(finalProject.getId()); |
|
|
|
return projectApplication; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|