团餐订单
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.
 
 

74 lines
1.9 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.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPA.KitChen.GroupMealOrder.Core.Entity
  11. {
  12. /// <summary>
  13. /// 称重订单
  14. /// </summary>
  15. [SugarTable("bpa_weighorder")]
  16. public class BPA_WeighOrder : IBaseGroupIdEntity
  17. {
  18. /// <summary>
  19. /// 主键 Guid
  20. /// </summary>
  21. [SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  22. public string Id { get; set; } = Guid.NewGuid().ToString();
  23. [SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "GroupId", IsNullable = true)]
  24. public string GroupId { get; set; } = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
  25. /// <summary>
  26. /// 订单编号
  27. /// </summary>
  28. public string OrderNumber { get; set; }
  29. /// <summary>
  30. /// 订单金额
  31. /// </summary>
  32. public decimal TotalAmount { get; set; }
  33. /// <summary>
  34. /// 订单标题
  35. /// </summary>
  36. [SugarColumn(IsNullable = true)]
  37. public string Subject { get; set; }
  38. /// <summary>
  39. /// 场景id
  40. /// </summary>
  41. public string SceneId { get; set; }
  42. /// <summary>
  43. /// 0.选菜中 1.订单完成
  44. /// </summary>
  45. public int States { get; set; }
  46. /// <summary>
  47. /// 0.待支付 1.已支付 2.支付失败
  48. /// </summary>
  49. public int PayStates { get; set; }
  50. /// <summary>
  51. /// 创建时间
  52. /// </summary>
  53. public DateTime CreateAt { get; set; } = DateTime.Now;
  54. /// <summary>
  55. /// 创建人
  56. /// </summary>
  57. public string CreateId { get; set; }
  58. }
  59. }