|
|
@@ -137,12 +137,14 @@ public class MeetingManage { |
|
|
|
meeting.setInviteType(inviteRule.getInviteType()); |
|
|
|
meetingService.save(meeting); |
|
|
|
if (meetingBasic.getIsInnerProject()) { |
|
|
|
List<MeetingInnerProject> projects = meetingBasic.getProjectIdList().stream().map(w -> { |
|
|
|
MeetingInnerProject project = new MeetingInnerProject(); |
|
|
|
project.setMeetingId(meeting.getId()); |
|
|
|
project.setProjectId(w); |
|
|
|
return project; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
List<MeetingInnerProject> projects = meetingBasic.getInnerProjects() |
|
|
|
.stream().map(w -> { |
|
|
|
MeetingInnerProject project = new MeetingInnerProject(); |
|
|
|
project.setMeetingId(meeting.getId()); |
|
|
|
project.setProjectId(w.getProjectId()); |
|
|
|
project.setProjectCode(w.getProjectCode()); |
|
|
|
return project; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
meetingInnerProjectService.saveBatch(projects); |
|
|
|
} else { |
|
|
|
List<MeetingOuterProject> projects = meetingBasic.getProjects().stream().map(w -> { |
|
|
@@ -450,6 +452,7 @@ public class MeetingManage { |
|
|
|
mrp.setProjectType(w.getProjectType().toString()); |
|
|
|
mrp.setProjectYear(w.getProjectYear()); |
|
|
|
mrp.setDeclareAmount(w.getDeclareAmount()); |
|
|
|
mrp.setProjectCode(w.getProjectCode()); |
|
|
|
ExpertReview review = reviewMap.get(w.getId()); |
|
|
|
if (review != null) { |
|
|
|
mrp.setReviewResult(ReviewResultEnum.getByCode(review.getReviewResult()).getValue()); |
|
|
@@ -584,7 +587,7 @@ public class MeetingManage { |
|
|
|
} |
|
|
|
result.getRandomRules().add(randomRule); |
|
|
|
}); |
|
|
|
AvoidRuleDTO avoidInfo = inviteAvoidRuleService.getAvoidInfoDto(meetingId); |
|
|
|
AvoidRuleDTO avoidInfo = inviteAvoidRuleService.getAvoidInfo(meetingId); |
|
|
|
AvoidInfoVO vo = new AvoidInfoVO(); |
|
|
|
vo.setWeekInviteCount(avoidInfo.getWeekInviteCount()); |
|
|
|
vo.setAvoidOrgIds(avoidInfo.getAvoidOrgIdList()); |
|
|
@@ -897,6 +900,7 @@ public class MeetingManage { |
|
|
|
return MeetingReviewProjectVO |
|
|
|
.builder() |
|
|
|
.id(project.getId()) |
|
|
|
.projectCode(project.getProjectCode()) |
|
|
|
.projectName(project.getProjectName()) |
|
|
|
.declaredAmount(project.getDeclareAmount()) |
|
|
|
.projectType(project.getProjectType()) |
|
|
|