同步用户暂时取消更新

optimize
wanghaomei 2 years ago
parent 97384df29b
commit 819c44488c

@ -18,7 +18,7 @@ namespace Myshipping.Core.Job
/// </summary> /// </summary>
public class UserSyncWorker : ISpareTimeWorker 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) public void SyncUser(SpareTimer timer, long count)
{ {
Log.Information($"UserSyncWorker {DateTime.Now}"); Log.Information($"UserSyncWorker {DateTime.Now}");
@ -106,12 +106,13 @@ namespace Myshipping.Core.Job
Log.Information($"新用户,插入:{sysUser.Name}"); Log.Information($"新用户,插入:{sysUser.Name}");
} }
else //2023-3-24暂时取消用户更新防止数据覆盖
{ //else
_repUser.Update(sysUser); //{
// _repUser.Update(sysUser);
Log.Information($"老用户,更新:{sysUser.Name}"); // Log.Information($"老用户,更新:{sysUser.Name}");
} //}
} }
_sugerClient.Ado.CommitTran(); _sugerClient.Ado.CommitTran();

Loading…
Cancel
Save