Order.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. package com.zanxiang.mybatis.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import lombok.*;
  6. import org.springframework.transaction.annotation.Transactional;
  7. import java.math.BigDecimal;
  8. import java.util.Date;
  9. /**
  10. * @author : lingfeng
  11. * @time : 2022-06-06
  12. * @description : 支付表
  13. */
  14. @Data
  15. @NoArgsConstructor
  16. @AllArgsConstructor
  17. @ToString
  18. @Builder
  19. @TableName("h_order")
  20. public class Order {
  21. /**
  22. * 自增ID
  23. */
  24. @TableId(value = "id", type = IdType.ASSIGN_ID)
  25. private String id;
  26. /**
  27. * cpId
  28. */
  29. private String cpId;
  30. /**
  31. * CP订单号
  32. */
  33. private String cpOrderId;
  34. /**
  35. * 充值用户
  36. */
  37. private String userId;
  38. /**
  39. * 游戏玩家ID
  40. */
  41. private String mgUserId;
  42. /**
  43. * 游戏ID
  44. */
  45. private String gameId;
  46. /**
  47. * 货物总价
  48. */
  49. private BigDecimal amount;
  50. /**
  51. * 实际支付金额
  52. */
  53. private BigDecimal realAmount;
  54. /**
  55. * 游戏商品ID
  56. */
  57. private String productId;
  58. /**
  59. * 游戏商品数量
  60. */
  61. private Integer productCnt;
  62. /**
  63. * 游戏商品名称
  64. */
  65. private String productName;
  66. /**
  67. * 优惠券抵扣
  68. */
  69. private BigDecimal couponAmount;
  70. /**
  71. * 平台币使用金额
  72. */
  73. private BigDecimal ptbAmount;
  74. /**
  75. * 游戏币使用余额
  76. */
  77. private BigDecimal gmAmount;
  78. /**
  79. * 使用积分
  80. */
  81. private Integer integral;
  82. /**
  83. * 使用积分抵多少钱
  84. */
  85. private BigDecimal integralMoney;
  86. /**
  87. * 返利数量 默认为0
  88. */
  89. private BigDecimal rebateAmount;
  90. /**
  91. * 支付平台返回交易订单号
  92. */
  93. private String merchantOrderNo;
  94. /**
  95. * 支付状态,1待支付,2 支付成功,-1 已取消
  96. */
  97. private Integer status;
  98. /**
  99. * 支付方式
  100. */
  101. private String gamePaywayId;
  102. /**
  103. * 支付时间
  104. */
  105. private Date payTime;
  106. /**
  107. * 通知次数
  108. */
  109. private Integer cpNotifyCnt;
  110. /**
  111. * 最近通知时间
  112. */
  113. private Long lastCpNotifyTime;
  114. /**
  115. * 客服处理: 2正常; 1纠纷
  116. */
  117. private Integer isHandle;
  118. /**
  119. * 是否已分成 1未分成 2 已分成
  120. */
  121. private Integer isDistribute;
  122. /**
  123. * CP通知状态,1为待处理,2为成功,-1为失败
  124. */
  125. private Integer cpStatus;
  126. /**
  127. * CP附加参数
  128. */
  129. private String ext;
  130. /**
  131. * 用户备注
  132. */
  133. private String memNote;
  134. /**
  135. * 管理员备注
  136. */
  137. private String adminNote;
  138. /**
  139. * 订单成功备注信息
  140. */
  141. private String remark;
  142. /**
  143. * 渠道
  144. */
  145. private String channel;
  146. }