using Pomelo.AspNetCore.TimedJob;
|
using WIDESEA_ISquareCabinServices;
|
using static WIDESEA_DTO.SquareCabin.TowcsDto;
|
|
namespace WIDESEA_WMSServer
|
{
|
public class GoodsJob : Job
|
{
|
private readonly IMedicineGoodsServices _medicineGoodsServices;
|
public GoodsJob(IMedicineGoodsServices medicineGoodsServices)
|
{
|
_medicineGoodsServices = medicineGoodsServices;
|
}
|
//每隔1秒执行一次
|
[Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)]
|
public void Run()
|
{
|
//_cabinOrderServices.GetUpstreamOrder();
|
_medicineGoodsServices.ProductSynchronous();
|
}
|
}
|
}
|