mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-10-14 22:20:29 +00:00
fix 修复选择弹窗会签人员后,会签审批出现每个任务的审批人都是选择的多人 https://gitee.com/dromara/RuoYi-Vue-Plus/issues/IBYCY7
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user