Commit 0bda1168 authored by 赵啸非's avatar 赵啸非

添加初始值

parent 2512caa0
......@@ -351,21 +351,21 @@ public class DeptEntity extends DeptVo {
public void initAttrValue(){
this.tid = null;
this.tid = "";
this.tname = null;
this.tname = "";
this.name = null;
this.name = "";
this.simpleName = null;
this.simpleName = "";
this.siteId = null;
this.siteId = 0L;
this.deptAbb = null;
this.deptAbb = "";
this.deptTelphone = null;
this.deptTelphone = "";
this.deptNumber = null;
this.deptNumber = "";
this.isAutotable = 1;
......
......@@ -2,279 +2,332 @@ package com.mortals.xhx.module.window.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.window.model.vo.WindowVo;
/**
* 站点部门窗口实体对象
*
* @author zxfei
* @date 2022-01-12
*/
* 站点部门窗口实体对象
*
* @author zxfei
* @date 2022-01-12
*/
public class WindowEntity extends WindowVo {
private static final long serialVersionUID = 1L;
/**
* 站点ID
*/
* 站点ID
*/
private Long siteId;
/**
* 站点名称
*/
* 站点名称
*/
private String siteName;
/**
* 部门ID
*/
* 部门ID
*/
private Long deptId;
/**
* 部门名称
*/
* 部门名称
*/
private String deptName;
/**
* 窗口名称
*/
* 窗口名称
*/
private String name;
/**
* 英语窗口名
*/
* 英语窗口名
*/
private String englishName;
/**
* 区域
*/
* 区域
*/
private String region;
/**
* 英语区域
*/
* 英语区域
*/
private String englishRegion;
/**
* 窗口编号
*/
* 窗口编号
*/
private String fromnum;
/**
* 红旗窗口 (1.是,0.否)
*/
* 红旗窗口 (1.是,0.否)
*/
private Integer hongqi;
/**
* 备注
*/
* 备注
*/
private String summary;
/**
* 楼栋
*/
* 楼栋
*/
private Integer building;
/**
* 楼层
*/
* 楼层
*/
private Integer level;
public WindowEntity() {
}
public WindowEntity(){}
/**
* 获取 站点ID
* @return Long
*/
public Long getSiteId(){
* 获取 站点ID
*
* @return Long
*/
public Long getSiteId() {
return siteId;
}
/**
* 设置 站点ID
* @param siteId
*/
public void setSiteId(Long siteId){
* 设置 站点ID
*
* @param siteId
*/
public void setSiteId(Long siteId) {
this.siteId = siteId;
}
/**
* 获取 站点名称
* @return String
*/
public String getSiteName(){
* 获取 站点名称
*
* @return String
*/
public String getSiteName() {
return siteName;
}
/**
* 设置 站点名称
* @param siteName
*/
public void setSiteName(String siteName){
* 设置 站点名称
*
* @param siteName
*/
public void setSiteName(String siteName) {
this.siteName = siteName;
}
/**
* 获取 部门ID
* @return Long
*/
public Long getDeptId(){
* 获取 部门ID
*
* @return Long
*/
public Long getDeptId() {
return deptId;
}
/**
* 设置 部门ID
* @param deptId
*/
public void setDeptId(Long deptId){
* 设置 部门ID
*
* @param deptId
*/
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
/**
* 获取 部门名称
* @return String
*/
public String getDeptName(){
* 获取 部门名称
*
* @return String
*/
public String getDeptName() {
return deptName;
}
/**
* 设置 部门名称
* @param deptName
*/
public void setDeptName(String deptName){
* 设置 部门名称
*
* @param deptName
*/
public void setDeptName(String deptName) {
this.deptName = deptName;
}
/**
* 获取 窗口名称
* @return String
*/
public String getName(){
* 获取 窗口名称
*
* @return String
*/
public String getName() {
return name;
}
/**
* 设置 窗口名称
* @param name
*/
public void setName(String name){
* 设置 窗口名称
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* 获取 英语窗口名
* @return String
*/
public String getEnglishName(){
* 获取 英语窗口名
*
* @return String
*/
public String getEnglishName() {
return englishName;
}
/**
* 设置 英语窗口名
* @param englishName
*/
public void setEnglishName(String englishName){
* 设置 英语窗口名
*
* @param englishName
*/
public void setEnglishName(String englishName) {
this.englishName = englishName;
}
/**
* 获取 区域
* @return String
*/
public String getRegion(){
* 获取 区域
*
* @return String
*/
public String getRegion() {
return region;
}
/**
* 设置 区域
* @param region
*/
public void setRegion(String region){
* 设置 区域
*
* @param region
*/
public void setRegion(String region) {
this.region = region;
}
/**
* 获取 英语区域
* @return String
*/
public String getEnglishRegion(){
* 获取 英语区域
*
* @return String
*/
public String getEnglishRegion() {
return englishRegion;
}
/**
* 设置 英语区域
* @param englishRegion
*/
public void setEnglishRegion(String englishRegion){
* 设置 英语区域
*
* @param englishRegion
*/
public void setEnglishRegion(String englishRegion) {
this.englishRegion = englishRegion;
}
/**
* 获取 窗口编号
* @return String
*/
public String getFromnum(){
* 获取 窗口编号
*
* @return String
*/
public String getFromnum() {
return fromnum;
}
/**
* 设置 窗口编号
* @param fromnum
*/
public void setFromnum(String fromnum){
* 设置 窗口编号
*
* @param fromnum
*/
public void setFromnum(String fromnum) {
this.fromnum = fromnum;
}
/**
* 获取 红旗窗口 (1.是,0.否)
* @return Integer
*/
public Integer getHongqi(){
* 获取 红旗窗口 (1.是,0.否)
*
* @return Integer
*/
public Integer getHongqi() {
return hongqi;
}
/**
* 设置 红旗窗口 (1.是,0.否)
* @param hongqi
*/
public void setHongqi(Integer hongqi){
* 设置 红旗窗口 (1.是,0.否)
*
* @param hongqi
*/
public void setHongqi(Integer hongqi) {
this.hongqi = hongqi;
}
/**
* 获取 备注
* @return String
*/
public String getSummary(){
* 获取 备注
*
* @return String
*/
public String getSummary() {
return summary;
}
/**
* 设置 备注
* @param summary
*/
public void setSummary(String summary){
* 设置 备注
*
* @param summary
*/
public void setSummary(String summary) {
this.summary = summary;
}
/**
* 获取 楼栋
* @return Integer
*/
public Integer getBuilding(){
* 获取 楼栋
*
* @return Integer
*/
public Integer getBuilding() {
return building;
}
/**
* 设置 楼栋
* @param building
*/
public void setBuilding(Integer building){
* 设置 楼栋
*
* @param building
*/
public void setBuilding(Integer building) {
this.building = building;
}
/**
* 获取 楼层
* @return Integer
*/
public Integer getLevel(){
* 获取 楼层
*
* @return Integer
*/
public Integer getLevel() {
return level;
}
/**
* 设置 楼层
* @param level
*/
public void setLevel(Integer level){
* 设置 楼层
*
* @param level
*/
public void setLevel(Integer level) {
this.level = level;
}
@Override
public int hashCode() {
return this.getId().hashCode();
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof WindowEntity) {
WindowEntity tmp = (WindowEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
return true;
}
}
return false;
}
public String toString(){
public String toString() {
StringBuilder sb = new StringBuilder("");
sb.append(",siteId:").append(getSiteId());
sb.append(",siteName:").append(getSiteName());
......@@ -292,32 +345,32 @@ public class WindowEntity extends WindowVo {
return sb.toString();
}
public void initAttrValue(){
public void initAttrValue() {
this.siteId = null;
this.siteId = 0L;
this.siteName = null;
this.siteName = "";
this.deptId = null;
this.deptId = 0L;
this.deptName = null;
this.deptName = "";
this.name = null;
this.name = "";
this.englishName = null;
this.englishName = "";
this.region = null;
this.region = "";
this.englishRegion = null;
this.englishRegion = "";
this.fromnum = null;
this.fromnum = "";
this.hongqi = 1;
this.hongqi = 1;
this.summary = null;
this.summary = "";
this.building = 1;
this.building = 1;
this.level = 1;
this.level = 1;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment