Browse Source

modify:

1. 专家评审结果只能上传一次;
tags/24093001
WendyYang 3 months ago
parent
commit
4a6b4857b3
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java
  2. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java

+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java View File

@@ -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());


+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java View File

@@ -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());


Loading…
Cancel
Save