ActivityRecode.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. package com.uas.console.donate.model;
  2. import javax.persistence.*;
  3. import java.util.Date;
  4. /**
  5. * 活动参加记录
  6. */
  7. @Entity
  8. @Table(name = "donate$activityrecode")
  9. public class ActivityRecode {
  10. /**
  11. * id
  12. */
  13. @Id
  14. @GeneratedValue(strategy= GenerationType.IDENTITY)
  15. @Column(name = "ar_id")
  16. private Long id;
  17. /**
  18. * 活动编号
  19. */
  20. @Column(name = "ar_act_id")
  21. private Long activityId;
  22. /**
  23. * 活动
  24. */
  25. @ManyToOne(cascade = CascadeType.REFRESH)
  26. @JoinColumn(name = "ar_act_id", insertable = false, updatable = false)
  27. private Activity activity;
  28. /**
  29. * 优软云账号
  30. */
  31. @Column(name = "ar_uuid")
  32. private Long uuid;
  33. /**
  34. * 用户
  35. */
  36. @OneToOne(cascade = CascadeType.REFRESH)
  37. @JoinColumn(name = "ar_uuid", insertable = false, updatable = false)
  38. private User user;
  39. /**
  40. * 获奖的奖品编号
  41. */
  42. @Column(name = "ar_aw_id")
  43. private Long awardId;
  44. /**
  45. * 奖品信息
  46. */
  47. @OneToOne(cascade = CascadeType.REFRESH)
  48. @JoinColumn(name = "ar_aw_id", insertable = false, updatable = false)
  49. private Award award;
  50. /**
  51. * 领取状态 0:初始状态 1:未领取 2:已领取 3:已完成
  52. */
  53. @Column(name = "ar_aw_status")
  54. private Integer status;
  55. /**
  56. * 用户参加时间
  57. */
  58. @Column(name = "ar_joined_time")
  59. private Date joinedTime;
  60. /**
  61. * 用户领奖时间
  62. */
  63. @Column(name = "ar_receive_time")
  64. private Date receiveTime;
  65. /**
  66. * 是否获奖,1代表已获奖
  67. * @return
  68. */
  69. @Column(name = "ar_getaward")
  70. private Integer isGetAward;
  71. /**
  72. * 省
  73. */
  74. @Column(name = "ar_province")
  75. private String province;
  76. /**
  77. * 市
  78. */
  79. @Column(name = "ar_city")
  80. private String city;
  81. /**
  82. * 区
  83. */
  84. @Column(name = "ar_district")
  85. private String district;
  86. /**
  87. * 详细地址
  88. */
  89. @Column(name = "ar_address")
  90. private String address;
  91. /**
  92. * 领奖联系电话
  93. */
  94. @Column(name = "ar_tel")
  95. private String tel;
  96. /**
  97. * 领奖兑换码(用于短信通知领奖验证)
  98. */
  99. @Column(name = "ar_redeemcode")
  100. private String redeemCode;
  101. public Long getId() {
  102. return id;
  103. }
  104. public void setId(Long id) {
  105. this.id = id;
  106. }
  107. public Long getActivityId() {
  108. return activityId;
  109. }
  110. public void setActivityId(Long activityId) {
  111. this.activityId = activityId;
  112. }
  113. public Long getUuid() {
  114. return uuid;
  115. }
  116. public void setUuid(Long uuid) {
  117. this.uuid = uuid;
  118. }
  119. public Long getAwardId() {
  120. return awardId;
  121. }
  122. public void setAwardId(Long awardId) {
  123. this.awardId = awardId;
  124. }
  125. public Award getAward() {
  126. return award;
  127. }
  128. public void setAward(Award award) {
  129. this.award = award;
  130. }
  131. public Integer getStatus() {
  132. return status;
  133. }
  134. public void setStatus(Integer status) {
  135. this.status = status;
  136. }
  137. public Date getReceiveTime() {
  138. return receiveTime;
  139. }
  140. public void setReceiveTime(Date receiveTime) {
  141. this.receiveTime = receiveTime;
  142. }
  143. public Integer getIsGetAward() {
  144. return isGetAward;
  145. }
  146. public void setIsGetAward(Integer isGetAward) {
  147. this.isGetAward = isGetAward;
  148. }
  149. public Activity getActivity() {
  150. return activity;
  151. }
  152. public void setActivity(Activity activity) {
  153. this.activity = activity;
  154. }
  155. public User getUser() {
  156. return user;
  157. }
  158. public void setUser(User user) {
  159. this.user = user;
  160. }
  161. public Date getJoinedTime() {
  162. return joinedTime;
  163. }
  164. public void setJoinedTime(Date joinedTime) {
  165. this.joinedTime = joinedTime;
  166. }
  167. public String getProvince() {
  168. return province;
  169. }
  170. public void setProvince(String province) {
  171. this.province = province;
  172. }
  173. public String getCity() {
  174. return city;
  175. }
  176. public void setCity(String city) {
  177. this.city = city;
  178. }
  179. public String getDistrict() {
  180. return district;
  181. }
  182. public void setDistrict(String district) {
  183. this.district = district;
  184. }
  185. public String getAddress() {
  186. return address;
  187. }
  188. public void setAddress(String address) {
  189. this.address = address;
  190. }
  191. public String getTel() {
  192. return tel;
  193. }
  194. public void setTel(String tel) {
  195. this.tel = tel;
  196. }
  197. public String getRedeemCode() {
  198. return redeemCode;
  199. }
  200. public void setRedeemCode(String redeemCode) {
  201. this.redeemCode = redeemCode;
  202. }
  203. }