package com.engine.organization.entity.department.dto;

import com.cloudstore.eccom.pc.table.WeaTableType;
import com.engine.organization.annotation.OrganizationTable;
import com.engine.organization.annotation.TableTitle;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author weaver_cl
 * @description:
 * @Date 2022/5/19
 * @Version V1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OrganizationTable(pageId = "96f2bb0d-da73-11ec-a0da-00ffcbed7508",
        tableType = WeaTableType.NONE)
public class DepartmentListDTO {

    private Integer id;
    /**
     * 是否被引用
     */
    private Integer isUsed;

    /**
     * 名称
     */
    @TableTitle(title = "名称", dataIndex = "departmentMark", key = "departmentMark", width = "200")
    private String departmentMark;

    /**
     * 编号
     */
    @TableTitle(title = "编号", dataIndex = "departmentCode", key = "departmentCode")
    private String departmentCode;

    /**
     * 简称
     */
    @TableTitle(title = "简称", dataIndex = "departmentName", key = "departmentName")
    private String departmentName;

    /**
     * 所属分部
     */
    @TableTitle(title = "所属分部", dataIndex = "subCompanyName", key = "subCompanyName")
    private String subCompanyName;
    private Integer subCompanyId1;

    /**
     * 上级部门
     */
    @TableTitle(title = "上级部门", dataIndex = "supDepName", key = "supDepName")
    private String supDepName;

    private Integer supDepId;

    /**
     * 部门负责人
     */
    @TableTitle(title = "部门负责人", dataIndex = "bmfzr", key = "bmfzr")
    private String bmfzr;

    /**
     * 显示顺序
     */
    @TableTitle(title = "显示顺序", dataIndex = "showOrder", key = "showOrder", sorter = true)
    private Double showOrder;


    /**
     * 禁用标记
     */
    @TableTitle(title = "封存", dataIndex = "canceled", key = "canceled")
    private int canceled;
    /**
     * 操作列
     */
    @TableTitle(title = "", dataIndex = "operate", key = "operate")
    private String operate;
    /**
     * 子节点
     */
    private List<DepartmentListDTO> children;
}
