ConsumerOrders.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. namespace Model
  2. {
  3. /// <summary>
  4. /// 消费记录表 consumer_orders
  5. /// </summary>
  6. [SugarTable("consumer_orders", "消费记录表")]
  7. [Tenant("0")]
  8. public class ConsumerOrders
  9. {
  10. /// <summary>
  11. /// 平台订单号
  12. /// </summary>
  13. [SugarColumn(ColumnDescription = "平台订单号", Length = 50, ColumnName = "order_no")]
  14. public string OrderNo { get; set; }
  15. /// <summary>
  16. /// 好哒订单号
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "好哒订单号", Length = 50, ColumnName = "orderno_hd")]
  19. public string OrdernoHd { get; set; }
  20. /// <summary>
  21. /// 微信订单号
  22. /// </summary>
  23. [SugarColumn(ColumnDescription = "微信订单号", Length = 50, ColumnName = "wechat_order_no")]
  24. public string WechatOrderNo { get; set; }
  25. /// <summary>
  26. /// 支付宝订单号
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "支付宝订单号", Length = 50, ColumnName = "alipay_order_no")]
  29. public string AlipayOrderNo { get; set; }
  30. /// <summary>
  31. /// 支付方式
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "支付方式", ColumnName = "pay_mode")]
  34. public int PayMode { get; set; }
  35. /// <summary>
  36. /// 支付金额
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "支付金额", ColumnName = "pay_money")]
  39. public decimal PayMoney { get; set; }
  40. /// <summary>
  41. /// 来源设备号
  42. /// </summary>
  43. [SugarColumn(ColumnDescription = "来源设备号", Length = 50, ColumnName = "equipment_no")]
  44. public string EquipmentNo { get; set; }
  45. /// <summary>
  46. /// 最大分红金额
  47. /// </summary>
  48. [SugarColumn(ColumnDescription = "最大分红金额", ColumnName = "max_divi")]
  49. public decimal MaxDivi { get; set; }
  50. /// <summary>
  51. /// 当前分红金额
  52. /// </summary>
  53. [SugarColumn(ColumnDescription = "当前分红金额", ColumnName = "cur_divi")]
  54. public decimal CurDivi { get; set; }
  55. /// <summary>
  56. /// 是否活动订单
  57. /// </summary>
  58. [SugarColumn(ColumnDescription = "是否活动订单", ColumnName = "is_act")]
  59. public int IsAct { get; set; }
  60. /// <summary>
  61. /// 实收金额
  62. /// </summary>
  63. [SugarColumn(ColumnDescription = "实收金额", ColumnName = "act_money")]
  64. public decimal ActMoney { get; set; }
  65. /// <summary>
  66. /// 是否分账
  67. /// </summary>
  68. [SugarColumn(ColumnDescription = "是否分账", ColumnName = "divide_flag")]
  69. public int DivideFlag { get; set; }
  70. /// <summary>
  71. /// 分账日志
  72. /// </summary>
  73. [SugarColumn(ColumnDescription = "分账日志", ColumnName = "divide_log")]
  74. public string DivideLog { get; set; }
  75. /// <summary>
  76. /// 活动记录Id
  77. /// </summary>
  78. [SugarColumn(ColumnDescription = "活动记录Id", ColumnName = "active_record_id")]
  79. public int ActiveRecordId { get; set; }
  80. /// <summary>
  81. /// 订单结算金额
  82. /// </summary>
  83. [SugarColumn(ColumnDescription = "订单结算金额", ColumnName = "settle_amount")]
  84. public decimal SettleAmount { get; set; }
  85. /// <summary>
  86. /// 返现队列标记
  87. /// </summary>
  88. [SugarColumn(ColumnDescription = "返现队列标记", ColumnName = "return_flag")]
  89. public int ReturnFlag { get; set; }
  90. /// <summary>
  91. /// 活动配置参数
  92. /// </summary>
  93. [SugarColumn(ColumnDescription = "活动配置参数", Length = 500, ColumnName = "active_parameter")]
  94. public string ActiveParameter { get; set; }
  95. /// <summary>
  96. /// 商户Id
  97. /// </summary>
  98. [SugarColumn(ColumnDescription = "商户Id", ColumnName = "merchant_id")]
  99. public int MerchantId { get; set; }
  100. /// <summary>
  101. /// 商户进件渠道
  102. /// </summary>
  103. [SugarColumn(ColumnDescription = "商户进件渠道", ColumnName = "merchant_channel")]
  104. public int MerchantChannel { get; set; }
  105. /// <summary>
  106. /// 所属代理
  107. /// </summary>
  108. [SugarColumn(ColumnDescription = "所属代理", ColumnName = "user_id")]
  109. public int UserId { get; set; }
  110. /// <summary>
  111. /// 消费者Id
  112. /// </summary>
  113. [SugarColumn(ColumnDescription = "消费者Id", ColumnName = "consumer_id")]
  114. public int ConsumerId { get; set; }
  115. /// <summary>
  116. /// 分账时间
  117. /// </summary>
  118. [SugarColumn(ColumnDescription = "分账时间", ColumnName = "divide_date")]
  119. public DateTime? DivideDate { get; set; }
  120. /// <summary>
  121. /// 交易月份
  122. /// </summary>
  123. [SugarColumn(ColumnDescription = "交易月份", Length = 6, ColumnName = "trade_month")]
  124. public string TradeMonth { get; set; }
  125. /// <summary>
  126. /// 交易日期
  127. /// </summary>
  128. [SugarColumn(ColumnDescription = "交易日期", Length = 8, ColumnName = "trade_date")]
  129. public string TradeDate { get; set; }
  130. }
  131. }