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