You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.7 KiB
C#

using EntrustSettle.Model.Logs;
using SqlSugar;
using System;
namespace EntrustSettle.Model.Models
{
/// <summary>
/// 任务日志表
/// </summary>
[SplitTable(SplitType.Year)] //按月分表 (自带分表支持 年、季、月、周、日)
[SugarTable("taskslog_{year}{month}{day}")]
public class TasksLog : BaseEntity
{
/// <summary>
/// 任务ID
/// </summary>
public long JobId { get; set; }
/// <summary>
/// 任务耗时
/// </summary>
public double TotalTime { get; set; }
/// <summary>
/// 执行结果(0-失败 1-成功)
/// </summary>
public bool RunResult { get; set; }
/// <summary>
/// 运行时间
/// </summary>
public DateTime RunTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 执行参数
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]
public string RunPars { get; set; }
/// <summary>
/// 异常信息
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]
public string ErrMessage { get; set; }
/// <summary>
/// 异常堆栈
/// </summary>
[SugarColumn(Length = 2000, IsNullable = true)]
public string ErrStackTrace { get; set; }
/// <summary>
/// 任务名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string Name { get; set; }
/// <summary>
/// 任务分组
/// </summary>
[SugarColumn(IsIgnore = true)]
public string JobGroup { get; set; }
}
}