Files
shgx_tz_mes_backend_sync/ZR.Model/System/SysBase.cs

45 lines
1.4 KiB
C#
Raw Normal View History

2022-12-08 16:53:47 +08:00
using MiniExcelLibs.Attributes;
2021-08-23 16:57:25 +08:00
namespace ZR.Model.System
{
2022-12-08 16:53:47 +08:00
//[EpplusTable(PrintHeaders = true, AutofitColumns = true, AutoCalculate = true, ShowTotal = true)]
2021-08-23 16:57:25 +08:00
public class SysBase
{
2023-06-07 22:28:06 +08:00
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(IsOnlyIgnoreUpdate = true, Length = 64, IsNullable = true)]
2021-08-23 16:57:25 +08:00
[JsonProperty(propertyName: "CreateBy")]
2022-12-08 16:53:47 +08:00
[ExcelIgnore]
2021-08-23 16:57:25 +08:00
public string Create_by { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true)]
2021-08-23 16:57:25 +08:00
[JsonProperty(propertyName: "CreateTime")]
2022-12-08 16:53:47 +08:00
[ExcelColumn(Format = "yyyy-MM-dd HH:mm:ss")]
2021-08-23 16:57:25 +08:00
public DateTime Create_time { get; set; } = DateTime.Now;
/// <summary>
/// 更新人
/// </summary>
2021-08-23 16:57:25 +08:00
[JsonIgnore]
[JsonProperty(propertyName: "UpdateBy")]
[SugarColumn(IsOnlyIgnoreInsert = true, Length = 64, IsNullable = true)]
2022-12-08 16:53:47 +08:00
[ExcelIgnore]
2021-08-23 16:57:25 +08:00
public string Update_by { get; set; }
/// <summary>
/// 更新时间
/// </summary>
2021-09-21 20:31:35 +08:00
//[JsonIgnore]
[SugarColumn(IsOnlyIgnoreInsert = true, IsNullable = true)]
2021-08-23 16:57:25 +08:00
[JsonProperty(propertyName: "UpdateTime")]
2022-12-08 16:53:47 +08:00
[ExcelIgnore]
2021-09-23 10:15:50 +08:00
public DateTime? Update_time { get; set; }
[SugarColumn(Length = 500)]
2021-08-23 16:57:25 +08:00
public string Remark { get; set; }
}
}