wanshenmean
3 天以前 5e851678cc02257bbbd179446de36082430ca5bc
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/BackgroundServices/AutoOutboundTaskBackgroundService.cs
@@ -41,11 +41,18 @@
            _logger.LogInformation("自动出库任务检查间隔: {Seconds} 秒", _options.CheckIntervalSeconds);
            int index = 0;
            while (!stoppingToken.IsCancellationRequested)
            {
                try
                {
                    _logger.LogDebug("开始检查到期库存...");
                    _logger.LogInformation("开始检查到期库存...");
                    if (index == 0)
                    {
                        await Task.Delay(5000, stoppingToken);
                        index++;
                    }
                    var result = await _taskService.CreateAutoOutboundTasksAsync();
                    if (result.Status)