using SqlSugar; using System; namespace New_College.Model.Models { /// /// 任务计划表 /// public class TasksQz : RootEntity { /// /// 任务名称 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string Name { get; set; } /// /// 任务分组 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string JobGroup { get; set; } /// /// 任务运行时间表达式 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string Cron { get; set; } /// /// 任务所在DLL对应的程序集名称 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string AssemblyName { get; set; } /// /// 任务所在类 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string ClassName { get; set; } /// /// 任务描述 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 1000, IsNullable = true)] public string Remark { get; set; } /// /// 执行次数 /// public int RunTimes { get; set; } /// /// 开始时间 /// public DateTime? BeginTime { get; set; } /// /// 结束时间 /// public DateTime? EndTime { get; set; } /// /// 触发器类型(0、simple 1、cron) /// public int TriggerType { get; set; } /// /// 执行间隔时间, 秒为单位 /// public int IntervalSecond { get; set; } /// /// 是否启动 /// public bool IsStart { get; set; } = false; /// /// 执行传参 /// public string JobParams { get; set; } } }