BillTimeOutRecord.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using wms.dto;
  6. using wms.util.Check;
  7. namespace wms.sqlsugar.model.sx
  8. {
  9. /// <summary>
  10. /// 超时记录
  11. /// </summary>
  12. [Tenant("sx")]
  13. [SugarTable(nameof(BillTimeOutRecord) + "_{year}{month}{day}", "超时盘记录表")]
  14. [SplitTable(SplitType.Month)]//按年分表 (自带分表支持 年、季、月、周、日)
  15. public class BillTimeOutRecord
  16. {
  17. /// <summary>
  18. /// 容器条码 同联容器表容器条码 ContBarCode
  19. /// </summary>
  20. [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
  21. public string ContGrpBarCode { get; set; }
  22. /// <summary>
  23. /// 超时原因
  24. /// </summary>
  25. [SugarColumn(ColumnDataType = "nvarchar", Length =5000, IsNullable = true)]
  26. public string Reason { get; set; }
  27. [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
  28. public long Id { get; set; } = IdFactory.NewId();
  29. [SugarColumn(ColumnName = "AddTime", DefaultValue = "1900-1-1", IsNullable = false)]
  30. public DateTime AddTime { get; set; } = DateTime.Now;
  31. [SugarColumn(ColumnName = "EditTime", DefaultValue = "1900-1-1", IsNullable = false)]
  32. public DateTime EditTime { get; set; } = DateTime.Now;
  33. }
  34. }