MemberOrder.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. package com.goafanti.common.model;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  6. import com.goafanti.common.constant.AFTConstants;
  7. public class MemberOrder {
  8. private Long id;
  9. /**
  10. * 付费会员类型
  11. */
  12. private Integer menberType;
  13. /**
  14. * 价格
  15. */
  16. private Double price;
  17. /**
  18. * 会员月类型
  19. */
  20. private Integer validMonth;
  21. /**
  22. * 付款状态 0:未付款 1:已付款
  23. */
  24. private Integer orderState;
  25. /**
  26. * 下单时间
  27. */
  28. private Date orderTime;
  29. /**
  30. * 用户ID 外键
  31. */
  32. private String userId;
  33. /**
  34. * 支付时间
  35. */
  36. private Date paymentTime;
  37. /**
  38. * 实际支付金额
  39. */
  40. private Double paymentValue;
  41. /**
  42. * 支付方式
  43. */
  44. private String paymentType;
  45. /**
  46. * 支付流水号
  47. */
  48. private String paymentId;
  49. /**
  50. * 有效时间
  51. */
  52. private Date validTime;
  53. // 会员类型名称
  54. private String gradeName;
  55. // 手机登录号
  56. private String mobile;
  57. // 昵称
  58. private String nickname;
  59. public String getMobile() {
  60. return mobile;
  61. }
  62. public void setMobile(String mobile) {
  63. this.mobile = mobile;
  64. }
  65. public String getNickname() {
  66. return nickname;
  67. }
  68. public void setNickname(String nickname) {
  69. this.nickname = nickname;
  70. }
  71. public String getGradeName() {
  72. return gradeName;
  73. }
  74. public void setGradeName(String gradeName) {
  75. this.gradeName = gradeName;
  76. }
  77. @JsonFormat(shape = Shape.STRING)
  78. public Long getId() {
  79. return id;
  80. }
  81. public void setId(Long id) {
  82. this.id = id;
  83. }
  84. public Integer getMenberType() {
  85. return menberType;
  86. }
  87. public void setMenberType(Integer menberType) {
  88. this.menberType = menberType;
  89. }
  90. public Double getPrice() {
  91. return price;
  92. }
  93. public void setPrice(Double price) {
  94. this.price = price;
  95. }
  96. public Integer getValidMonth() {
  97. return validMonth;
  98. }
  99. public void setValidMonth(Integer validMonth) {
  100. this.validMonth = validMonth;
  101. }
  102. public Integer getOrderState() {
  103. return orderState;
  104. }
  105. public void setOrderState(Integer orderState) {
  106. this.orderState = orderState;
  107. }
  108. public Date getOrderTime() {
  109. return orderTime;
  110. }
  111. public void setOrderTime(Date orderTime) {
  112. this.orderTime = orderTime;
  113. }
  114. public String getUserId() {
  115. return userId;
  116. }
  117. public void setUserId(String userId) {
  118. this.userId = userId;
  119. }
  120. public Date getPaymentTime() {
  121. return paymentTime;
  122. }
  123. public void setPaymentTime(Date paymentTime) {
  124. this.paymentTime = paymentTime;
  125. }
  126. public Double getPaymentValue() {
  127. return paymentValue;
  128. }
  129. public void setPaymentValue(Double paymentValue) {
  130. this.paymentValue = paymentValue;
  131. }
  132. public String getPaymentType() {
  133. return paymentType;
  134. }
  135. public void setPaymentType(String paymentType) {
  136. this.paymentType = paymentType;
  137. }
  138. public String getPaymentId() {
  139. return paymentId;
  140. }
  141. public void setPaymentId(String paymentId) {
  142. this.paymentId = paymentId;
  143. }
  144. public Date getValidTime() {
  145. return validTime;
  146. }
  147. public void setValidTime(Date validTime) {
  148. this.validTime = validTime;
  149. }
  150. // 下单时间转换
  151. public String getFormattedOrderTime() {
  152. if (this.orderTime == null) {
  153. return null;
  154. } else {
  155. return DateFormatUtils.format(this.orderTime, AFTConstants.YYYYMMDD);
  156. }
  157. }
  158. public void setFormattedOrderTime(String formattedOrderTime) {
  159. }
  160. //
  161. public String getFormattedPaymentTime() {
  162. if (this.paymentTime == null) {
  163. return null;
  164. } else {
  165. return DateFormatUtils.format(this.paymentTime, AFTConstants.YYYYMMDD);
  166. }
  167. }
  168. public void setFormattedPaymentTime(String formattedPaymentTime) {
  169. }
  170. //
  171. public String getFormattedValidTime() {
  172. if (this.validTime == null) {
  173. return null;
  174. } else {
  175. return DateFormatUtils.format(this.validTime, AFTConstants.YYYYMMDD);
  176. }
  177. }
  178. public void setFormattedValidTime(String formattedValidTime) {
  179. }
  180. }