package com.chinaweal.aiccs.org.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


@Getter
@TableName(value = "cxaicorg.t_orgUnits")
public class OrgUnits implements Serializable {

    // Fields
    @TableField(value = "ORGUNITID")
    private String orgUnitId;   //机构ID

    @Setter
    @TableField(value = "ORGUNITNAME")
    private String orgUnitName; //机构名称

    @Setter
    @TableField(value = "ORGNUMBER")
    private String orgNumber;   //机构编码

    @TableField(value = "PARENTID")
    private String parentId;    //父级ID

    @TableField(value = "UNITTYPE")
    private String unitType;    //组织类型

    @Setter
    @TableField(value = "ORGLEVEL")
    private Integer orgLevel;   //组织层次

    @Setter
    @TableField(value = "DELETED")
    private String deleted;     //是否删除 0:没有删除 1:删除

    @TableField(exist = false)
    private String locDistrict; //行政区划，业务用

    /**
     * default constructor
     */
    public OrgUnits() {
    }

    /**
     * minimal constructor
     */
    public OrgUnits(String orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    /**
     * full constructor
     */
    public OrgUnits(String orgUnitId, String orgUnitName,
                    String orgNumber, String parentId, String unitType,
                    Integer orgLevel) {
        this.orgUnitId = orgUnitId;
        this.orgUnitName = orgUnitName;
        this.orgNumber = orgNumber;
        this.parentId = parentId;
        this.unitType = unitType;
    }

}
