Dept.java 2.59 KB
package com.huaheng.pc.system.dept.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Maps;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 部门对象 sys_dept
 * 
 * @author huaheng
 */
@Data
@TableName(value = "sys_dept")
public class Dept implements Serializable
{
    private static final long serialVersionUID = 1L;
    /** 部门ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 父部门ID */
    @TableField(value = "parentId")
    private Integer parentId;
    /** 祖级列表 */
    @TableField(value = "ancestors")
    private String ancestors;
    /** 部门编码 */
    @TableField(value = "code")
    private String code;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /** 部门名称 */
    @TableField(value = "deptName")
    private String deptName;
    /** 显示顺序 */
    @TableField(value = "orderNum")
    private String orderNum;
    /** 负责人 */
    @TableField(value = "leader")
    private String leader;
    /** 联系电话 */
    @TableField(value = "phone")
    private String phone;
    /** 邮箱 */
    @TableField(value = "email")
    private String email;
    /** 启用状态 */
    @TableField(value = "enable")
    private Boolean enable;
    /** 父部门名称 */
    private String parentName;
    /** 搜索值 */
    private String searchValue;
    /** 创建者 */
    @TableField(value = "createBy")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createTime")
    private Date createTime;

    /** 更新者 */
    @TableField(value = "updateBy")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "updateTime")
    private Date updateTime;

    /** 备注 */
    @TableField(value = "remark")
    private String remark;
    /** 请求参数 */
    private Map<String, Object> params;

    @Override
    public String toString()
    {
        return "Dept [id=" + id + ", parentId=" + parentId + ", ancestors=" + ancestors + ", deptName="
                + deptName + ", orderNum=" + orderNum + ", leader=" + leader + ", phone=" + phone + ", email=" + email
                + ", enable=" + enable + ", parentName=" + parentName + "]";
    }

}