From 4a6b4857b3935ee277e1b183b5b34584daf2550f Mon Sep 17 00:00:00 2001 From: WendyYang Date: Thu, 26 Sep 2024 18:13:13 +0800 Subject: [PATCH] =?UTF-8?q?modify:=201.=20=E4=B8=93=E5=AE=B6=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E7=BB=93=E6=9E=9C=E5=8F=AA=E8=83=BD=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E4=B8=80=E6=AC=A1;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java | 3 +++ .../java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java index 6d44b7c..581ef97 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java @@ -1121,6 +1121,9 @@ public class MeetingManage { throw ReturnException.wrap("此会议未关联项目"); } MeetingInnerProject mip = meetingInnerProjectService.getById(req.getMeetingProjectId()); + if (mip.getReviewResult() != null) { + throw ReturnException.wrap("已上传专家评审结果"); + } BeanUtil.copyProperties(req, mip); mip.setId(req.getMeetingProjectId()); Project project = projectService.getById(mip.getProjectId()); diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java index 3faf747..cdf641b 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java @@ -103,7 +103,7 @@ public class ProjectReviewManage { BeanUtils.copyProperties(reqProj, project); projectStateMachineUtil.pass(project); - if (projectService.save(project)) { + if (projectService.updateById(project)) { projectSaveHelper.saveApplication(reqProj, project, null); projectSaveHelper.savePaymentPlans(project, reqProj.getPaymentPlanList()); projectSaveHelper.saveGovSystemReplaceInfos(project.getId(), project.getProjectCode(), reqProj.getSystemReplaceInfos());