From 37e17dee3eccb802d566f7d299c3996a9b5074a3 Mon Sep 17 00:00:00 2001 From: v-haiboz Date: Wed, 28 Jul 2021 10:39:35 +0800 Subject: [PATCH] Bug#463700:[Rest] Group yaml file not generated correctly --- RestProcessor/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RestProcessor/Program.cs b/RestProcessor/Program.cs index c6e9f81..54dd8b1 100644 --- a/RestProcessor/Program.cs +++ b/RestProcessor/Program.cs @@ -156,7 +156,7 @@ private static List MergeRestFile(List splitedGroupF var set = new HashSet(splitedGroupFiles); foreach (var item in fileNameInfos) { - var existFinleNameInfo= set.Where(fileNameInfo=> fileNameInfo.TocName== item.TocName && restFileInfo.ServiceInfo.TocTitle== fileNameInfo.ServiceInfo.TocTitle).FirstOrDefault(); + var existFinleNameInfo= set.Where(fileNameInfo=> fileNameInfo.TocName== item.TocName && fileNameInfo.Version == item.Version && restFileInfo.ServiceInfo.TocTitle== fileNameInfo.ServiceInfo.TocTitle).FirstOrDefault(); if (existFinleNameInfo != null) { existFinleNameInfo.ChildrenFileNameInfo.AddRange(item.ChildrenFileNameInfo);