yuanrf vor 6 Monaten
Ursprung
Commit
12691c9ec8
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 2 - 2
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -5035,7 +5035,7 @@ Group by PriceType ", dto.diId);
 
                         string errMsg = string.Empty;
 
-                        if (air.FlightsDescription.Contains("\r\n"))
+                        if (air.FlightsDescription.Contains("\r\n") || Regex.Split(air.FlightsDescription, "\\d+\\.", RegexOptions.IgnoreCase).Count() > 1)
                         {
                             var rowCode = Regex.Split(air.FlightsDescription, "\\d+\\.", RegexOptions.IgnoreCase).Where(x => !string.IsNullOrWhiteSpace(x)).ToArray();
                             for (int i = 0; i < rowCode.Length; i++)
@@ -5133,7 +5133,7 @@ Group by PriceType ", dto.diId);
                      JoinType.Left, x.DiId == a.Id,
                      JoinType.Left, b.CTable == 76 && b.CId == x.Id))
                     .Where((x, a, b) => x.IsDel == 0 && x.CreateUserId == userId && a.VisitDate >= StartDateTime
-                    && a.VisitDate <= EndDateTime && a.IsDel == 0 && b.IsDel == 0 && x.CardPrice > 0 && a.IsSure == 1 && auditState.Contains(b.IsAuditGM) && x.CheckType == 1001).Select((x, a, b) => new
+                    && a.VisitDate <= EndDateTime && a.IsDel == 0 && b.IsDel == 0 && x.CardPrice != 0 && a.IsSure == 1 && auditState.Contains(b.IsAuditGM) && x.CheckType == 1001).Select((x, a, b) => new
                     {
                         a.Id,
                         a.TeamName,