From 88d1ec029b034d2fce8fded40e8f75c7ec605942 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 20 Apr 2023 17:58:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=8F=90=E4=BA=A4=20?= =?UTF-8?q?=E7=9C=81=E7=BA=A7=E8=81=94=E5=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/ReviewByProvincialDeptManage.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java index 6da8be5..5b64491 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java @@ -97,20 +97,23 @@ public class ReviewByProvincialDeptManage { // 对接省级联审的接口 List 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()); } }