|
@@ -1,6 +1,7 @@
|
|
|
using AutoMapper;
|
|
|
using NPOI.POIFS.Crypt.Dsig;
|
|
|
using OASystem.Domain;
|
|
|
+using OASystem.Domain.AesEncryption;
|
|
|
using OASystem.Domain.Dtos.Financial;
|
|
|
using OASystem.Domain.Dtos.Groups;
|
|
|
using OASystem.Domain.Entities.Customer;
|
|
@@ -78,6 +79,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
sql = string.Format("SELECT * FROM Crm_DeleClient cdc where id in ({0}) and IsDel = 0", strCrmIds);
|
|
|
clietArr = _sqlSugar.SqlQueryable<Crm_DeleClient>(sql).ToList();
|
|
|
+ foreach (var item in clietArr)
|
|
|
+ {
|
|
|
+ EncryptionProcessor.DecryptProperties(item);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
foreach (var item in Customers)
|
|
@@ -113,6 +118,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
var name = string.Empty;
|
|
|
var clientObject = clietArr.Find(x => x.Id == parseIntValue);
|
|
|
+ EncryptionProcessor.DecryptProperties(clientObject);
|
|
|
name += (clientObject?.LastName + clientObject?.FirstName);
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(name))
|
|
@@ -154,6 +160,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
sql = string.Format("SELECT * FROM Crm_DeleClient cdc where id in ({0}) and IsDel = 0", strCrmIds);
|
|
|
clietArr = _sqlSugar.SqlQueryable<Crm_DeleClient>(sql).ToList();
|
|
|
+ foreach (var item in clietArr)
|
|
|
+ {
|
|
|
+ EncryptionProcessor.DecryptProperties(item);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
foreach (var item in Customers)
|