22
schangxiang@126.com
2024-12-23 164f2cf0a8d85a2ebd2955f8f322d5f6bb4d3857
22
已修改1个文件
15 ■■■■■ 文件已修改
LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/WmsOperationTask/WmsOperationTaskService.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/WmsOperationTask/WmsOperationTaskService.cs
@@ -19,6 +19,7 @@
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;
@@ -231,6 +232,9 @@
    [UnitOfWork]
    public async Task<ValidateQiTaoOutput> ValdateQiTao(ValidateQiTaoInput input)
    {
        await semaphore2.WaitAsync();
        try
        {
        ValidateQiTaoOutput output = new ValidateQiTaoOutput();
        if (input == null || input.PackageCode == null)
        {
@@ -387,6 +391,17 @@
        //output.IsNewOrder = false;
        return output;
    }
        catch (Exception)
        {
            throw;
        }
        finally
        {
            semaphore2.Release();
        }
    }
    /// <summary>