| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- package com.uas.console.donate.model;
- import javax.persistence.*;
- import java.util.Date;
- /**
- * 活动参加记录
- */
- @Entity
- @Table(name = "donate$activityrecode")
- public class ActivityRecode {
- /**
- * id
- */
- @Id
- @GeneratedValue(strategy= GenerationType.IDENTITY)
- @Column(name = "ar_id")
- private Long id;
- /**
- * 活动编号
- */
- @Column(name = "ar_act_id")
- private Long activityId;
- /**
- * 活动
- */
- @ManyToOne(cascade = CascadeType.REFRESH)
- @JoinColumn(name = "ar_act_id", insertable = false, updatable = false)
- private Activity activity;
- /**
- * 优软云账号
- */
- @Column(name = "ar_uuid")
- private Long uuid;
- /**
- * 用户
- */
- @OneToOne(cascade = CascadeType.REFRESH)
- @JoinColumn(name = "ar_uuid", insertable = false, updatable = false)
- private User user;
- /**
- * 获奖的奖品编号
- */
- @Column(name = "ar_aw_id")
- private Long awardId;
- /**
- * 奖品信息
- */
- @OneToOne(cascade = CascadeType.REFRESH)
- @JoinColumn(name = "ar_aw_id", insertable = false, updatable = false)
- private Award award;
- /**
- * 领取状态 0:初始状态 1:未领取 2:已领取 3:已完成
- */
- @Column(name = "ar_aw_status")
- private Integer status;
- /**
- * 用户参加时间
- */
- @Column(name = "ar_joined_time")
- private Date joinedTime;
- /**
- * 用户领奖时间
- */
- @Column(name = "ar_receive_time")
- private Date receiveTime;
- /**
- * 是否获奖,1代表已获奖
- * @return
- */
- @Column(name = "ar_getaward")
- private Integer isGetAward;
- /**
- * 省
- */
- @Column(name = "ar_province")
- private String province;
- /**
- * 市
- */
- @Column(name = "ar_city")
- private String city;
- /**
- * 区
- */
- @Column(name = "ar_district")
- private String district;
- /**
- * 详细地址
- */
- @Column(name = "ar_address")
- private String address;
- /**
- * 领奖联系电话
- */
- @Column(name = "ar_tel")
- private String tel;
- /**
- * 领奖兑换码(用于短信通知领奖验证)
- */
- @Column(name = "ar_redeemcode")
- private String redeemCode;
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Long getActivityId() {
- return activityId;
- }
- public void setActivityId(Long activityId) {
- this.activityId = activityId;
- }
- public Long getUuid() {
- return uuid;
- }
- public void setUuid(Long uuid) {
- this.uuid = uuid;
- }
- public Long getAwardId() {
- return awardId;
- }
- public void setAwardId(Long awardId) {
- this.awardId = awardId;
- }
- public Award getAward() {
- return award;
- }
- public void setAward(Award award) {
- this.award = award;
- }
- public Integer getStatus() {
- return status;
- }
- public void setStatus(Integer status) {
- this.status = status;
- }
- public Date getReceiveTime() {
- return receiveTime;
- }
- public void setReceiveTime(Date receiveTime) {
- this.receiveTime = receiveTime;
- }
- public Integer getIsGetAward() {
- return isGetAward;
- }
- public void setIsGetAward(Integer isGetAward) {
- this.isGetAward = isGetAward;
- }
- public Activity getActivity() {
- return activity;
- }
- public void setActivity(Activity activity) {
- this.activity = activity;
- }
- public User getUser() {
- return user;
- }
- public void setUser(User user) {
- this.user = user;
- }
- public Date getJoinedTime() {
- return joinedTime;
- }
- public void setJoinedTime(Date joinedTime) {
- this.joinedTime = joinedTime;
- }
- public String getProvince() {
- return province;
- }
- public void setProvince(String province) {
- this.province = province;
- }
- public String getCity() {
- return city;
- }
- public void setCity(String city) {
- this.city = city;
- }
- public String getDistrict() {
- return district;
- }
- public void setDistrict(String district) {
- this.district = district;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- public String getTel() {
- return tel;
- }
- public void setTel(String tel) {
- this.tel = tel;
- }
- public String getRedeemCode() {
- return redeemCode;
- }
- public void setRedeemCode(String redeemCode) {
- this.redeemCode = redeemCode;
- }
- }
|