From 03036993844fce4b62d2e488f6dfbc62ae97fa10 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Tue, 11 Apr 2023 16:35:02 +0800 Subject: [PATCH] 1 --- Myshipping.Application/Service/DataSync/DataSyncService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Myshipping.Application/Service/DataSync/DataSyncService.cs b/Myshipping.Application/Service/DataSync/DataSyncService.cs index 19526ea9..ca01eab2 100644 --- a/Myshipping.Application/Service/DataSync/DataSyncService.cs +++ b/Myshipping.Application/Service/DataSync/DataSyncService.cs @@ -122,6 +122,7 @@ namespace Myshipping.Application { entity.CUSTSERVICEID = userlist.Where(x => x.Name == entity.CUSTSERVICE).Count() == 0 ? "" : userlist.Where(x => x.Name == entity.CUSTSERVICE).Select(x => x.Id).FirstOrDefault().ToString(); } + entity.PropString = entity.PropString.Replace("forwarder", "booking_agent"); entity.TenantId = UserManager.TENANT_ID; await _djycustomer.InsertAsync(entity); foreach (var item in model.ContactList) @@ -151,6 +152,7 @@ namespace Myshipping.Application { entity.CUSTSERVICEID = userlist.Where(x => x.Name == entity.CUSTSERVICE).Count() == 0 ? "" : userlist.Where(x => x.Name == entity.CUSTSERVICE).Select(x => x.Id).FirstOrDefault().ToString(); } + entity.PropString = entity.PropString.Replace("forwarder", "booking_agent"); await _djycustomer.AsUpdateable(entity).IgnoreColumns(it => new { it.TenantId, @@ -206,7 +208,9 @@ namespace Myshipping.Application if (!string.IsNullOrEmpty(entity.CUSTSERVICE)) { entity.CUSTSERVICEID = userlist.Where(x => x.Name == entity.CUSTSERVICE).Count() == 0 ? "" : userlist.Where(x => x.Name == entity.CUSTSERVICE).Select(x => x.Id).FirstOrDefault().ToString(); + } + entity.PropString = entity.PropString.Replace("forwarder", "booking_agent"); entity.TenantId = UserManager.TENANT_ID; await _djycustomer.InsertAsync(entity); foreach (var it in item.ContactList) @@ -236,6 +240,7 @@ namespace Myshipping.Application { entity.CUSTSERVICEID = userlist.Where(x => x.Name == entity.CUSTSERVICE).Count() == 0 ? "" : userlist.Where(x => x.Name == entity.CUSTSERVICE).Select(x => x.Id).FirstOrDefault().ToString(); } + entity.PropString = entity.PropString.Replace("forwarder", "booking_agent"); await _djycustomer.AsUpdateable(entity).IgnoreColumns(it => new { it.TenantId,