|
@ -20,6 +20,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
[ApiExplorerSettings(IgnoreApi = true)] |
|
|
[ApiExplorerSettings(IgnoreApi = true)] |
|
|
public class JisHBPOSeSyncBaseAppService : ApplicationService, IInvocable |
|
|
public class JisHBPOSeSyncBaseAppService : ApplicationService, IInvocable |
|
|
{ |
|
|
{ |
|
|
|
|
|
private static readonly object _locker = new object(); |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// WMS数据上下文
|
|
|
/// WMS数据上下文
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -62,12 +63,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
public virtual async Task Invoke() |
|
|
public virtual async Task Invoke() |
|
|
{ |
|
|
{ |
|
|
|
|
|
await Task.CompletedTask.ConfigureAwait(false); |
|
|
if (SeSyncConfigInfo == null) |
|
|
if (SeSyncConfigInfo == null) |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
await SyncJitRecordAsync().ConfigureAwait(false); |
|
|
lock (_locker) |
|
|
await SyncJisRecordAsync().ConfigureAwait(false); |
|
|
{ |
|
|
|
|
|
SyncJitRecordAsync().Wait(); |
|
|
|
|
|
SyncJisRecordAsync().Wait(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|