|
@@ -0,0 +1,159 @@
|
|
|
+package com.yaoxiang.diagnosis.entity;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import org.hibernate.annotations.CreationTimestamp;
|
|
|
+import org.hibernate.annotations.UpdateTimestamp;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+@Entity
|
|
|
+@ApiModel("自习室")
|
|
|
+public class LearnRoom {
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @ApiModelProperty("编号")
|
|
|
+ private String code;
|
|
|
+
|
|
|
+ @ApiModelProperty("名称")
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @ApiModelProperty("类型 自定义个人 个人 自定义小组 小组 ")
|
|
|
+ private String type;
|
|
|
+
|
|
|
+ @ApiModelProperty("标签,用,隔开")
|
|
|
+ private String labels;
|
|
|
+
|
|
|
+ @ApiModelProperty("年级 1-12 X-Y 1X表示1年级上")
|
|
|
+ private String grade;
|
|
|
+
|
|
|
+ @ApiModelProperty("学科Id")
|
|
|
+ private Long subjectId;
|
|
|
+
|
|
|
+ @ApiModelProperty("行政区划")
|
|
|
+ private String division;
|
|
|
+
|
|
|
+ @ApiModelProperty("座位数量")
|
|
|
+ private Integer num;
|
|
|
+
|
|
|
+ @ApiModelProperty("公开的")
|
|
|
+ private Boolean opened;
|
|
|
+
|
|
|
+ @ApiModelProperty("状态")
|
|
|
+ private String status;
|
|
|
+
|
|
|
+ @CreationTimestamp
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Date createtime;
|
|
|
+ @UpdateTimestamp
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Date updatetime;
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCode() {
|
|
|
+ return code;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCode(String code) {
|
|
|
+ this.code = code;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getType() {
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setType(String type) {
|
|
|
+ this.type = type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getLabels() {
|
|
|
+ return labels;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLabels(String labels) {
|
|
|
+ this.labels = labels;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getGrade() {
|
|
|
+ return grade;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGrade(String grade) {
|
|
|
+ this.grade = grade;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getSubjectId() {
|
|
|
+ return subjectId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSubjectId(Long subjectId) {
|
|
|
+ this.subjectId = subjectId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDivision() {
|
|
|
+ return division;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDivision(String division) {
|
|
|
+ this.division = division;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getNum() {
|
|
|
+ return num;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNum(Integer num) {
|
|
|
+ this.num = num;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Boolean getOpened() {
|
|
|
+ return opened;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOpened(Boolean opened) {
|
|
|
+ this.opened = opened;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getStatus() {
|
|
|
+ return status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStatus(String status) {
|
|
|
+ this.status = status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getCreatetime() {
|
|
|
+ return createtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreatetime(Date createtime) {
|
|
|
+ this.createtime = createtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getUpdatetime() {
|
|
|
+ return updatetime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdatetime(Date updatetime) {
|
|
|
+ this.updatetime = updatetime;
|
|
|
+ }
|
|
|
+}
|