|
|
@@ -0,0 +1,209 @@
|
|
|
+package generator.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.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 课程信息表
|
|
|
+ * @TableName course_info
|
|
|
+ */
|
|
|
+@TableName(value ="course_info")
|
|
|
+@Data
|
|
|
+public class CourseInfo {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer gradeInfoId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer schoolType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer subjectId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Date createDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Date updateDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 课程编号
|
|
|
+ */
|
|
|
+ private String code;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 排序
|
|
|
+ */
|
|
|
+ private String sort;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer parentId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private String headImg;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 课程简介
|
|
|
+ */
|
|
|
+ private String represent;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否推荐到系统首页
|
|
|
+ */
|
|
|
+ private Integer recommendIndexFlag;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer studyNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态 (0 下架 1 草稿 2. 已上架)
|
|
|
+ */
|
|
|
+ private Integer status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 评价分数
|
|
|
+ */
|
|
|
+ private BigDecimal valuateMark;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 评论数量
|
|
|
+ */
|
|
|
+ private Integer commentNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 课时数量
|
|
|
+ */
|
|
|
+ private Integer sectionNodeNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 章节数量
|
|
|
+ */
|
|
|
+ private Integer sectionNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 课程发布时间
|
|
|
+ */
|
|
|
+ private Date pushTime;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ CourseInfo other = (CourseInfo) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
|
|
+ && (this.getGradeInfoId() == null ? other.getGradeInfoId() == null : this.getGradeInfoId().equals(other.getGradeInfoId()))
|
|
|
+ && (this.getSchoolType() == null ? other.getSchoolType() == null : this.getSchoolType().equals(other.getSchoolType()))
|
|
|
+ && (this.getSubjectId() == null ? other.getSubjectId() == null : this.getSubjectId().equals(other.getSubjectId()))
|
|
|
+ && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
|
|
|
+ && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
|
|
|
+ && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
|
|
|
+ && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
|
|
|
+ && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
|
|
|
+ && (this.getHeadImg() == null ? other.getHeadImg() == null : this.getHeadImg().equals(other.getHeadImg()))
|
|
|
+ && (this.getRepresent() == null ? other.getRepresent() == null : this.getRepresent().equals(other.getRepresent()))
|
|
|
+ && (this.getRecommendIndexFlag() == null ? other.getRecommendIndexFlag() == null : this.getRecommendIndexFlag().equals(other.getRecommendIndexFlag()))
|
|
|
+ && (this.getStudyNumber() == null ? other.getStudyNumber() == null : this.getStudyNumber().equals(other.getStudyNumber()))
|
|
|
+ && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
+ && (this.getValuateMark() == null ? other.getValuateMark() == null : this.getValuateMark().equals(other.getValuateMark()))
|
|
|
+ && (this.getCommentNumber() == null ? other.getCommentNumber() == null : this.getCommentNumber().equals(other.getCommentNumber()))
|
|
|
+ && (this.getSectionNodeNumber() == null ? other.getSectionNodeNumber() == null : this.getSectionNodeNumber().equals(other.getSectionNodeNumber()))
|
|
|
+ && (this.getSectionNumber() == null ? other.getSectionNumber() == null : this.getSectionNumber().equals(other.getSectionNumber()))
|
|
|
+ && (this.getPushTime() == null ? other.getPushTime() == null : this.getPushTime().equals(other.getPushTime()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
|
|
+ result = prime * result + ((getGradeInfoId() == null) ? 0 : getGradeInfoId().hashCode());
|
|
|
+ result = prime * result + ((getSchoolType() == null) ? 0 : getSchoolType().hashCode());
|
|
|
+ result = prime * result + ((getSubjectId() == null) ? 0 : getSubjectId().hashCode());
|
|
|
+ result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
|
|
|
+ result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
|
|
|
+ result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
|
|
|
+ result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
|
|
|
+ result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
|
|
|
+ result = prime * result + ((getHeadImg() == null) ? 0 : getHeadImg().hashCode());
|
|
|
+ result = prime * result + ((getRepresent() == null) ? 0 : getRepresent().hashCode());
|
|
|
+ result = prime * result + ((getRecommendIndexFlag() == null) ? 0 : getRecommendIndexFlag().hashCode());
|
|
|
+ result = prime * result + ((getStudyNumber() == null) ? 0 : getStudyNumber().hashCode());
|
|
|
+ result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
+ result = prime * result + ((getValuateMark() == null) ? 0 : getValuateMark().hashCode());
|
|
|
+ result = prime * result + ((getCommentNumber() == null) ? 0 : getCommentNumber().hashCode());
|
|
|
+ result = prime * result + ((getSectionNodeNumber() == null) ? 0 : getSectionNodeNumber().hashCode());
|
|
|
+ result = prime * result + ((getSectionNumber() == null) ? 0 : getSectionNumber().hashCode());
|
|
|
+ result = prime * result + ((getPushTime() == null) ? 0 : getPushTime().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(", name=").append(name);
|
|
|
+ sb.append(", gradeInfoId=").append(gradeInfoId);
|
|
|
+ sb.append(", schoolType=").append(schoolType);
|
|
|
+ sb.append(", subjectId=").append(subjectId);
|
|
|
+ sb.append(", createDate=").append(createDate);
|
|
|
+ sb.append(", updateDate=").append(updateDate);
|
|
|
+ sb.append(", code=").append(code);
|
|
|
+ sb.append(", sort=").append(sort);
|
|
|
+ sb.append(", parentId=").append(parentId);
|
|
|
+ sb.append(", headImg=").append(headImg);
|
|
|
+ sb.append(", represent=").append(represent);
|
|
|
+ sb.append(", recommendIndexFlag=").append(recommendIndexFlag);
|
|
|
+ sb.append(", studyNumber=").append(studyNumber);
|
|
|
+ sb.append(", status=").append(status);
|
|
|
+ sb.append(", valuateMark=").append(valuateMark);
|
|
|
+ sb.append(", commentNumber=").append(commentNumber);
|
|
|
+ sb.append(", sectionNodeNumber=").append(sectionNodeNumber);
|
|
|
+ sb.append(", sectionNumber=").append(sectionNumber);
|
|
|
+ sb.append(", pushTime=").append(pushTime);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|