Browse Source

重构代码,添加机票客户姓名解密功能

- 在 `TourClientListRepository.cs` 中简化 `intList` 声明,并添加客户姓名解密操作。
Lyyyi 1 week ago
parent
commit
2d32402707

+ 0 - 1
OASystem/OASystem.Api/Controllers/CRMController.cs

@@ -240,7 +240,6 @@ namespace OASystem.API.Controllers
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
         public async Task<IActionResult> DelCustomerCerts(DelBaseDto dto)
         {
-
             var result = await _customerCertRep.SoftDeleteByIdAsync<Crm_CustomerCert>(dto.Id.ToString(), dto.DeleteUserId);
             if (!result)
             {

+ 14 - 1
OASystem/OASystem.Domain/ViewModels/CRM/VisaDeleClientView.cs

@@ -107,5 +107,18 @@ namespace OASystem.Domain.ViewModels.CRM
         public string IdNo { get; set; }
     }
 
-   
+
+
+    #region 签证客户资料 New
+
+
+    #region 新西兰、澳大利亚签证申请资料表
+
+
+    #endregion
+
+
+
+    #endregion
+
 }

+ 47 - 1
OASystem/OASystem.Infrastructure/Repositories/CRM/VisaDeleClientRepository.cs

@@ -26,6 +26,7 @@ namespace OASystem.Infrastructure.Repositories.CRM
     public class VisaDeleClientRepository : BaseRepository<Crm_DeleClient, VisaDeleClientView>
     {
         private readonly IMapper _mapper;
+        private readonly JsonView _jv = new() { Code = StatusCodes.Status400BadRequest, Msg = "操作失败!" };
         public VisaDeleClientRepository(SqlSugarClient sqlSugar,IMapper mapper) :
             base(sqlSugar)
         {
@@ -72,7 +73,6 @@ namespace OASystem.Infrastructure.Repositories.CRM
             return result;
         }
 
-
         /// <summary>
         /// 签证客户操作
         /// </summary>
@@ -510,5 +510,51 @@ namespace OASystem.Infrastructure.Repositories.CRM
             }
             return result;
         }
+
+
+        #region 签证客户资料 New 2025-06-04
+
+
+        #region 新西兰、澳大利亚签证申请
+        /// <summary>
+        /// 新西兰、澳大利亚签证申请资料表 Add
+        /// </summary>
+        /// <returns></returns>
+        public async Task<JsonView> AddTemp1()
+        {
+
+
+            return _jv;
+        }
+        #endregion
+
+
+
+        /// <summary>
+        /// 通过kimi api 获取签证申请资料并操作
+        /// </summary>
+        /// <returns></returns>
+        public async Task<JsonView> KIMIAPIOP()
+        {
+            return _jv;
+        }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+        #endregion
     }
 }

+ 7 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/TourClientListRepository.cs

@@ -1116,7 +1116,7 @@ WHERE
         {
             string clientStr = "";
             if (string.IsNullOrEmpty(ids)) return clientStr;
-            List<int> intList = new List<int>();
+            var intList = new List<int>();
 
 
 
@@ -1145,6 +1145,12 @@ WHERE
 
             if (infos.Count > 0)
             {
+                //解密
+                infos.ForEach(x => { 
+                    x.FirstName = AesEncryptionHelper.Decrypt(x.FirstName);
+                    x.LastName = AesEncryptionHelper.Decrypt(x.LastName);
+                });
+
                 var infos1 = infos.Select(it => it.LastName + it.FirstName).ToList();
                 clientStr = string.Join(",", infos1);
             }