package com.ruoyi.system.api.domain; import java.util.ArrayList; 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.ruoyi.common.core.annotation.Excel; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.core.web.domain.BaseEntity; /** * 部门表 sys_dept * * @author ruoyi */ public class SysDept extends BaseEntity { private static final long serialVersionUID = 1L; /** 部门ID */ @TableField("dept_Id") @Excel(name = "部门ID") private Long deptId; /** 部门名称 */ @TableField("dept_name") @Excel(name = "部门名称") private String deptName; /** 删除标志(0代表存在 2代表删除) */ @TableField("del_flag") private String delFlag; public Long getDeptId() { return deptId; } public void setDeptId(Long deptId) { this.deptId = deptId; } @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符") public String getDeptName() { return deptName; } public void setDeptName(String deptName) { this.deptName = deptName; } public String getDelFlag() { return delFlag; } public void setDelFlag(String delFlag) { this.delFlag = delFlag; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("deptId", getDeptId()) .append("delFlag", getDelFlag()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) .toString(); } }