dengjunjie
3 天以前 aa5a0ac9a7d35d3a072fbe164ded24adbaa68b17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Pomelo.AspNetCore.TimedJob;
using WIDESEA_ISquareCabinServices;
 
namespace WIDESEA_WMSServer
{
    public class OutOrderJob : Job
    {
        private readonly IDeliveryOrderServices _deliveryOrderServices;
        public OutOrderJob(IDeliveryOrderServices deliveryOrderServices)
        {
            _deliveryOrderServices = deliveryOrderServices;
        }
        //每隔1秒执行一次
        [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled =false, SkipWhileExecuting = true)]
        public void Run()
        {
            _deliveryOrderServices.EdiOut();
 
        }
    }
}