fix: 制修订流程结束之后 主起草人字段丢失 评审会记录不正确

This commit is contained in:
2023-12-28 14:02:22 +08:00
parent 88007b79b9
commit f796fbf790
2 changed files with 3 additions and 2 deletions
@@ -97,9 +97,8 @@ public class ProcessESRevisionEndListener implements ExecutionListener {
lawsCommonService.commonAdd(variables);
String espId = data.getEspId();
EnterpriseStandardPlan esp = espService.getById(espId);
String newStandardNo = esp.getNewEnStandardNo();
LambdaQueryWrapper<LawsEnterpriseStandard> esWrapper = new LambdaQueryWrapper<>();
esWrapper.eq(LawsEnterpriseStandard::getStandardNumber, newStandardNo);
esWrapper.eq(LawsEnterpriseStandard::getStandardNumber, standardNumber);
LawsEnterpriseStandard es = esService.getOne(esWrapper);
// 保存评审会记录
EnterpriseStandardReviewMeetingRecord esRmr = new EnterpriseStandardReviewMeetingRecord();
@@ -361,6 +361,8 @@ public class EsRevisionServiceImpl extends ServiceImpl<EsRevisionMapper, Process
// 保存打分记录
data = revisionData.getData();
List<ReviewMeetingDetailVO> reviewMeetingDetails = data.getReviewMeetingDetails();
// 设置当前评分人
reviewMeetingDetails.forEach(reviewMeetingDetail -> reviewMeetingDetail.setAdjudicatorId(curUserId));
ProcessEsRevision revisionDb = getById(dataDb.getId());
List<ReviewMeetingDetailVO> reviewMeetingDetailsDb = revisionDb.parseReviewMeetingDetails();
if (reviewMeetingDetailsDb == null) {