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

69 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_weighordergoods")]
  16. public class BPA_WeighOrderGoods : 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. /// 订单id
  27. /// </summary>
  28. public string OrderId { get; set; }
  29. /// <summary>
  30. /// 商品名称
  31. /// </summary>
  32. public string GoodsId { get; set; }
  33. /// <summary>
  34. /// 商品名称
  35. /// </summary>
  36. public string GoodsName { get; set; }
  37. /// <summary>
  38. /// 商品商品重量
  39. /// </summary>
  40. public decimal GoodsWeight { get; set; }
  41. /// <summary>
  42. /// 商品属性
  43. /// </summary>
  44. public string GoodsAttribute { get; set; }
  45. /// <summary>
  46. /// 创建时间
  47. /// </summary>
  48. [SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "创建时间", IsNullable = true)]
  49. public DateTime CreateAt { get; set; } = DateTime.Now;
  50. /// <summary>
  51. /// 创建人
  52. /// </summary>
  53. [SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "创建人", IsNullable = true)]
  54. public string CreateBy { get; set; }
  55. }
  56. }