From 819c44488c230fa7fb06ea5ef1dc481edb3871e3 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 24 Mar 2023 16:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=94=A8=E6=88=B7=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E5=8F=96=E6=B6=88=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Core/Job/UserSyncWorker.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Myshipping.Core/Job/UserSyncWorker.cs b/Myshipping.Core/Job/UserSyncWorker.cs index c61db913..e1f944ef 100644 --- a/Myshipping.Core/Job/UserSyncWorker.cs +++ b/Myshipping.Core/Job/UserSyncWorker.cs @@ -18,7 +18,7 @@ namespace Myshipping.Core.Job /// public class UserSyncWorker : ISpareTimeWorker { - [SpareTime(60000, "UserSyncWorker", Description = "同步用户", DoOnce = false, StartNow = true, ExecuteType = SpareTimeExecuteTypes.Serial)] + [SpareTime(60000, "UserSyncWorker", Description = "和川同步用户", DoOnce = false, StartNow = true, ExecuteType = SpareTimeExecuteTypes.Serial)] public void SyncUser(SpareTimer timer, long count) { Log.Information($"UserSyncWorker {DateTime.Now}"); @@ -106,12 +106,13 @@ namespace Myshipping.Core.Job Log.Information($"新用户,插入:{sysUser.Name}"); } - else - { - _repUser.Update(sysUser); + //2023-3-24,暂时取消用户更新,防止数据覆盖 + //else + //{ + // _repUser.Update(sysUser); - Log.Information($"老用户,更新:{sysUser.Name}"); - } + // Log.Information($"老用户,更新:{sysUser.Name}"); + //} } _sugerClient.Ado.CommitTran();