wankeda
2025-06-24 1caea0fdc7ed1788d854a2aba8853984b4494e01
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Tasks/Jobs/AGVjob.cs
@@ -20,6 +20,8 @@
using Quartz;
using SqlSugar;
using WIDESEA_Core.Log;
using WIDESEA_IBasicRepository;
using WIDESEA_ITaskInfoRepository;
using WIDESEA_ITaskInfoService;
using static System.Collections.Specialized.BitVector32;
namespace WIDESEA_Tasks
@@ -29,20 +31,23 @@
    {
        private readonly ITaskService _taskService;
        private readonly IMapper _mapper;
        //private readonly ICacheService _cacheService;
        private readonly ICachePointRepository _cachePointRepository;
        private readonly ITaskRepository _taskRepository;
        public AGVjob(ITaskService taskService, IMapper mapper)
        public AGVjob(ITaskService taskService, ITaskRepository taskRepository, ICachePointRepository cachePointRepository, IMapper mapper)//ICacheService cacheService,ITaskRepository taskRepository, ICachePointRepository cachePointRepository,
        {
            _taskService = taskService;
            // _cacheService = cacheService;
            _cachePointRepository = cachePointRepository;
            _taskRepository = taskRepository;
            _mapper = mapper;
        }
        public Task Execute(IJobExecutionContext context)
        {
            WriteLog.Info($"绯荤粺杩愯").Write($"鎴愬姛", $"绯荤粺杩愯");
            //SendAgvTask();
            //MqttExample();
            //Printer();
            //Main();
            SendAgvTask();
            MqttExample();
            return Task.CompletedTask;
        }
    }