update 修改加密方式

和其他
This commit is contained in:
路 范
2021-10-26 17:11:44 +08:00
parent bd0b8efd0c
commit 3d40b91bef
20 changed files with 25 additions and 23 deletions

View File

@@ -113,7 +113,7 @@ namespace Ewide.Nbzs.BackWorkerService
{
#region
_cache.Set($"CacheData-PoliciesRegulations", db_Zlb_Conn.Queryable<Entity.PoliciesRegulations>().ToList());
var listPoliciesRegulations = db_Product_Conn.Queryable<Entity.PoliciesRegulations>().ToList();
//_cache.SetString($"CacheData-PoliciesRegulations", JSON.Serialize(listPoliciesRegulations), new DistributedCacheEntryOptions
//{
@@ -136,8 +136,8 @@ namespace Ewide.Nbzs.BackWorkerService
var listNonResidentialAgreement = db_Product_Conn.Queryable<NonResidentialAgreement>().Where(p => p.ProjectID == projectId).ToList();
listNonResidentialAgreement.ForEach(p =>
{
p.ExpropriatedCardNo = AESEncryption.Encrypt(p.ExpropriatedCardNo, DbManage.GetHashKey());
p.ExpropriatedPhone = AESEncryption.Encrypt(p.ExpropriatedPhone, DbManage.GetHashKey());
p.ExpropriatedCardNo = MD5Encryption.Encrypt(p.ExpropriatedCardNo);
p.ExpropriatedPhone = MD5Encryption.Encrypt(p.ExpropriatedPhone);
});
//_cache.SetString($"CacheData-NonResidentialAgreement-{projectId}", JSON.Serialize(listNonResidentialAgreement), new DistributedCacheEntryOptions
//{
@@ -150,7 +150,7 @@ namespace Ewide.Nbzs.BackWorkerService
insert_result = db_Zlb_Conn.Insertable(listNonResidentialAgreement).ExecuteCommand();
list_result.Add(new PushResult { Action = "Insert", TableName = "NonResidentialAgreement", IsSuccess = insert_result > 0 });
#endregion
@@ -160,8 +160,8 @@ namespace Ewide.Nbzs.BackWorkerService
var listResidentialAgreement = db_Product_Conn.Queryable<ResidentialAgreement>().Where(p => p.ProjectID == projectId).ToList();
listResidentialAgreement.ForEach(p =>
{
p.ExpropriatedCardNo = AESEncryption.Encrypt(p.ExpropriatedCardNo, DbManage.GetHashKey());
p.ExpropriatedPhone = AESEncryption.Encrypt(p.ExpropriatedPhone, DbManage.GetHashKey());
p.ExpropriatedCardNo = MD5Encryption.Encrypt(p.ExpropriatedCardNo);
p.ExpropriatedPhone = MD5Encryption.Encrypt(p.ExpropriatedPhone);
});
//_cache.SetString($"CacheData-ResidentialAgreement-{projectId}", JSON.Serialize(listResidentialAgreement), new DistributedCacheEntryOptions
//{
@@ -219,8 +219,8 @@ namespace Ewide.Nbzs.BackWorkerService
var listNonInvestigateTable = db_Product_Conn.Queryable<NonResidentialInvestigateTable>().Where(p => p.ProjectId == projectId).ToList();
listNonInvestigateTable.ForEach(p =>
{
p.PropertyRightPrsonCardNo = AESEncryption.Encrypt(p.PropertyRightPrsonCardNo, DbManage.GetHashKey());
p.TheLegalRepresentativePhone = AESEncryption.Encrypt(p.TheLegalRepresentativePhone, DbManage.GetHashKey());
p.PropertyRightPrsonCardNo = MD5Encryption.Encrypt(p.PropertyRightPrsonCardNo);
p.TheLegalRepresentativePhone = MD5Encryption.Encrypt(p.TheLegalRepresentativePhone);
});
//_cache.SetString($"CacheData-NonResidentialInvestigateTable-{projectId}", JSON.Serialize(listNonInvestigateTable), new DistributedCacheEntryOptions
//{
@@ -241,8 +241,8 @@ namespace Ewide.Nbzs.BackWorkerService
var listInvestigateTable = db_Product_Conn.Queryable<InvestigateTable>().Where(p => p.ProjectId == projectId).ToList();
listInvestigateTable.ForEach(p =>
{
p.ExpropriatedCardNo = AESEncryption.Encrypt(p.ExpropriatedCardNo, DbManage.GetHashKey());
p.ExpropriatedPhone = AESEncryption.Encrypt(p.ExpropriatedPhone, DbManage.GetHashKey());
p.ExpropriatedCardNo = MD5Encryption.Encrypt(p.ExpropriatedCardNo);
p.ExpropriatedPhone = MD5Encryption.Encrypt(p.ExpropriatedPhone);
});
//_cache.SetString($"CacheData-InvestigateTable-{projectId}", JSON.Serialize(listInvestigateTable), new DistributedCacheEntryOptions
//{