SysBase.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using MiniExcelLibs.Attributes;
  2. using Newtonsoft.Json;
  3. using SqlSugar;
  4. using System;
  5. namespace ZR.Model.System
  6. {
  7. //[EpplusTable(PrintHeaders = true, AutofitColumns = true, AutoCalculate = true, ShowTotal = true)]
  8. public class SysBase
  9. {
  10. [SugarColumn(IsOnlyIgnoreUpdate = true)]
  11. [JsonProperty(propertyName: "CreateBy")]
  12. [ExcelIgnore]
  13. public string Create_by { get; set; }
  14. [SugarColumn(IsOnlyIgnoreUpdate = true)]
  15. [JsonProperty(propertyName: "CreateTime")]
  16. [ExcelColumn(Format = "yyyy-MM-dd HH:mm:ss")]
  17. public DateTime Create_time { get; set; } = DateTime.Now;
  18. [JsonIgnore]
  19. [JsonProperty(propertyName: "UpdateBy")]
  20. [SugarColumn(IsOnlyIgnoreInsert = true)]
  21. [ExcelIgnore]
  22. public string Update_by { get; set; }
  23. //[JsonIgnore]
  24. [SugarColumn(IsOnlyIgnoreInsert = true)]
  25. [JsonProperty(propertyName: "UpdateTime")]
  26. [ExcelIgnore]
  27. public DateTime? Update_time { get; set; }
  28. public string Remark { get; set; }
  29. [SugarColumn(IsIgnore = true)]
  30. [JsonIgnore]
  31. [ExcelIgnore]
  32. public DateTime? BeginTime { get; set; }
  33. [SugarColumn(IsIgnore = true)]
  34. [JsonIgnore]
  35. [ExcelIgnore]
  36. public DateTime? EndTime { get; set; }
  37. }
  38. }