|
|
@@ -0,0 +1,167 @@
|
|
|
+package com.fs.activity.domain;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.util.Date;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 活动表
|
|
|
+ * @TableName acc_activity
|
|
|
+ */
|
|
|
+@TableName(value ="acc_activity")
|
|
|
+@Data
|
|
|
+public class AccActivity {
|
|
|
+ /**
|
|
|
+ * 主键ID
|
|
|
+ */
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动标题
|
|
|
+ */
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 封面图URL
|
|
|
+ */
|
|
|
+ private String coverUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动描述
|
|
|
+ */
|
|
|
+ private String description;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报名开始时间
|
|
|
+ */
|
|
|
+ private Date registrationStartTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报名结束时间
|
|
|
+ */
|
|
|
+ private Date registrationEndTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动开始时间
|
|
|
+ */
|
|
|
+ private Date activityStartTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动结束时间
|
|
|
+ */
|
|
|
+ private Date activityEndTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动地点
|
|
|
+ */
|
|
|
+ private String location;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 活动规则
|
|
|
+ */
|
|
|
+ private String rules;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 奖项设置
|
|
|
+ */
|
|
|
+ private String awards;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态:0-草稿 1-进行中 2-已结束 3-已关闭
|
|
|
+ */
|
|
|
+ private Integer status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建人
|
|
|
+ */
|
|
|
+ private Long createdBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Date createdAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Date updatedAt;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ AccActivity other = (AccActivity) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
|
|
|
+ && (this.getCoverUrl() == null ? other.getCoverUrl() == null : this.getCoverUrl().equals(other.getCoverUrl()))
|
|
|
+ && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
|
|
|
+ && (this.getRegistrationStartTime() == null ? other.getRegistrationStartTime() == null : this.getRegistrationStartTime().equals(other.getRegistrationStartTime()))
|
|
|
+ && (this.getRegistrationEndTime() == null ? other.getRegistrationEndTime() == null : this.getRegistrationEndTime().equals(other.getRegistrationEndTime()))
|
|
|
+ && (this.getActivityStartTime() == null ? other.getActivityStartTime() == null : this.getActivityStartTime().equals(other.getActivityStartTime()))
|
|
|
+ && (this.getActivityEndTime() == null ? other.getActivityEndTime() == null : this.getActivityEndTime().equals(other.getActivityEndTime()))
|
|
|
+ && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
|
|
|
+ && (this.getRules() == null ? other.getRules() == null : this.getRules().equals(other.getRules()))
|
|
|
+ && (this.getAwards() == null ? other.getAwards() == null : this.getAwards().equals(other.getAwards()))
|
|
|
+ && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
+ && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
|
|
|
+ && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
|
|
|
+ && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
|
|
|
+ result = prime * result + ((getCoverUrl() == null) ? 0 : getCoverUrl().hashCode());
|
|
|
+ result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
|
|
+ result = prime * result + ((getRegistrationStartTime() == null) ? 0 : getRegistrationStartTime().hashCode());
|
|
|
+ result = prime * result + ((getRegistrationEndTime() == null) ? 0 : getRegistrationEndTime().hashCode());
|
|
|
+ result = prime * result + ((getActivityStartTime() == null) ? 0 : getActivityStartTime().hashCode());
|
|
|
+ result = prime * result + ((getActivityEndTime() == null) ? 0 : getActivityEndTime().hashCode());
|
|
|
+ result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
|
|
|
+ result = prime * result + ((getRules() == null) ? 0 : getRules().hashCode());
|
|
|
+ result = prime * result + ((getAwards() == null) ? 0 : getAwards().hashCode());
|
|
|
+ result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
+ result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
|
|
|
+ result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
|
|
|
+ result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", title=").append(title);
|
|
|
+ sb.append(", coverUrl=").append(coverUrl);
|
|
|
+ sb.append(", description=").append(description);
|
|
|
+ sb.append(", registrationStartTime=").append(registrationStartTime);
|
|
|
+ sb.append(", registrationEndTime=").append(registrationEndTime);
|
|
|
+ sb.append(", activityStartTime=").append(activityStartTime);
|
|
|
+ sb.append(", activityEndTime=").append(activityEndTime);
|
|
|
+ sb.append(", location=").append(location);
|
|
|
+ sb.append(", rules=").append(rules);
|
|
|
+ sb.append(", awards=").append(awards);
|
|
|
+ sb.append(", status=").append(status);
|
|
|
+ sb.append(", createdBy=").append(createdBy);
|
|
|
+ sb.append(", createdAt=").append(createdAt);
|
|
|
+ sb.append(", updatedAt=").append(updatedAt);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|