Browse Source

酒店预订 --> 生成VOUCHER 批量生成 ,客户名单解密 代码编写

LEIYI 3 months ago
parent
commit
f58262fa76
1 changed files with 5 additions and 4 deletions
  1. 5 4
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 5 - 4
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -13175,7 +13175,11 @@ ORDER by  gctggrc.id DESC
             if (dele != null)
                 strFileName += $"{dele?.TeamName ?? ""}_{dele.TourCode}_";
 
-            var guestDatas = await _sqlSugar.Queryable<Crm_DeleClient>().Where(it => it.IsDel == 0).ToListAsync();
+            var guestDatas = await _sqlSugar.Queryable<Crm_DeleClient>()
+                .Select(x => new Crm_DeleClient { Id = x.Id, FirstName = x.FirstName, LastName = x.LastName, Pinyin = x.Pinyin })
+                .Where(it => it.IsDel == 0)
+                .ToListAsync();
+            foreach (var item in guestDatas) EncryptionProcessor.DecryptProperties(item);
             for (int i = 0; i < hrDtas.Count; i++)
             {
                 string guestNames = string.Empty;
@@ -13191,15 +13195,12 @@ ORDER by  gctggrc.id DESC
                 }
                 else
                 {
-
-
                     bool guestIdBool = int.TryParse(item.GuestName, out int guestId);
                     if (guestIdBool)
                     {
                         guestIds.Add(guestId);
                     }
 
-
                     //NaN
                     if (item.GuestName.Contains("NaN"))
                     {