package com.ltkj.common.core.domain.entity;
|
|
import java.util.ArrayList;
|
import java.util.Date;
|
import java.util.List;
|
import javax.validation.constraints.Email;
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Size;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.ltkj.common.annotation.Excel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.AllArgsConstructor;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
import com.ltkj.common.core.domain.BaseEntity;
|
|
/**
|
* 部门表 sys_dept
|
*
|
* @author ruoyi
|
*/
|
|
@AllArgsConstructor
|
@NoArgsConstructor
|
@Data
|
public class SysDept extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 部门ID
|
*/
|
@TableId
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long deptId;
|
|
/**
|
* 父部门ID
|
*/
|
private Long parentId;
|
|
/**
|
* 祖级列表
|
*/
|
private String ancestors;
|
|
/**
|
* 部门名称
|
*/
|
private String deptName;
|
|
/**
|
* 显示顺序
|
*/
|
private Integer orderNum;
|
|
/**
|
* 负责人
|
*/
|
private String leader;
|
|
/**
|
* 联系电话
|
*/
|
private String phone;
|
|
/**
|
* 邮箱
|
*/
|
private String email;
|
|
/**
|
* 部门状态:0正常,1停用
|
*/
|
private String status;
|
//新添加属性
|
/**
|
* 科室英文名称
|
*/
|
private String departmentEnName;
|
|
/**
|
* 组织类型(PT10.06.17)
|
* 1检验 2 检查 3常规处置
|
*/
|
private String orgType;
|
|
/**
|
* 科室编码
|
*/
|
private String departmentCode;
|
|
/**
|
* 上级组织id
|
*/
|
private String parentOrgId;
|
|
/**
|
* 上级组织名称
|
*/
|
private String parentOrgName;
|
|
/**
|
* 上级组织编码
|
*/
|
private String parentOrgCode;
|
|
/**
|
* 上级组织类型(PT10.06.17)
|
*/
|
private String parentOrgType;
|
|
/**
|
* 医疗机构ID
|
*/
|
private String hospId;
|
|
/**
|
* 医疗机构编码
|
*/
|
private String hospCode;
|
|
/**
|
* 医疗机构名称
|
*/
|
private String hospName;
|
|
/**
|
* 联系人
|
*/
|
private String contactPerson;
|
|
/**
|
* 联系人电话
|
*/
|
private String contactPhone;
|
|
/**
|
* 邮政编码
|
*/
|
@Excel(name = "邮政编码")
|
private String postalCode;
|
|
/**
|
* 官网
|
*/
|
private String officialWeb;
|
|
/**
|
* 编制床位数
|
*/
|
private Long plaitBed;
|
|
/**
|
* 开放床位数
|
*/
|
private Long openBed;
|
|
/**
|
* 建立日期
|
*/
|
private Date buildDate;
|
|
/**
|
* 建立日期
|
*/
|
private Date overDate;
|
|
/**
|
* 简介
|
*/
|
private String peofile;
|
|
/**
|
* 标准科室编码(PT10.06.24)
|
*/
|
private String standardDeptCode;
|
|
/**
|
* 科室类型编码(PT10.06.08)(组织类型为“8-科室”时必填)
|
*/
|
private String deptTypeCode;
|
|
/**
|
* 重点科室类型编码(PT10.06.15)
|
*/
|
private String deptFcusTypeCode;
|
|
private String hisksid;
|
|
private String hisksmc;
|
|
//以上
|
|
|
/**
|
* 父部门名称
|
*/
|
@TableField(exist = false)
|
private String parentName;
|
|
@TableField(exist = false)
|
private String qf;
|
|
/**
|
* 项目检查状态 小程序用
|
*/
|
@TableField(exist = false)
|
@ApiModelProperty(value = "项目检查状态 小程序用")
|
private Long checkStatus;
|
|
|
/**
|
* 子部门
|
*/
|
@TableField(exist = false)
|
private List<SysDept> children = new ArrayList<SysDept>();
|
|
private String modality;
|
|
public Long getDeptId() {
|
return deptId;
|
}
|
|
public void setDeptId(Long deptId) {
|
this.deptId = deptId;
|
}
|
|
public Long getParentId() {
|
return parentId;
|
}
|
|
public void setParentId(Long parentId) {
|
this.parentId = parentId;
|
}
|
|
public String getAncestors() {
|
return ancestors;
|
}
|
|
public void setAncestors(String ancestors) {
|
this.ancestors = ancestors;
|
}
|
|
@NotBlank(message = "部门名称不能为空")
|
@Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
|
public String getDeptName() {
|
return deptName;
|
}
|
|
public void setDeptName(String deptName) {
|
this.deptName = deptName;
|
}
|
|
@NotNull(message = "显示顺序不能为空")
|
public Integer getOrderNum() {
|
return orderNum;
|
}
|
|
public void setOrderNum(Integer orderNum) {
|
this.orderNum = orderNum;
|
}
|
|
public String getLeader() {
|
return leader;
|
}
|
|
public void setLeader(String leader) {
|
this.leader = leader;
|
}
|
|
@Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
@Email(message = "邮箱格式不正确")
|
@Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
|
public String getEmail() {
|
return email;
|
}
|
|
public void setEmail(String email) {
|
this.email = email;
|
}
|
|
public String getStatus() {
|
return status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
public String getParentName() {
|
return parentName;
|
}
|
|
public void setParentName(String parentName) {
|
this.parentName = parentName;
|
}
|
|
public List<SysDept> getChildren() {
|
return children;
|
}
|
|
public void setChildren(List<SysDept> children) {
|
this.children = children;
|
}
|
|
public String getDepartmentEnName() {
|
return departmentEnName;
|
}
|
|
public void setDepartmentEnName(String departmentEnName) {
|
this.departmentEnName = departmentEnName;
|
}
|
|
public String getOrgType() {
|
return orgType;
|
}
|
|
public void setOrgType(String orgType) {
|
this.orgType = orgType;
|
}
|
|
public String getDepartmentCode() {
|
return departmentCode;
|
}
|
|
public void setDepartmentCode(String departmentCode) {
|
this.departmentCode = departmentCode;
|
}
|
|
public String getParentOrgId() {
|
return parentOrgId;
|
}
|
|
public void setParentOrgId(String parentOrgId) {
|
this.parentOrgId = parentOrgId;
|
}
|
|
public String getParentOrgName() {
|
return parentOrgName;
|
}
|
|
public void setParentOrgName(String parentOrgName) {
|
this.parentOrgName = parentOrgName;
|
}
|
|
public String getParentOrgCode() {
|
return parentOrgCode;
|
}
|
|
public void setParentOrgCode(String parentOrgCode) {
|
this.parentOrgCode = parentOrgCode;
|
}
|
|
public String getParentOrgType() {
|
return parentOrgType;
|
}
|
|
public void setParentOrgType(String parentOrgType) {
|
this.parentOrgType = parentOrgType;
|
}
|
|
public String getHospId() {
|
return hospId;
|
}
|
|
public void setHospId(String hospId) {
|
this.hospId = hospId;
|
}
|
|
public String getHospCode() {
|
return hospCode;
|
}
|
|
public void setHospCode(String hospCode) {
|
this.hospCode = hospCode;
|
}
|
|
public String getHospName() {
|
return hospName;
|
}
|
|
public void setHospName(String hospName) {
|
this.hospName = hospName;
|
}
|
|
public String getContactPerson() {
|
return contactPerson;
|
}
|
|
public void setContactPerson(String contactPerson) {
|
this.contactPerson = contactPerson;
|
}
|
|
public String getContactPhone() {
|
return contactPhone;
|
}
|
|
public void setContactPhone(String contactPhone) {
|
this.contactPhone = contactPhone;
|
}
|
|
public String getPostalCode() {
|
return postalCode;
|
}
|
|
public void setPostalCode(String postalCode) {
|
this.postalCode = postalCode;
|
}
|
|
public String getOfficialWeb() {
|
return officialWeb;
|
}
|
|
public void setOfficialWeb(String officialWeb) {
|
this.officialWeb = officialWeb;
|
}
|
|
public Long getPlaitBed() {
|
return plaitBed;
|
}
|
|
public void setPlaitBed(Long plaitBed) {
|
this.plaitBed = plaitBed;
|
}
|
|
public Long getOpenBed() {
|
return openBed;
|
}
|
|
public void setOpenBed(Long openBed) {
|
this.openBed = openBed;
|
}
|
|
|
public String getPeofile() {
|
return peofile;
|
}
|
|
public void setPeofile(String peofile) {
|
this.peofile = peofile;
|
}
|
|
public String getStandardDeptCode() {
|
return standardDeptCode;
|
}
|
|
public void setStandardDeptCode(String standardDeptCode) {
|
this.standardDeptCode = standardDeptCode;
|
}
|
|
public String getDeptTypeCode() {
|
return deptTypeCode;
|
}
|
|
public void setDeptTypeCode(String deptTypeCode) {
|
this.deptTypeCode = deptTypeCode;
|
}
|
|
public String getDeptFcusTypeCode() {
|
return deptFcusTypeCode;
|
}
|
|
public void setDeptFcusTypeCode(String deptFcusTypeCode) {
|
this.deptFcusTypeCode = deptFcusTypeCode;
|
}
|
|
@Override
|
public String toString() {
|
return "SysDept{" +
|
"deptId=" + deptId +
|
", parentId=" + parentId +
|
", ancestors='" + ancestors + '\'' +
|
", deptName='" + deptName + '\'' +
|
", orderNum=" + orderNum +
|
", leader='" + leader + '\'' +
|
", phone='" + phone + '\'' +
|
", email='" + email + '\'' +
|
", status='" + status + '\'' +
|
", departmentEnName='" + departmentEnName + '\'' +
|
", orgType='" + orgType + '\'' +
|
", departmentCode='" + departmentCode + '\'' +
|
", parentOrgId='" + parentOrgId + '\'' +
|
", parentOrgName='" + parentOrgName + '\'' +
|
", parentOrgCode='" + parentOrgCode + '\'' +
|
", parentOrgType='" + parentOrgType + '\'' +
|
", hospId='" + hospId + '\'' +
|
", hospCode='" + hospCode + '\'' +
|
", hospName='" + hospName + '\'' +
|
", contactPerson='" + contactPerson + '\'' +
|
", contactPhone='" + contactPhone + '\'' +
|
", postalCode='" + postalCode + '\'' +
|
", officialWeb='" + officialWeb + '\'' +
|
", plaitBed=" + plaitBed +
|
", openBed=" + openBed +
|
", buildDate='" + buildDate + '\'' +
|
", peofile='" + peofile + '\'' +
|
", standardDeptCode='" + standardDeptCode + '\'' +
|
", deptTypeCode='" + deptTypeCode + '\'' +
|
", deptFcusTypeCode='" + deptFcusTypeCode + '\'' +
|
", parentName='" + parentName + '\'' +
|
", children=" + children +
|
'}';
|
}
|
// @Override
|
// public String toString() {
|
// return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
// .append("deptId", getDeptId())
|
// .append("parentId", getParentId())
|
// .append("ancestors", getAncestors())
|
// .append("deptName", getDeptName())
|
// .append("orderNum", getOrderNum())
|
// .append("leader", getLeader())
|
// .append("phone", getPhone())
|
// .append("email", getEmail())
|
// .append("status", getStatus())
|
// .append("delFlag", getDelFlag())
|
// .append("createBy", getCreateBy())
|
// .append("createTime", getCreateTime())
|
// .append("updateBy", getUpdateBy())
|
// .append("updateTime", getUpdateTime())
|
// .toString();
|
// }
|
}
|