package com.engine.organization.entity.personnelcard.vo;

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



/**
 * @Author weaver_cl
 * @Description:
 * @Date 2022/11/1
 * @Version V1.0
 **/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OrganizationTable(pageId = "8df45b09-0cda-4f57-a93a-ca9f96a4cfbf",
        fields = "t.id," +
                "t.type_name," +
                "t.status," +
                "t.all_people," +
                "t.superior," +
                "t.all_superior," +
                "t.custom",
        fromSql = "FROM jcl_org_cardaccess t ",
        orderby = "id",
        sortway = "asc",
        primarykey = "id",
        tableType = WeaTableType.NONE
)
public class CardAccessVO {

    @OrganizationTableColumn(column = "id", display = false)
    private Long id;

    @OrganizationTableColumn(text = "栏目", width = "15%", column = "type_name")
    private Integer typeName;

    @OrganizationTableColumn(text = "是否启用", width = "15%", column = "status")
    private Integer status;

    @OrganizationTableColumn(text = "所有人可见", width = "15%", column = "all_people")
    private Integer allPeople;

    @OrganizationTableColumn(text = "上级可见", width = "15%", column = "superior")
    private Integer superior;

    @OrganizationTableColumn(text = "所有上级可见", width = "15%", column = "all_superior")
    private Integer allSuperior;

    @OrganizationTableColumn(text = "查看自定义", width = "30%", column = "custom",transmethod = "com.engine.organization.transmethod.SystemTransMethod.getRoleName")
    private String custom;

}
