Browse Source

修改机票费用录入

wangh 1 year ago
parent
commit
0139b9be10

+ 2 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/AirTicketResRepository.cs

@@ -725,7 +725,8 @@ namespace OASystem.Infrastructure.Repositories.Groups
                             Payee = grp_CreditCard.Payee,
                             RMBPrice = grp_CreditCard.RMBPrice,
                             OrbitalPrivateTransfer = grp_CreditCard.OrbitalPrivateTransfer,
-                            ExceedBudget = grp_CreditCard.ExceedBudget
+                            ExceedBudget = grp_CreditCard.ExceedBudget,
+                            Remark= grp_CreditCard.Remark,
                         }).ExecuteCommandAsync();
                         if (CTable == 0)
                         {

+ 9 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/DecreasePaymentsRepository.cs

@@ -329,7 +329,15 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 {
                     DiId += item.DIId + ",";
                 }
-                DiId = DiId.Substring(0, DiId.Length - 1);
+                if (!string.IsNullOrWhiteSpace(DiId))
+                {
+                    DiId = DiId.Substring(0, DiId.Length - 1);
+                }
+                else
+                {
+                    DiId = "0";
+                }
+                
                 string sql = string.Format(@"select Id,TourCode,TeamName,ClientName,VisitStartDate,VisitEndDate,VisitCountry,VisitDays,VisitPNumber from Grp_DelegationInfo where Id in({0}) and IsDel={1}", DiId, 0);
                 List<DelegationEasyView> grp_Delegations = _sqlSugar.SqlQueryable<DelegationEasyView>(sql).ToList();
                 if (grp_Delegations.Count != 0)