fix: 81798 年度制修订计划(各部门主动上报)(收集联络人主管级领导审批、各部所联络人汇总) 列表数据有丢失现象

This commit is contained in:
2024-02-05 20:19:52 +08:00
parent 0e294bf607
commit eb757bebb4
@@ -243,10 +243,12 @@ public class ProcessEsAnnualReportServiceImpl extends ServiceImpl<ProcessEsAnnua
break;
case WORK_GROUP_COLLECT:
// 先删后增
AnnualReportDataVO handleData = this.getHandleData(taskId);
List<ProcessEsAnnualReport> handaleDataList = handleData.getDataList();
List<String> idList = new ArrayList<>();
handaleDataList.forEach(h -> idList.add(h.getId()));
wrapper.eq(ProcessEsAnnualReport::getWorkGroupUser, workGroupUser);
wrapper.eq(ProcessEsAnnualReport::getContactUser, contactUser);
wrapper.eq(ProcessEsAnnualReport::getProcessInstanceId, processInstanceId);
remove(wrapper);
removeByIds(idList);
annualReport = annualReportDataVO.getDataList().get(0);
String collectUserLeader = annualReport.getCollectUserLeader();
contactUserLeaderLeader = annualReport.getContactUserLeaderLeader();