fix 修复选择弹窗会签人员后,会签审批出现每个任务的审批人都是选择的多人
This commit is contained in:
parent
07fdc240d7
commit
8e99dd306a
@ -183,7 +183,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);
|
||||||
@ -194,9 +194,13 @@ 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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user