StudentRecharge.java 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. package com.ym.mec.education.entity;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.baomidou.mybatisplus.annotations.TableId;
  5. import com.baomidou.mybatisplus.annotations.TableField;
  6. import com.baomidou.mybatisplus.activerecord.Model;
  7. import com.baomidou.mybatisplus.annotations.TableName;
  8. import java.io.Serializable;
  9. /**
  10. * <p>
  11. * 充值记录表
  12. * </p>
  13. *
  14. * @author lemeng
  15. * @since 2019-09-25
  16. */
  17. @TableName("student_recharge")
  18. public class StudentRecharge extends Model<StudentRecharge> {
  19. private static final long serialVersionUID = 1L;
  20. /**
  21. * 充值流水号
  22. */
  23. @TableId("id_")
  24. private String id;
  25. /**
  26. * 用户编号
  27. */
  28. @TableField("user_id_")
  29. private Long userId;
  30. /**
  31. * 交易流水号,第三方支付机构返回的
  32. */
  33. @TableField("trans_no_")
  34. private String transNo;
  35. /**
  36. * 1,交易中;2,成功交易;3,交易失败;4,交易关闭
  37. */
  38. @TableField("status_")
  39. private Integer status;
  40. /**
  41. * 充值金额
  42. */
  43. @TableField("amount_")
  44. private BigDecimal amount;
  45. /**
  46. * 用户承担的充值费用(单位:元)
  47. */
  48. @TableField("fee_user_")
  49. private BigDecimal feeUser;
  50. /**
  51. * 平台承担的费用(单位:元)
  52. */
  53. @TableField("fee_platform_")
  54. private BigDecimal feePlatform;
  55. /**
  56. * 第三方支付平台名称(用拼音简称代替)
  57. */
  58. @TableField("pay_platform_")
  59. private String payPlatform;
  60. /**
  61. * 描述
  62. */
  63. @TableField("description_")
  64. private String description;
  65. /**
  66. * 后台备注
  67. */
  68. @TableField("comment_")
  69. private String comment;
  70. /**
  71. * 创建时间
  72. */
  73. @TableField("create_time_")
  74. private Date createTime;
  75. /**
  76. * 最后修改时间
  77. */
  78. @TableField("modify_time_")
  79. private Date modifyTime;
  80. public String getId() {
  81. return id;
  82. }
  83. public StudentRecharge setId(String id) {
  84. this.id = id;
  85. return this;
  86. }
  87. public Long getUserId() {
  88. return userId;
  89. }
  90. public StudentRecharge setUserId(Long userId) {
  91. this.userId = userId;
  92. return this;
  93. }
  94. public String getTransNo() {
  95. return transNo;
  96. }
  97. public StudentRecharge setTransNo(String transNo) {
  98. this.transNo = transNo;
  99. return this;
  100. }
  101. public Integer getStatus() {
  102. return status;
  103. }
  104. public StudentRecharge setStatus(Integer status) {
  105. this.status = status;
  106. return this;
  107. }
  108. public BigDecimal getAmount() {
  109. return amount;
  110. }
  111. public StudentRecharge setAmount(BigDecimal amount) {
  112. this.amount = amount;
  113. return this;
  114. }
  115. public BigDecimal getFeeUser() {
  116. return feeUser;
  117. }
  118. public StudentRecharge setFeeUser(BigDecimal feeUser) {
  119. this.feeUser = feeUser;
  120. return this;
  121. }
  122. public BigDecimal getFeePlatform() {
  123. return feePlatform;
  124. }
  125. public StudentRecharge setFeePlatform(BigDecimal feePlatform) {
  126. this.feePlatform = feePlatform;
  127. return this;
  128. }
  129. public String getPayPlatform() {
  130. return payPlatform;
  131. }
  132. public StudentRecharge setPayPlatform(String payPlatform) {
  133. this.payPlatform = payPlatform;
  134. return this;
  135. }
  136. public String getDescription() {
  137. return description;
  138. }
  139. public StudentRecharge setDescription(String description) {
  140. this.description = description;
  141. return this;
  142. }
  143. public String getComment() {
  144. return comment;
  145. }
  146. public StudentRecharge setComment(String comment) {
  147. this.comment = comment;
  148. return this;
  149. }
  150. public Date getCreateTime() {
  151. return createTime;
  152. }
  153. public StudentRecharge setCreateTime(Date createTime) {
  154. this.createTime = createTime;
  155. return this;
  156. }
  157. public Date getModifyTime() {
  158. return modifyTime;
  159. }
  160. public StudentRecharge setModifyTime(Date modifyTime) {
  161. this.modifyTime = modifyTime;
  162. return this;
  163. }
  164. @Override
  165. protected Serializable pkVal() {
  166. return this.id;
  167. }
  168. @Override
  169. public String toString() {
  170. return "StudentRecharge{" +
  171. ", id=" + id +
  172. ", userId=" + userId +
  173. ", transNo=" + transNo +
  174. ", status=" + status +
  175. ", amount=" + amount +
  176. ", feeUser=" + feeUser +
  177. ", feePlatform=" + feePlatform +
  178. ", payPlatform=" + payPlatform +
  179. ", description=" + description +
  180. ", comment=" + comment +
  181. ", createTime=" + createTime +
  182. ", modifyTime=" + modifyTime +
  183. "}";
  184. }
  185. }