wangwei 7 years ago
parent
commit
040cef30a3

+ 179 - 177
examcloud-core-basic-dao/src/main/java/cn/com/qmth/examcloud/core/basic/dao/entity/Org.java

@@ -23,160 +23,163 @@ import cn.com.qmth.examcloud.core.basic.dao.enums.OrgType;
  */
 @Entity
 @Table(name = "ecs_core_org")
-public class Org implements JsonSerializable{
-
-    private static final long serialVersionUID = -592353272256492483L;
-
-    @Id
-    @GeneratedValue
-    private Long id;
-    /**
-     * 顶级机构id,无上级时为0;eg.学校即是顶级
-     */
-    @NotNull
-    private Long rootId;
-    /**
-     * 父级机构id,无上级时为0;eg.学习中心的父级为学校
-     */
-    @NotNull
-    private Long parentId;
-
-    private Integer level;
-    
-    @ExcelProperty(name = "机构名称",index = 0)
-    @NotNull
-    private String name;
-    
-    /**
-     * 学习中心代码
-     */
-    @ExcelProperty(name = "机构代码",index = 1)
-    private String code;
-
-    private String logo;
-
-    private String address;
-
-    /**
-     * 可使用的应用模块
-     */
-    private String apps;
-
-    @NotNull
-    private Boolean enable;
-    
-    /**
-     * 联系电话
-     */
-    @ExcelProperty(name = "联系电话",index = 3)
-    private String telphone;
-    /**
-     * 联系人
-     */
-    @ExcelProperty(name = "联系人",index = 2)
-    private String contacts;
-
-    @Temporal(value = TemporalType.DATE)
-    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-    private Date createTime;
-
-    @Temporal(value = TemporalType.DATE)
-    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-    private Date updateTime;
-    
-    /**
-     * 机构类型:学校,启明,印刷
-     */
-    @Enumerated(EnumType.STRING)
-    private OrgType type;
-    
-    /**
-     * 机器数量
-     */
-    private Integer macNumber;
-    
-    /**
-     * 是否提供人员
-     */
-    private Boolean isProvide;
-    
-    /**
-     * 备注
-     */
-    private String remark;
-    
-    /**
-     * 网考端系统名称
-     */
-    private String examSysName;
-    
-    public static long getSerialVersionUID() {
-        return serialVersionUID;
-    }
-
-    public Long getId() {
-        return id;
-    }
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    public Long getRootId() {
-        return rootId;
-    }
-
-    public void setRootId(Long rootId) {
-        this.rootId = rootId;
-    }
-
-    public Long getParentId() {
-        return parentId;
-    }
-
-    public void setParentId(Long parentId) {
-        this.parentId = parentId;
-    }
-
-    public Integer getLevel() {
-        return level;
-    }
-
-    public void setLevel(Integer level) {
-        this.level = level;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public String getLogo() {
-        return logo;
-    }
-
-    public void setLogo(String logo) {
-        this.logo = logo;
-    }
-
-    public String getAddress() {
-        return address;
-    }
-
-    public void setAddress(String address) {
-        this.address = address;
-    }
-
-    public String getApps() {
-        return apps;
-    }
-
-    public void setApps(String apps) {
-        this.apps = apps;
-    }
+public class Org implements JsonSerializable {
+
+	private static final long serialVersionUID = -592353272256492483L;
+
+	@Id
+	@GeneratedValue
+	private Long id;
+
+	/**
+	 * 顶级机构id,无上级时为0; eg.学校即是顶级
+	 */
+	@NotNull
+	private Long rootId;
+
+	/**
+	 * 父级机构id,无上级时为null; eg.学习中心的父级为学校
+	 */
+	@NotNull
+	private Long parentId;
+
+	private Integer level;
+
+	@ExcelProperty(name = "机构名称", index = 0)
+	@NotNull
+	private String name;
+
+	/**
+	 * 学习中心代码
+	 */
+	@ExcelProperty(name = "机构代码", index = 1)
+	private String code;
+
+	private String logo;
+
+	private String address;
+
+	/**
+	 * 可使用的应用模块
+	 */
+	private String apps;
+
+	@NotNull
+	private Boolean enable;
+
+	/**
+	 * 联系电话
+	 */
+	@ExcelProperty(name = "联系电话", index = 3)
+	private String telphone;
+
+	/**
+	 * 联系人
+	 */
+	@ExcelProperty(name = "联系人", index = 2)
+	private String contacts;
+
+	@Temporal(value = TemporalType.DATE)
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	private Date createTime;
+
+	@Temporal(value = TemporalType.DATE)
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	private Date updateTime;
+
+	/**
+	 * 机构类型:学校,启明,印刷
+	 */
+	@Enumerated(EnumType.STRING)
+	private OrgType type;
+
+	/**
+	 * 机器数量
+	 */
+	private Integer macNumber;
+
+	/**
+	 * 是否提供人员
+	 */
+	private Boolean isProvide;
+
+	/**
+	 * 备注
+	 */
+	private String remark;
+
+	/**
+	 * 网考端系统名称
+	 */
+	private String examSysName;
+
+	public static long getSerialVersionUID() {
+		return serialVersionUID;
+	}
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
+	}
+
+	public Long getRootId() {
+		return rootId;
+	}
+
+	public void setRootId(Long rootId) {
+		this.rootId = rootId;
+	}
+
+	public Long getParentId() {
+		return parentId;
+	}
+
+	public void setParentId(Long parentId) {
+		this.parentId = parentId;
+	}
+
+	public Integer getLevel() {
+		return level;
+	}
+
+	public void setLevel(Integer level) {
+		this.level = level;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String getLogo() {
+		return logo;
+	}
+
+	public void setLogo(String logo) {
+		this.logo = logo;
+	}
+
+	public String getAddress() {
+		return address;
+	}
+
+	public void setAddress(String address) {
+		this.address = address;
+	}
+
+	public String getApps() {
+		return apps;
+	}
+
+	public void setApps(String apps) {
+		this.apps = apps;
+	}
 
 	public Boolean getEnable() {
 		return enable;
@@ -187,22 +190,22 @@ public class Org implements JsonSerializable{
 	}
 
 	public Date getCreateTime() {
-        return createTime;
-    }
+		return createTime;
+	}
 
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
 
-    public Date getUpdateTime() {
-        return updateTime;
-    }
+	public Date getUpdateTime() {
+		return updateTime;
+	}
 
-    public void setUpdateTime(Date updateTime) {
-        this.updateTime = updateTime;
-    }
+	public void setUpdateTime(Date updateTime) {
+		this.updateTime = updateTime;
+	}
 
-    public String getCode() {
+	public String getCode() {
 		return code;
 	}
 
@@ -226,7 +229,6 @@ public class Org implements JsonSerializable{
 		this.contacts = contacts;
 	}
 
-
 	public OrgType getType() {
 		return type;
 	}
@@ -234,7 +236,7 @@ public class Org implements JsonSerializable{
 	public void setType(OrgType type) {
 		this.type = type;
 	}
-	
+
 	public Integer getMacNumber() {
 		return macNumber;
 	}
@@ -258,7 +260,7 @@ public class Org implements JsonSerializable{
 	public void setRemark(String remark) {
 		this.remark = remark;
 	}
-	
+
 	public String getExamSysName() {
 		return examSysName;
 	}
@@ -267,13 +269,13 @@ public class Org implements JsonSerializable{
 		this.examSysName = examSysName;
 	}
 
-	public Org(String name, String code, String contacts,String telphone) {
-        this.name = name;
-        this.code = code;
-        this.telphone = telphone;
-        this.contacts = contacts;
-    }
+	public Org(String name, String code, String contacts, String telphone) {
+		this.name = name;
+		this.code = code;
+		this.telphone = telphone;
+		this.contacts = contacts;
+	}
 
-    public Org() {
-    }
+	public Org() {
+	}
 }