JXMovies/CMS/JXCMS.CMS.Movie/Jobs/CollectionJob.cs
2020-02-12 15:23:34 +08:00

19 lines
471 B
C#

using System;
using System.Threading.Tasks;
using JXCMS.CMS.Movie.Entity;
using Quartz;
namespace JXCMS.CMS.Movie.Jobs
{
public class CollectionJob : IJob
{
public Task Execute(IJobExecutionContext context)
{
var id = context.MergedJobDataMap.GetIntValue("id");
var websiteEntity = WebSiteEntity.Find(id);
Console.WriteLine(id);
return Task.CompletedTask;
}
}
}