fix 修复选择弹窗会签人员后,会签审批出现每个任务的审批人都是选择的多人 https://gitee.com/dromara/RuoYi-Vue-Plus/issues/IBYCY7

This commit is contained in:
疯狂的狮子Li
2025-04-03 09:25:34 +08:00
parent 33e7faa1d1
commit 09fb5bb2da

View File

@@ -186,7 +186,7 @@ public class FlwTaskServiceImpl implements IFlwTaskService {
// 消息通知 // 消息通知
flwCommonService.sendMessage(definition.getFlowName(), ins.getId(), messageType, notice); flwCommonService.sendMessage(definition.getFlowName(), ins.getId(), messageType, notice);
//设置下一环节处理人 //设置下一环节处理人
setNextHandler(ins.getId()); setNextHandler(ins.getId(), completeTaskBo.getAssigneeMap());
return true; return true;
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
@@ -198,8 +198,12 @@ public class FlwTaskServiceImpl implements IFlwTaskService {
* 设置下一环节处理人 * 设置下一环节处理人
* *
* @param instanceId 实例ID * @param instanceId 实例ID
* @param assigneeMap 办理人
*/ */
private void setNextHandler(Long instanceId) { private void setNextHandler(Long instanceId, Map<String, Object> assigneeMap) {
if (CollUtil.isEmpty(assigneeMap)) {
return;
}
Instance inst = insService.getById(instanceId); Instance inst = insService.getById(instanceId);
List<FlowTask> flowTaskList = selectByInstId(instanceId); List<FlowTask> flowTaskList = selectByInstId(instanceId);
Map<String, Object> variableMap = inst.getVariableMap(); Map<String, Object> variableMap = inst.getVariableMap();