Преглед на файлове

客户信息列表加解密操作

yuanrf преди 3 месеца
родител
ревизия
ec788bb025

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

@@ -1,4 +1,5 @@
-using OASystem.Domain.Dtos.CRM;
+using OASystem.Domain.AesEncryption;
+using OASystem.Domain.Dtos.CRM;
 using OASystem.Domain.Entities.Customer;
 using OASystem.Infrastructure.Repositories.CRM;
 
@@ -147,6 +148,7 @@ namespace OASystem.API.Controllers
                 {
                     return Ok(JsonView(false, "查询失败!"));
                 }
+                EncryptionProcessor.DecryptProperties(crm_Dele);
                 List<Crm_VisaCustomerCompany> _VisaCustomerCompany = _clientRepository.Query<Crm_VisaCustomerCompany>(x => x.DcId == crm_Dele.Id && x.IsDel == 0).ToList();//客户工作经历表
                 List<Crm_VisaCustomerSchool> _VisaCustomerSchool = _clientRepository.Query<Crm_VisaCustomerSchool>(x => x.DcId == crm_Dele.Id && x.IsDel == 0).ToList();//客户学历表
                 List<Crm_VisaCustomerFamily> _VisaCustomerFamily = _clientRepository.Query<Crm_VisaCustomerFamily>(x => x.DcId == crm_Dele.Id && x.IsDel == 0).ToList();//客户学历表

+ 2 - 0
OASystem/OASystem.Infrastructure/Repositories/CRM/VisaDeleClientRepository.cs

@@ -160,6 +160,8 @@ namespace OASystem.Infrastructure.Repositories.CRM
            Result result = new Result() { Code = -2, Msg = "未知错误" };
             try
             {
+                EncryptionProcessor.EncryptProperties(dto.DeleClient);
+
                 BeginTran();
                 int deleId = 0;
                 if (dto.Status==1)//添加