Pay.java 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import java.util.Date;
  5. import javax.persistence.*;
  6. public class Pay extends MiniserviceBaseModel implements Serializable {
  7. /**
  8. * id
  9. */
  10. @Id
  11. private String id;
  12. /**
  13. * 用户id
  14. */
  15. private String uid;
  16. /**
  17. * 金额
  18. */
  19. private Float amount;
  20. /**
  21. * 交易下单单号(对应支付平台)
  22. */
  23. @Column(name = "platform_order_no")
  24. private String platformOrderNo;
  25. /**
  26. * 交易单号
  27. */
  28. private String transaction;
  29. /**
  30. * 类型,支付类型,0微信,1支付宝
  31. */
  32. private String cat;
  33. /**
  34. * 状态
  35. */
  36. private String status;
  37. /**
  38. * 新增时间
  39. */
  40. @Column(name = "create_time")
  41. private Date createTime;
  42. /**
  43. * 更新时间
  44. */
  45. @Column(name = "update_time")
  46. private Date updateTime;
  47. /**
  48. * 退款金额
  49. */
  50. private Float refund;
  51. /**
  52. * 退款单号
  53. */
  54. @Column(name = "refund_no")
  55. private String refundNo;
  56. /**
  57. * 订单id
  58. */
  59. @Column(name = "order_id")
  60. private String orderId;
  61. /**
  62. * 回调信息
  63. */
  64. @Column(name = "notify_info")
  65. private String notifyInfo;
  66. private static final long serialVersionUID = 1L;
  67. /**
  68. * 获取id
  69. *
  70. * @return id - id
  71. */
  72. public String getId() {
  73. return id;
  74. }
  75. /**
  76. * 设置id
  77. *
  78. * @param id id
  79. */
  80. public void setId(String id) {
  81. this.id = id == null ? null : id.trim();
  82. }
  83. /**
  84. * 获取用户id
  85. *
  86. * @return uid - 用户id
  87. */
  88. public String getUid() {
  89. return uid;
  90. }
  91. /**
  92. * 设置用户id
  93. *
  94. * @param uid 用户id
  95. */
  96. public void setUid(String uid) {
  97. this.uid = uid == null ? null : uid.trim();
  98. }
  99. /**
  100. * 获取金额
  101. *
  102. * @return amount - 金额
  103. */
  104. public Float getAmount() {
  105. return amount;
  106. }
  107. /**
  108. * 设置金额
  109. *
  110. * @param amount 金额
  111. */
  112. public void setAmount(Float amount) {
  113. this.amount = amount;
  114. }
  115. /**
  116. * 获取交易下单单号(对应支付平台)
  117. *
  118. * @return platform_order_no - 交易下单单号(对应支付平台)
  119. */
  120. public String getPlatformOrderNo() {
  121. return platformOrderNo;
  122. }
  123. /**
  124. * 设置交易下单单号(对应支付平台)
  125. *
  126. * @param platformOrderNo 交易下单单号(对应支付平台)
  127. */
  128. public void setPlatformOrderNo(String platformOrderNo) {
  129. this.platformOrderNo = platformOrderNo == null ? null : platformOrderNo.trim();
  130. }
  131. /**
  132. * 获取交易单号
  133. *
  134. * @return transaction - 交易单号
  135. */
  136. public String getTransaction() {
  137. return transaction;
  138. }
  139. /**
  140. * 设置交易单号
  141. *
  142. * @param transaction 交易单号
  143. */
  144. public void setTransaction(String transaction) {
  145. this.transaction = transaction == null ? null : transaction.trim();
  146. }
  147. /**
  148. * 获取类型,支付类型,0微信,1支付宝
  149. *
  150. * @return cat - 类型,支付类型,0微信,1支付宝
  151. */
  152. public String getCat() {
  153. return cat;
  154. }
  155. /**
  156. * 设置类型,支付类型,0微信,1支付宝
  157. *
  158. * @param cat 类型,支付类型,0微信,1支付宝
  159. */
  160. public void setCat(String cat) {
  161. this.cat = cat == null ? null : cat.trim();
  162. }
  163. /**
  164. * 获取状态
  165. *
  166. * @return status - 状态
  167. */
  168. public String getStatus() {
  169. return status;
  170. }
  171. /**
  172. * 设置状态
  173. *
  174. * @param status 状态
  175. */
  176. public void setStatus(String status) {
  177. this.status = status == null ? null : status.trim();
  178. }
  179. /**
  180. * 获取新增时间
  181. *
  182. * @return create_time - 新增时间
  183. */
  184. public Date getCreateTime() {
  185. return createTime;
  186. }
  187. /**
  188. * 设置新增时间
  189. *
  190. * @param createTime 新增时间
  191. */
  192. public void setCreateTime(Date createTime) {
  193. this.createTime = createTime;
  194. }
  195. /**
  196. * 获取更新时间
  197. *
  198. * @return update_time - 更新时间
  199. */
  200. public Date getUpdateTime() {
  201. return updateTime;
  202. }
  203. /**
  204. * 设置更新时间
  205. *
  206. * @param updateTime 更新时间
  207. */
  208. public void setUpdateTime(Date updateTime) {
  209. this.updateTime = updateTime;
  210. }
  211. /**
  212. * 获取退款金额
  213. *
  214. * @return refund - 退款金额
  215. */
  216. public Float getRefund() {
  217. return refund;
  218. }
  219. /**
  220. * 设置退款金额
  221. *
  222. * @param refund 退款金额
  223. */
  224. public void setRefund(Float refund) {
  225. this.refund = refund;
  226. }
  227. /**
  228. * 获取退款单号
  229. *
  230. * @return refund_no - 退款单号
  231. */
  232. public String getRefundNo() {
  233. return refundNo;
  234. }
  235. /**
  236. * 设置退款单号
  237. *
  238. * @param refundNo 退款单号
  239. */
  240. public void setRefundNo(String refundNo) {
  241. this.refundNo = refundNo == null ? null : refundNo.trim();
  242. }
  243. /**
  244. * 获取订单id
  245. *
  246. * @return order_id - 订单id
  247. */
  248. public String getOrderId() {
  249. return orderId;
  250. }
  251. /**
  252. * 设置订单id
  253. *
  254. * @param orderId 订单id
  255. */
  256. public void setOrderId(String orderId) {
  257. this.orderId = orderId == null ? null : orderId.trim();
  258. }
  259. /**
  260. * 获取回调信息
  261. *
  262. * @return notify_info - 回调信息
  263. */
  264. public String getNotifyInfo() {
  265. return notifyInfo;
  266. }
  267. /**
  268. * 设置回调信息
  269. *
  270. * @param notifyInfo 回调信息
  271. */
  272. public void setNotifyInfo(String notifyInfo) {
  273. this.notifyInfo = notifyInfo == null ? null : notifyInfo.trim();
  274. }
  275. }