Order.java 3.0 KB

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