using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; using System.Text; using OpenAuth.Repository.Core; using SqlSugar; namespace OpenAuth.Repository.Domain { /// /// 定时任务 /// [SugarTable("sys_openjob")] public partial class SysOpenJob { [SugarColumn(IsPrimaryKey = true)] public string Id { get; set; } /// /// 任务名称 /// [Description("任务名称")] public string JobName { get; set; } /// /// 任务执行次数 /// [Description("任务执行次数")] public int RunCount { get; set; } /// /// 异常次数 /// [Description("异常次数")] public int ErrorCount { get; set; } /// /// 下次执行时间 /// [Description("下次执行时间")] public System.DateTime? NextRunTime { get; set; } /// /// 最后一次执行时间 /// [Description("最后一次执行时间")] public System.DateTime? LastRunTime { get; set; } /// /// 最后一次失败时间 /// [Description("最后一次失败时间")] public System.DateTime? LastErrorTime { get; set; } /// /// 任务执行方式0:本地任务;1:外部接口任务 /// [Description("任务执行方式0:本地任务;1:外部接口任务")] public int JobType { get; set; } /// /// 任务地址 /// [Description("任务地址")] public string JobCall { get; set; } /// /// 任务参数,JSON格式 /// [Description("任务参数,JSON格式")] public string JobCallParams { get; set; } /// /// CRON表达式 /// [Description("CRON表达式")] public string Cron { get; set; } /// /// 任务运行状态(0:停止,1:正在运行,2:暂停) /// [Description("任务运行状态(0:停止,1:正在运行,2:暂停)")] public int Status { get; set; } /// /// 备注 /// [Description("备注")] public string Remark { get; set; } /// /// 创建时间 /// [Description("创建时间")] public System.DateTime CreateTime { get; set; } /// /// 创建人ID /// [Description("创建人ID")] [Browsable(false)] public string CreateUserId { get; set; } /// /// 创建人 /// [Description("创建人")] public string CreateUserName { get; set; } /// /// 最后更新时间 /// [Description("最后更新时间")] public System.DateTime? UpdateTime { get; set; } /// /// 最后更新人ID /// [Description("最后更新人ID")] [Browsable(false)] public string UpdateUserId { get; set; } /// /// 最后更新人 /// [Description("最后更新人")] public string UpdateUserName { get; set; } /// /// 所属部门 /// [Description("所属部门")] [Browsable(false)] public string OrgId { get; set; } } }