解决bug:根据当前节点Id,获取工作流下一个任务类型,如果获取不到会报错的问题

dev
zhangxiaofeng 4 weeks ago
parent 9b7fc277f7
commit 0917785bb9

@ -410,7 +410,12 @@ namespace DS.WMS.Core.TaskPlat
.Where(x => allConfigModuleIdList.Contains(x.Id) && x.TaskType == currentTaskType.ToString())
.Select(x => x.Id)
.FirstAsync();
configId = allConfigList.First(x => x.ExecuteModuleId == currentModuleId).Id;
var currentConfig = allConfigList.FirstOrDefault(x => x.ExecuteModuleId == currentModuleId);
if (currentConfig == null)
{
return null;
}
configId = currentConfig.Id;
}
List<TaskFlowConfig> waitMatchConfigList = new();
for (int i = 0; i < allConfigList.Count; i++)

Loading…
Cancel
Save