| | |
| | | public class WmsOperationTaskService : IDynamicApiController, ITransient |
| | | { |
| | | private static readonly SemaphoreSlim semaphore = new SemaphoreSlim(1, 1); |
| | | private static readonly SemaphoreSlim semaphore2 = new SemaphoreSlim(1, 1); |
| | | |
| | | private readonly SqlSugarRepository<WmsRbLineTask> _rep; |
| | | private readonly SqlSugarRepository<WmsStockQuan> _wmsStockQuanRep; |
| | |
| | | [UnitOfWork] |
| | | public async Task<ValidateQiTaoOutput> ValdateQiTao(ValidateQiTaoInput input) |
| | | { |
| | | await semaphore2.WaitAsync(); |
| | | try |
| | | { |
| | | ValidateQiTaoOutput output = new ValidateQiTaoOutput(); |
| | | if (input == null || input.PackageCode == null) |
| | | { |
| | |
| | | //output.IsNewOrder = false; |
| | | return output; |
| | | } |
| | | catch (Exception) |
| | | { |
| | | |
| | | throw; |
| | | } |
| | | finally |
| | | { |
| | | semaphore2.Release(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |