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

223 lines
4.5 KiB

  1. using BPA.KitChen.GroupMealOrder.Application.BaseDto;
  2. using BPA.KitChen.GroupMealOrder.Core.Common.Const;
  3. using BPA.KitChen.GroupMealOrder.Core.Entity;
  4. using Furion;
  5. using SqlSugar;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Dtos
  12. {
  13. /// <summary>
  14. ///
  15. /// </summary>
  16. public class WeighOrderDto: BPA_WeighOrder
  17. {
  18. /// <summary>
  19. /// 商品信息
  20. /// </summary>
  21. public List<WeighOrderGoodsDto> GoodsInfo { get; set; }
  22. /// <summary>
  23. /// 餐盘信息
  24. /// </summary>
  25. public List<WeighOrderDiningPlateDto> DiningPlateInfo { get; set; }
  26. /// <summary>
  27. /// 会员信息
  28. /// </summary>
  29. public MemberInfoDto MemberInfo { get; set; }
  30. }
  31. public class WeighOrderGoodsDto
  32. {
  33. /// <summary>
  34. /// 主键 Guid
  35. /// </summary>
  36. public string Id { get; set; } = Guid.NewGuid().ToString();
  37. public string GroupId { get; set; } = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
  38. /// <summary>
  39. /// 订单id
  40. /// </summary>
  41. public string OrderId { get; set; }
  42. /// <summary>
  43. /// 商品名称
  44. /// </summary>
  45. public string GoodsId { get; set; }
  46. /// <summary>
  47. /// 商品名称
  48. /// </summary>
  49. public string GoodsName { get; set; }
  50. public decimal TotalAmount { get; set; }
  51. /// <summary>
  52. /// 商品商品重量
  53. /// </summary>
  54. public decimal GoodsWeight { get; set; }
  55. /// <summary>
  56. /// 商品属性
  57. /// </summary>
  58. public List<GoogsAttribute>? GoodsAttribute { get; set; }
  59. }
  60. public class WeighOrderDiningPlateDto
  61. {
  62. /// <summary>
  63. /// 订单编号
  64. /// </summary>
  65. public string OrderId { get; set; }
  66. public string DiningPlateId { get; set; }
  67. public string QRCode { get; set; }
  68. public string ChipCode { get; set; }
  69. }
  70. public class MemberInfoDto
  71. {
  72. /// <summary>
  73. /// 是否会员
  74. /// </summary>
  75. public bool IsMember { get; set; }
  76. /// <summary>
  77. /// 会员名称
  78. /// </summary>
  79. public string Name { get; set; }
  80. }
  81. public class GoogsAttribute
  82. {
  83. public string AttributeId { get; set; }
  84. public string AttributeName { get; set; }
  85. }
  86. public class GetWeighOrderByOrderIdInputDto
  87. {
  88. /// <summary>
  89. /// orderId
  90. /// </summary>
  91. public string OrderId { get; set; }
  92. }
  93. public class GetWeighOrderByChipCodeInputDto
  94. {
  95. /// <summary>
  96. /// 芯片码
  97. /// </summary>
  98. public string ChipCode { get; set; }
  99. }
  100. public class WeighOrderCreteDto
  101. {
  102. /// <summary>
  103. /// 创建人(会员Id)
  104. /// </summary>
  105. public string CreateId { get; set; }
  106. public string QRCode { get; set; }
  107. }
  108. public class WeighOrderGoodsCreateDto
  109. {
  110. /// <summary>
  111. /// 商品名称
  112. /// </summary>
  113. public string GoodsId { get; set; }
  114. /// <summary>
  115. /// 商品名称
  116. /// </summary>
  117. public string GoodsName { get; set; }
  118. /// <summary>
  119. /// 商品商品重量
  120. /// </summary>
  121. public decimal GoodsWeight { get; set; }
  122. public string OrderId { get; set; }
  123. }
  124. public class WeighOrderDiningPlateCreateDto
  125. {
  126. /// <summary>
  127. /// 订单编号
  128. /// </summary>
  129. public string OrderId { get; set; }
  130. public string DiningPlateId { get; set; }
  131. /// <summary>
  132. /// 二维码
  133. /// </summary>
  134. public string QRCode { get; set; }
  135. /// <summary>
  136. /// 芯片码
  137. /// </summary>
  138. public string ChipCode { get; set; }
  139. }
  140. public class WeighOrderUpdateDto
  141. {
  142. public string OrderId { get; set; }
  143. public int PayStates { get; set; }
  144. public int States { get; set; }
  145. }
  146. public class GetWeighOrderPageByOpenIdInputDto: PageInputBase
  147. {
  148. public string OpenId { get; set; }
  149. }
  150. public class GetWeighOrderByOpenIdInputDto
  151. {
  152. public string OpenId { get; set; }
  153. }
  154. public class GetGoodsListInputDto : PageInputBase
  155. {
  156. public int? states { get; set; }
  157. public int? payStates { get; set; }
  158. }
  159. }