SysJobBySugar.cs 1.97 KB
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace WebRepository.Domain.job
{

    [SugarTable("sys_job")]
    public class SysJobBySugar
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        [SugarColumn(ColumnName = "jobName")]
        public string JobName { get; set; }
        /// <summary>
        /// 任务组名
        /// </summary>
        [SugarColumn(ColumnName = "jobGroup")]
        public string JobGroup { get; set; }
        /// <summary>
        /// 任务方法
        /// </summary>
        [SugarColumn(ColumnName = "methodName")]
        public string MethodName { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        [SugarColumn(ColumnName = "methodParams")]
        public string MethodParams { get; set; }
        /// <summary>
        /// cron执行表达式
        /// </summary>
        [SugarColumn(ColumnName = "cronExpression")]
        public string CronExpression { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "lastFireTime")]
        public System.DateTime? LastFireTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "nextFireTime")]
        public System.DateTime? NextFireTime { get; set; }
        /// <summary>
        /// 错误策略
        /// </summary>
        [SugarColumn(ColumnName = "misfirePolicy")]
        public string MisfirePolicy { get; set; }
        /// <summary>
        /// 状态(0正常 1暂停)
        /// </summary>
        [SugarColumn(ColumnName = "status")]
        public string Status { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [SugarColumn(ColumnName = "remark")]
        public string Remark { get; set; }
        /// <summary>
        /// SQL脚本
        /// </summary>
        [SugarColumn(ColumnName = "jobsql")]
        public string Sql { get; set; }
    }
}