Files
tnb.server/taskschedule/Tnb.TaskScheduler.Entitys/Entity/TimeTaskEntity.cs
2023-05-31 10:19:05 +08:00

76 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using JNPF.Common.Const;
using JNPF.Common.Contracts;
using SqlSugar;
namespace JNPF.TaskScheduler.Entitys;
/// <summary>
/// 定时任务
/// 版 本V3.2
/// 版 权拓通智联科技有限公司http://www.tuotong-tech.com
/// 日 期2021-06-01 .
/// </summary>
[SugarTable("BASE_TIMETASK")]
public class TimeTaskEntity : CLDEntityBase
{
/// <summary>
/// 任务编码.
/// </summary>
[SugarColumn(ColumnName = "F_ENCODE")]
public string EnCode { get; set; }
/// <summary>
/// 任务名称.
/// </summary>
[SugarColumn(ColumnName = "F_FULLNAME")]
public string FullName { get; set; }
/// <summary>
/// 执行类型【0:Api 1:Sql 2:本地方法】.
/// </summary>
[SugarColumn(ColumnName = "F_EXECUTETYPE")]
public string ExecuteType { get; set; }
/// <summary>
/// 执行内容.
/// </summary>
[SugarColumn(ColumnName = "F_EXECUTECONTENT")]
public string ExecuteContent { get; set; }
/// <summary>
/// 执行周期.
/// </summary>
[SugarColumn(ColumnName = "F_EXECUTECYCLEJSON")]
public string ExecuteCycleJson { get; set; }
/// <summary>
/// 最后运行时间.
/// </summary>
[SugarColumn(ColumnName = "F_LASTRUNTIME")]
public DateTime? LastRunTime { get; set; }
/// <summary>
/// 下次运行时间.
/// </summary>
[SugarColumn(ColumnName = "F_NEXTRUNTIME")]
public DateTime? NextRunTime { get; set; }
/// <summary>
/// 运行次数.
/// </summary>
[SugarColumn(ColumnName = "F_RUNCOUNT")]
public int? RunCount { get; set; } = 0;
/// <summary>
/// 描述.
/// </summary>
[SugarColumn(ColumnName = "F_DESCRIPTION")]
public string Description { get; set; }
/// <summary>
/// 排序码.
/// </summary>
[SugarColumn(ColumnName = "F_SORTCODE")]
public long? SortCode { get; set; }
}