TransactionEntity.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. using AI.Platform.Core.Entity;
  2. using SqlSugar;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace ZhonTai.Admin.Contracts.Domain.VehicleTerminal.Transaction
  7. {
  8. /// <summary>
  9. /// 订单表
  10. /// </summary>
  11. [SugarTable(null, "订单表")]
  12. public class TransactionEntity : EntityBaseLite
  13. {
  14. /// <summary>
  15. /// 订单ID(主键)
  16. /// </summary>
  17. public long Id { get; set; }
  18. /// <summary>
  19. /// 订单编号
  20. /// </summary>
  21. [SugarColumn(IsNullable = true)]
  22. public string BillNumber { get; set; }
  23. /// <summary>
  24. /// 站点ID
  25. /// </summary>
  26. public long? SiteId { get; set; }
  27. /// <summary>
  28. /// 用户ID
  29. /// </summary>
  30. [SugarColumn(IsNullable = true)]
  31. public long UserId { get; set; }
  32. /// <summary>
  33. /// 用户手机号
  34. /// </summary>
  35. [SugarColumn(IsNullable = true)]
  36. public string Mobile { get; set; }
  37. /// <summary>
  38. /// 员工ID
  39. /// </summary>
  40. [SugarColumn(IsNullable = true)]
  41. public long? EmployeeId { get; set; }
  42. /// <summary>
  43. /// 加油卡号
  44. /// </summary>
  45. [SugarColumn(IsNullable = true)]
  46. public string CardNo { get; set; }
  47. /// <summary>
  48. /// 油枪号
  49. /// </summary>
  50. [SugarColumn(IsNullable = true)]
  51. public string OilGunNo { get; set; }
  52. /// <summary>
  53. /// 油品ID
  54. /// </summary>
  55. [SugarColumn(IsNullable = true)]
  56. public long OilProductId { get; set; }
  57. /// <summary>
  58. /// 油品
  59. /// </summary>
  60. [SugarColumn(IsNullable = true)]
  61. public string OilProduct { get; set; }
  62. /// <summary>
  63. /// 加油升数
  64. /// </summary>
  65. [SugarColumn(IsNullable = true)]
  66. public decimal OilVolume { get; set; }
  67. /// <summary>
  68. /// 单价
  69. /// </summary>
  70. [SugarColumn(IsNullable = true)]
  71. public decimal OilPrice { get; set; }
  72. /// <summary>
  73. /// 泵码
  74. /// </summary>
  75. [SugarColumn(IsNullable = true)]
  76. public long PumpMeter { get; set; }
  77. /// <summary>
  78. /// 原金额
  79. /// </summary>
  80. [SugarColumn(IsNullable = true)]
  81. public decimal OriginalAmount { get; set; }
  82. /// <summary>
  83. /// 应付金额
  84. /// </summary>
  85. [SugarColumn(IsNullable = true)]
  86. public decimal PayableAmount { get; set; }
  87. /// <summary>
  88. /// 车牌号
  89. /// </summary>
  90. [SugarColumn(IsNullable = true)]
  91. public string LicencePlate { get; set; }
  92. /// <summary>
  93. /// 实际支付金额
  94. /// </summary>
  95. [SugarColumn(IsNullable = true)]
  96. public decimal ActualAmount { get; set; }
  97. /// <summary>
  98. /// 支付方式:1-微信,2-支付宝,3-银联,4-现金,5-加油卡、6-融合支付等
  99. /// </summary>
  100. [SugarColumn(IsNullable = true)]
  101. public int PaymentMethod { get; set; }
  102. /// <summary>
  103. /// 支付平台交易流水号
  104. /// </summary>
  105. [SugarColumn(IsNullable = true)]
  106. public string PaymentTradeNo { get; set; }
  107. /// <summary>
  108. /// 支付结果:0-待支付,1-支付成功,2-支付失败
  109. /// </summary>
  110. [SugarColumn(IsNullable = true)]
  111. public int PaymentStatus { get; set; }
  112. /// <summary>
  113. /// 交易时间
  114. /// </summary>
  115. [SugarColumn(IsNullable = true)]
  116. public DateTime TransactionTime { get; set; }
  117. /// <summary>
  118. /// 挂枪时间
  119. /// </summary>
  120. [SugarColumn(IsNullable = true)]
  121. public DateTime? HangGunTime { get; set; }
  122. /// <summary>
  123. /// 纬度
  124. /// </summary>
  125. [SugarColumn(IsNullable = true)]
  126. public decimal? Latitude { get; set; }
  127. /// <summary>
  128. /// 经度
  129. /// </summary>
  130. [SugarColumn(IsNullable = true)]
  131. public decimal? Longitude { get; set; }
  132. /// <summary>
  133. /// 班次
  134. /// </summary>
  135. [SugarColumn(IsNullable = true)]
  136. public string Shift { get; set; }
  137. /// <summary>
  138. /// 是否开票:0-未开票,1-已开票
  139. /// </summary>
  140. [SugarColumn(IsNullable = true)]
  141. public byte IsInvoice { get; set; }
  142. /// <summary>
  143. /// 订单状态 0:订单未支付,1:订单已支付,2:订单支付中,3:订单通过卡支付,4:订单已完成,5:已取消
  144. /// </summary>
  145. [SugarColumn(IsNullable = true)]
  146. public int OrderStatus { get; set; }
  147. /// <summary>
  148. /// 删除:0-未删除,1-已删除
  149. /// </summary>
  150. [SugarColumn(IsNullable = true)]
  151. public byte IsDeleted { get; set; }
  152. /// <summary>
  153. /// 创建时间
  154. /// </summary>
  155. [SugarColumn(IsNullable = true)]
  156. public DateTime CreatedAt { get; set; }
  157. /// <summary>
  158. /// 最后更新时间
  159. /// </summary>
  160. [SugarColumn(IsNullable = true)]
  161. public DateTime UpdatedAt { get; set; }
  162. /// <summary>
  163. /// 设备编号
  164. /// </summary>
  165. [SugarColumn(IsNullable = true)]
  166. public string DeviceId { get; set; }
  167. }
  168. }