|
|
@@ -14,6 +14,7 @@ public class Activity implements Serializable{
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd HH:mm");
|
|
|
|
|
|
+
|
|
|
@Id
|
|
|
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
|
|
@Column(name="act_id")
|
|
|
@@ -41,19 +42,31 @@ public class Activity implements Serializable{
|
|
|
* 开始时间
|
|
|
*/
|
|
|
@Column(name="act_start_time")
|
|
|
- private String startTime;
|
|
|
+ private Date startTime;
|
|
|
|
|
|
/**
|
|
|
* 结束时间
|
|
|
*/
|
|
|
@Column(name="act_end_time")
|
|
|
- private String endTime;
|
|
|
+ private Date endTime;
|
|
|
|
|
|
/**
|
|
|
* 开奖日期
|
|
|
*/
|
|
|
@Column(name="act_lucky_time")
|
|
|
- private String luckyTime;
|
|
|
+ private Date luckyTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 兑奖开始时间
|
|
|
+ */
|
|
|
+ @Column(name="act_receive_start")
|
|
|
+ private Date receiveStartTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 兑奖结束时间
|
|
|
+ */
|
|
|
+ @Column(name="act_receive_end")
|
|
|
+ private Date receiveEndTime;
|
|
|
|
|
|
/**
|
|
|
* 活动提交人
|
|
|
@@ -70,10 +83,10 @@ public class Activity implements Serializable{
|
|
|
private Date submitTime;
|
|
|
|
|
|
/**
|
|
|
- * stutus 1:已保存 2:已发布
|
|
|
+ * 是否发布,1:草稿 2:发布
|
|
|
*/
|
|
|
- @Column(name="act_status")
|
|
|
- private Integer status;
|
|
|
+ @Column(name="act_publish")
|
|
|
+ private Integer publish;
|
|
|
|
|
|
/**
|
|
|
* 活动优先级
|
|
|
@@ -81,6 +94,45 @@ public class Activity implements Serializable{
|
|
|
@Column(name="act_priority")
|
|
|
private Integer priority;
|
|
|
|
|
|
+ /**
|
|
|
+ * 活动中奖人数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Column(name="act_lucky_person")
|
|
|
+ private Integer luckyPerson;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动领奖人数
|
|
|
+ */
|
|
|
+ @Column(name = "act_receive_person")
|
|
|
+ private Integer receivePerson;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 已筹集善款
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Column(name="act_amount")
|
|
|
+ private Long amount;
|
|
|
+ /**
|
|
|
+ * 相关项目数
|
|
|
+ */
|
|
|
+ @Column(name = "act_connect_project")
|
|
|
+ private Integer sumconnect;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动中奖概率
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Column(name = "act_chance")
|
|
|
+ private Double chance;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动缩略图
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Column(name = "act_img")
|
|
|
+ private String actImg;
|
|
|
+
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
|
@@ -90,7 +142,8 @@ public class Activity implements Serializable{
|
|
|
}
|
|
|
|
|
|
public String getCode() {
|
|
|
- return code;
|
|
|
+ Date date=new Date();
|
|
|
+ return date!=null?sdf.format(date):null;
|
|
|
}
|
|
|
|
|
|
public void setCode(String code) {
|
|
|
@@ -113,14 +166,51 @@ public class Activity implements Serializable{
|
|
|
this.summary = summary;
|
|
|
}
|
|
|
|
|
|
+ public String getStartTime() {
|
|
|
+ Date date=this.startTime;
|
|
|
+ return date!=null?sdf.format(this.startTime):null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStartTime(Date startTime) {
|
|
|
+ this.startTime = startTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getEndTime() {
|
|
|
+ Date date=this.endTime;
|
|
|
+ return date!=null?sdf.format(this.endTime):null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEndTime(Date endTime) {
|
|
|
+ this.endTime = endTime;
|
|
|
+ }
|
|
|
+
|
|
|
public String getLuckyTime() {
|
|
|
- return luckyTime;
|
|
|
+ Date date=this.luckyTime;
|
|
|
+ return date!=null?sdf.format(this.luckyTime):null;
|
|
|
}
|
|
|
|
|
|
- public void setLuckyTime(String luckyTime) {
|
|
|
+ public void setLuckyTime(Date luckyTime) {
|
|
|
this.luckyTime = luckyTime;
|
|
|
}
|
|
|
|
|
|
+ public String getReceiveStartTime() {
|
|
|
+ Date date=this.receiveStartTime;
|
|
|
+ return date!=null?sdf.format(this.receiveStartTime):null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReceiveStartTime(Date receiveStartTime) {
|
|
|
+ this.receiveStartTime = receiveStartTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getReceiveEndTime() {
|
|
|
+ Date date=this.receiveEndTime;
|
|
|
+ return date!=null?sdf.format(this.receiveEndTime):null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReceiveEndTime(Date receiveEndTime) {
|
|
|
+ this.receiveEndTime = receiveEndTime;
|
|
|
+ }
|
|
|
+
|
|
|
public String getPerson() {
|
|
|
return person;
|
|
|
}
|
|
|
@@ -129,55 +219,79 @@ public class Activity implements Serializable{
|
|
|
this.person = person;
|
|
|
}
|
|
|
|
|
|
+ public String getSubmitTime() {
|
|
|
+ Date date=this.submitTime;
|
|
|
+ return date!=null?sdf.format(this.submitTime):null;
|
|
|
+ }
|
|
|
|
|
|
- public String getStartTime() {
|
|
|
- return startTime;
|
|
|
+ public void setSubmitTime(Date submitTime) {
|
|
|
+ this.submitTime = submitTime;
|
|
|
}
|
|
|
|
|
|
- public void setStartTime(String startTime) {
|
|
|
+ public Integer getPublish() {
|
|
|
+ return publish;
|
|
|
+ }
|
|
|
|
|
|
- this.startTime = startTime;
|
|
|
+ public void setPublish(Integer publish) {
|
|
|
+ this.publish = publish;
|
|
|
}
|
|
|
|
|
|
- public String getEndTime() {
|
|
|
- return endTime;
|
|
|
+ public Integer getPriority() {
|
|
|
+ return priority;
|
|
|
}
|
|
|
|
|
|
- public void setEndTime(String endTime) {
|
|
|
- this.endTime = endTime;
|
|
|
+ public void setPriority(Integer priority) {
|
|
|
+ this.priority = priority;
|
|
|
}
|
|
|
|
|
|
- public String getSubmitTime() {
|
|
|
- Date date = this.submitTime;
|
|
|
- return date != null ? sdf.format(this.submitTime) : null;
|
|
|
+ public Integer getLuckyPerson() {
|
|
|
+ return luckyPerson;
|
|
|
}
|
|
|
|
|
|
- public void setSubmitTime(Date submitTime) {
|
|
|
- this.submitTime = submitTime;
|
|
|
+ public void setLuckyPerson(Integer luckyPerson) {
|
|
|
+ this.luckyPerson = luckyPerson;
|
|
|
}
|
|
|
|
|
|
- public Integer getStatus() {
|
|
|
- return status;
|
|
|
+ public Integer getReceivePerson() {
|
|
|
+ return receivePerson;
|
|
|
}
|
|
|
|
|
|
- public void setStatus(Integer status) {
|
|
|
- this.status = status;
|
|
|
+ public void setReceivePerson(Integer receivePerson) {
|
|
|
+ this.receivePerson = receivePerson;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public String toString() {
|
|
|
- return "Activity{" +
|
|
|
- "id=" + id +
|
|
|
- ", code='" + code + '\'' +
|
|
|
- ", name='" + name + '\'' +
|
|
|
- ", summary='" + summary + '\'' +
|
|
|
- ", startTime='" + startTime + '\'' +
|
|
|
- ", endTime='" + endTime + '\'' +
|
|
|
- ", luckyTime='" + luckyTime + '\'' +
|
|
|
- ", person='" + person + '\'' +
|
|
|
- ", submitTime=" + submitTime +
|
|
|
- '}';
|
|
|
+ public Long getAmount() {
|
|
|
+ return amount;
|
|
|
}
|
|
|
+
|
|
|
+ public void setAmount(Long amount) {
|
|
|
+ this.amount = amount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSumconnect() {
|
|
|
+ return sumconnect;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSumconnect(Integer sumconnect) {
|
|
|
+ this.sumconnect = sumconnect;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getChance() {
|
|
|
+ return chance;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setChance(Double chance) {
|
|
|
+ this.chance = chance;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getActImg() {
|
|
|
+ return actImg;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setActImg(String actImg) {
|
|
|
+ this.actImg = actImg;
|
|
|
+ }
|
|
|
+
|
|
|
@Transient
|
|
|
private List<Award> awards;
|
|
|
|
|
|
@@ -189,11 +303,15 @@ public class Activity implements Serializable{
|
|
|
this.awards = awards;
|
|
|
}
|
|
|
|
|
|
- public Integer getPriority() {
|
|
|
- return priority;
|
|
|
+ @Transient
|
|
|
+ private List<ProjectQualification> projectQualificationList;
|
|
|
+
|
|
|
+ public List<ProjectQualification> getProjectQualificationList() {
|
|
|
+ return projectQualificationList;
|
|
|
}
|
|
|
|
|
|
- public void setPriority(Integer priority) {
|
|
|
- this.priority = priority;
|
|
|
+ public void setProjectQualificationList(List<ProjectQualification> projectQualificationList) {
|
|
|
+ this.projectQualificationList = projectQualificationList;
|
|
|
}
|
|
|
+
|
|
|
}
|