团餐订单
You can not 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

  1. using BPA.KitChen.GroupMealOrder.Core.Common.Const;
  2. using BPA.KitChen.GroupMealOrder.Core.Entity.Base;
  3. using Furion;
  4. using SqlSugar;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Diagnostics.Metrics;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace BPA.KitChen.GroupMealOrder.Core.Entity
  12. {
  13. /// <summary>
  14. /// 称重订单状态变更记录
  15. /// </summary>
  16. [SugarTable("bpa_weighorderstatesrecord")]
  17. public class BPA_WeighOrderStatesRecord : IBaseGroupIdEntity
  18. {
  19. /// <summary>
  20. /// 主键 Guid
  21. /// </summary>
  22. [SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  23. public string Id { get; set; } = Guid.NewGuid().ToString();
  24. [SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "GroupId", IsNullable = true)]
  25. public string GroupId { get; set; } = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
  26. /// <summary>
  27. /// 订单编号
  28. /// </summary>
  29. public string OrderId { get; set; }
  30. /// <summary>
  31. /// 变更前
  32. /// </summary>
  33. public int BeforeTheChange { get; set; }
  34. /// <summary>
  35. /// 变更后
  36. /// </summary>
  37. public int AfterTheChange { get; set; }
  38. /// <summary>
  39. /// 创建时间
  40. /// </summary>
  41. [SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "创建时间", IsNullable = true)]
  42. public DateTime CreateAt { get; set; } = DateTime.Now;
  43. /// <summary>
  44. /// 创建人
  45. /// </summary>
  46. [SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "创建人", IsNullable = true)]
  47. public string CreateBy { get; set; }
  48. }
  49. }