using EntrustSettle.Model.Dtos;
using SqlSugar;
using System;
using System.Collections.Generic;
namespace EntrustSettle.Model.Models
{
///
/// 任务计划表
///
public class TasksQz : BaseEntity
{
///
/// 任务名称
///
[SugarColumn(Length = 200, IsNullable = true)]
public string Name { get; set; }
///
/// 任务分组
///
[SugarColumn(Length = 200, IsNullable = true)]
public string JobGroup { get; set; }
///
/// 任务运行时间表达式
///
[SugarColumn(Length = 200, IsNullable = true)]
public string Cron { get; set; }
///
/// 任务所在DLL对应的程序集名称
///
[SugarColumn(Length = 200, IsNullable = true)]
public string AssemblyName { get; set; }
///
/// 任务所在类
///
[SugarColumn(Length = 200, IsNullable = true)]
public string ClassName { get; set; }
///
/// 任务描述
///
[SugarColumn(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 int CycleRunTimes { get; set; }
///
/// 已循环次数
///
public int CycleHasRunTimes { get; set; }
///
/// 是否启动
///
public bool IsStart { get; set; } = false;
///
/// 执行传参
///
public string JobParams { get; set; }
///
/// 任务内存中的状态
///
[SugarColumn(IsIgnore = true)]
public List Triggers { get; set; }
}
}