Procházet zdrojové kódy

代码编写:
1、签证模板下载 pdf下载文件重构
2、新增 单个文件下载接口
3、新增 派遣函下载接口

Lyyyi před 4 dny
rodič
revize
d98a14fcdc

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1946 - 624
OASystem/OASystem.Api/Controllers/GroupsController.cs


+ 3 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/DelegationInfoRepository.cs

@@ -1308,7 +1308,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                         Id = x.Id,
                         FirstName = x.FirstName,
                         LastName = x.LastName,
-                        Tel = x.Tel
+                        Tel = x.Phone
                     })
                     .ToListAsync();
 
@@ -1332,13 +1332,14 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 {
                     var idNo = AesEncryptionHelper.Decrypt(clientCertInfos.FirstOrDefault(x => x.DcId == item.Id)?.CertNo ?? "") ?? "-";
 
+                    var phone = AesEncryptionHelper.Decrypt(item.Tel);
                     if (string.IsNullOrEmpty(idNo)) idNo = "-";
 
                     view.Add(new() {
                         DcId = item.Id,
                         GrpId = dto.GroupId,
                         ClientName = item.LastName + item.FirstName,
-                        Tel = item.Tel ?? "-",
+                        Tel = phone ?? "-",
                         CerdNo = idNo
                     });
                 }

+ 11 - 0
OASystem/OASystem.Infrastructure/Tools/CommonFun.cs

@@ -1035,4 +1035,15 @@ public static class CommonFun
     }
     #endregion
 
+    /// <summary>
+    /// Dictionary 取值工具
+    /// </summary>
+    /// <param name="dict"></param>
+    /// <param name="key"></param>
+    /// <returns></returns>
+    public static string GetSafeString(this Dictionary<string, string> dict, string key)
+    {
+        return dict.GetValueOrDefault(key) ?? string.Empty;
+    }
+
 }