Ver código fonte

AI商邀行程Bug处理

yuanrf 2 semanas atrás
pai
commit
4af861e32b

+ 3 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -14223,6 +14223,7 @@ FROM
                 dr["Traffic"] = string.Join("\r\n", item.Traffic);
                 dr["Traffic"] = string.Join("\r\n", item.Traffic);
                 dr["Trip"] = item.Trip;
                 dr["Trip"] = item.Trip;
                 dtSource.Rows.Add(dr);
                 dtSource.Rows.Add(dr);
+                days++;
             }
             }
 
 
             var dic = new Dictionary<string, string>
             var dic = new Dictionary<string, string>
@@ -14341,9 +14342,9 @@ FROM
                 doc.Save(path + postfix, saveFormat);
                 doc.Save(path + postfix, saveFormat);
                 jw = JsonView(true, "导出成功", ftpPath + postfix);
                 jw = JsonView(true, "导出成功", ftpPath + postfix);
             }
             }
-            catch (Exception)
+            catch (Exception ex)
             {
             {
-                jw = JsonView(false);
+                jw = JsonView(false, $"导出失败! ({ex.Message}) ");
             }
             }
 
 
             return Ok(jw);
             return Ok(jw);