Browse Source

优化过站处理

yhluo 4 tháng trước cách đây
mục cha
commit
55c9462e3d
1 tập tin đã thay đổi với 10 bổ sung2 xóa
  1. 10 2
      UAS_MES_BG/FunctionCode/Make/Make_ParseLog.cs

+ 10 - 2
UAS_MES_BG/FunctionCode/Make/Make_ParseLog.cs

@@ -938,7 +938,11 @@ namespace UAS_MES_NEW.Make
                             dh.CallProcedure("cs_insert_testrejects", ref paramList);
                             param.Clear();
                             LogMessage($"文件: {PathName},共{fileNum}条记录,已过站解析");
-                            continue;
+
+                            if (logs.IndexOf(item) == logs.Count - 1)
+                            {
+                                return true;
+                            }
                         }
                         else
                         {
@@ -962,7 +966,11 @@ namespace UAS_MES_NEW.Make
                         dh.CallProcedure("cs_insert_testrejects", ref paramList);
                         param.Clear();
                         LogMessage($"文件: {PathName},共{fileNum}条记录,已解析");
-                        continue;
+
+                        if (logs.IndexOf(item) == logs.Count - 1)
+                        {
+                            return true;
+                        }
                     }
                 }
                 return false;