|
|
@@ -97,20 +97,23 @@ public class ReviewByProvincialDeptManage { |
|
|
|
// 对接省级联审的接口 |
|
|
|
List<ProjectApplication> applications = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
.eq(ProjectApplication::getProjectId, projectInfo.getId())); |
|
|
|
if(!joinReviewProvincialBureauService.pushImportProject( |
|
|
|
ApplicationConverter.convertProject(projectInfo,applications,fileService))){ |
|
|
|
throw new BusinessException("提交省级部门联审失败"); |
|
|
|
} |
|
|
|
|
|
|
|
Project p = projectLibManage.saveProjectWithVersionAndStatus(project,null, |
|
|
|
ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS.getCode()); |
|
|
|
|
|
|
|
//入库暂存表 后续处理 对接外部接口 |
|
|
|
projectInfo.setUpdateOn(LocalDateTime.now()); |
|
|
|
p.setUpdateOn(LocalDateTime.now()); |
|
|
|
//保存一下 当前的主管单位发起人 |
|
|
|
projectInfo.setPreStartUserId(p.getSponsor()); |
|
|
|
p.setPreStartUserId(p.getSponsor()); |
|
|
|
//当前实例置为空 |
|
|
|
projectInfo.setInstCode(TodoCenterContant.Declared.NULL_INST_CODE); |
|
|
|
p.setInstCode(TodoCenterContant.Declared.NULL_INST_CODE); |
|
|
|
declaringDTO.getProjectInfo().setId(p.getId()); |
|
|
|
projectService.updateById(p); |
|
|
|
if(!joinReviewProvincialBureauService.pushImportProject( |
|
|
|
ApplicationConverter.convertProject(p,applications,fileService))){ |
|
|
|
throw new BusinessException("提交省级部门联审失败"); |
|
|
|
} |
|
|
|
|
|
|
|
return String.valueOf(p.getId()); |
|
|
|
} |
|
|
|
} |