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

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:dxfeng
 * @createTime: 2022/11/24
 * @version: 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OrganizationTable(pageId = "dcfd9d27-6ba2-11ed-996a-00ffcbed7508")
public class CompListDTO {
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 是否被引用
     */
    private Integer isUsed;
    /**
     * 名称
     */
    @TableTitle(title = "名称", dataIndex = "subCompanyDesc", key = "subCompanyDesc")
    private String subCompanyDesc;

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

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

    /**
     * 上级公司
     */
    @TableTitle(title = "上级分部", dataIndex = "supSubComName", key = "supSubComName")
    private String supSubComName;

    private Integer supSubComId;


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

    /**
     * 禁用标记
     */
    @TableTitle(title = "封存", dataIndex = "canceled", key = "canceled")
    private Integer canceled;

    /**
     * 操作列
     */
    @TableTitle(title = "", dataIndex = "operate", key = "operate")
    private String operate;

    /**
     * 子节点
     */
    private List<CompListDTO> children;
}
