fix(87440): 标准解读流程(解读人填写信息) --转办后数据丢失了

This commit is contained in:
yjz
2024-07-24 17:14:28 +08:00
parent 4c465dd2c6
commit 22e642648d
@@ -5,8 +5,13 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.jero.common.exception.JeroBootException;
import com.jero.modules.activiti.entity.ProcessAll;
import com.jero.modules.activiti.entity.ProcessApprovalRecord;
import com.jero.modules.activiti.process.standardinterpret.common.StandardInterpretCommon;
import com.jero.modules.activiti.process.standardinterpret.dto.StandardInterpretDTO;
import com.jero.modules.activiti.process.standardinterpret.entity.ProcessStandardInterpret;
import com.jero.modules.activiti.process.standardinterpret.entity.ProcessStandardInterpretClauseSublist;
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretClauseSublistService;
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretService;
import com.jero.modules.activiti.process.standardinterpret.service.StandardInterpretFlowService;
import com.jero.modules.activiti.service.ProcessAllService;
import com.jero.modules.activiti.service.WorkCenterService;
import com.jero.modules.activiti.util.SpringContextUtil;
@@ -50,6 +55,25 @@ public class StandardInterpretFlow implements WorkCenterService {
public void handleTransfer(ProcessAll processAll, ProcessApprovalRecord processApprovalRecord, String toUserId, String userId) {
ProcessAllService processAllService = SpringContextUtil.getBean(ProcessAllService.class);
processAllService.specialTransfer(processAll, processApprovalRecord, toUserId, userId);
// 解读人填写信息(分发)
String node = processApprovalRecord.getNodeId();
if (StandardInterpretCommon.INTERPRETING_PEOPLE_FILLOUT.equals(node)){
StandardInterpretFlowService standardInterpretFlowService =
SpringContextUtil.getBean(StandardInterpretFlowService.class);
ProcessStandardInterpretClauseSublistService processStandardInterpretClauseSublistService =
SpringContextUtil.getBean(ProcessStandardInterpretClauseSublistService.class);
StandardInterpretDTO standardInterpretDTO =
standardInterpretFlowService.queryBusinessData(processAll, processApprovalRecord);
for (ProcessStandardInterpretClauseSublist processStandardInterpretClauseSublist :
standardInterpretDTO.getProcessStandardInterpretClauseSublistList()) {
processStandardInterpretClauseSublist.setInterpretPersonId(toUserId);
processStandardInterpretClauseSublistService.update(
new LambdaUpdateWrapper<ProcessStandardInterpretClauseSublist>()
.eq(ProcessStandardInterpretClauseSublist::getId,
processStandardInterpretClauseSublist.getId())
.set(ProcessStandardInterpretClauseSublist::getInterpretPersonId, toUserId));
}
}
}
@Override