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();