|
|
@@ -1,9 +1,13 @@
|
|
|
package com.fs.activity.domain;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import java.util.Date;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+import com.fs.common.core.domain.BaseEntity;
|
|
|
import lombok.Data;
|
|
|
|
|
|
/**
|
|
|
@@ -12,7 +16,7 @@ import lombok.Data;
|
|
|
*/
|
|
|
@TableName(value ="acc_work")
|
|
|
@Data
|
|
|
-public class AccWork {
|
|
|
+public class AccWork {
|
|
|
/**
|
|
|
* 主键ID
|
|
|
*/
|
|
|
@@ -89,79 +93,7 @@ public class AccWork {
|
|
|
*/
|
|
|
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;
|
|
|
- }
|
|
|
- AccWork other = (AccWork) that;
|
|
|
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
- && (this.getTeamId() == null ? other.getTeamId() == null : this.getTeamId().equals(other.getTeamId()))
|
|
|
- && (this.getActivityId() == null ? other.getActivityId() == null : this.getActivityId().equals(other.getActivityId()))
|
|
|
- && (this.getWorkName() == null ? other.getWorkName() == null : this.getWorkName().equals(other.getWorkName()))
|
|
|
- && (this.getCoverUrl() == null ? other.getCoverUrl() == null : this.getCoverUrl().equals(other.getCoverUrl()))
|
|
|
- && (this.getVideoUrl() == null ? other.getVideoUrl() == null : this.getVideoUrl().equals(other.getVideoUrl()))
|
|
|
- && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
|
|
|
- && (this.getDuration() == null ? other.getDuration() == null : this.getDuration().equals(other.getDuration()))
|
|
|
- && (this.getVoteCount() == null ? other.getVoteCount() == null : this.getVoteCount().equals(other.getVoteCount()))
|
|
|
- && (this.getViewCount() == null ? other.getViewCount() == null : this.getViewCount().equals(other.getViewCount()))
|
|
|
- && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
- && (this.getAuditRemark() == null ? other.getAuditRemark() == null : this.getAuditRemark().equals(other.getAuditRemark()))
|
|
|
- && (this.getAuditTime() == null ? other.getAuditTime() == null : this.getAuditTime().equals(other.getAuditTime()))
|
|
|
- && (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 + ((getTeamId() == null) ? 0 : getTeamId().hashCode());
|
|
|
- result = prime * result + ((getActivityId() == null) ? 0 : getActivityId().hashCode());
|
|
|
- result = prime * result + ((getWorkName() == null) ? 0 : getWorkName().hashCode());
|
|
|
- result = prime * result + ((getCoverUrl() == null) ? 0 : getCoverUrl().hashCode());
|
|
|
- result = prime * result + ((getVideoUrl() == null) ? 0 : getVideoUrl().hashCode());
|
|
|
- result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
|
|
|
- result = prime * result + ((getDuration() == null) ? 0 : getDuration().hashCode());
|
|
|
- result = prime * result + ((getVoteCount() == null) ? 0 : getVoteCount().hashCode());
|
|
|
- result = prime * result + ((getViewCount() == null) ? 0 : getViewCount().hashCode());
|
|
|
- result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
- result = prime * result + ((getAuditRemark() == null) ? 0 : getAuditRemark().hashCode());
|
|
|
- result = prime * result + ((getAuditTime() == null) ? 0 : getAuditTime().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(", teamId=").append(teamId);
|
|
|
- sb.append(", activityId=").append(activityId);
|
|
|
- sb.append(", workName=").append(workName);
|
|
|
- sb.append(", coverUrl=").append(coverUrl);
|
|
|
- sb.append(", videoUrl=").append(videoUrl);
|
|
|
- sb.append(", description=").append(description);
|
|
|
- sb.append(", duration=").append(duration);
|
|
|
- sb.append(", voteCount=").append(voteCount);
|
|
|
- sb.append(", viewCount=").append(viewCount);
|
|
|
- sb.append(", status=").append(status);
|
|
|
- sb.append(", auditRemark=").append(auditRemark);
|
|
|
- sb.append(", auditTime=").append(auditTime);
|
|
|
- sb.append(", createdAt=").append(createdAt);
|
|
|
- sb.append(", updatedAt=").append(updatedAt);
|
|
|
- sb.append("]");
|
|
|
- return sb.toString();
|
|
|
- }
|
|
|
+ @TableField(exist = false)
|
|
|
+ private Map<String, Object> params;
|
|
|
+
|
|
|
}
|