package com.dk.mdm.model.query.mst;

import cn.afterturn.easypoi.excel.annotation.Excel;
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.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.IntListTypeHandler;
import com.dk.common.infrastructure.handler.TimestampTypeHandler;
import com.dk.common.model.pojo.PageInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 *  组织部门
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ExportTitle("组织部门")
@TableName(value = "t_mst_org",schema ="dkic_b", autoResultMap = true)
@ApiModel(value="实体类：组织机构", description="表名：t_mst_org")
public class OrgQuery extends PageInfo<com.dk.mdm.model.query.mst.OrgQuery> implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 组织ID
     */
    @TableId(value = "org_id", type = IdType.AUTO)
    @ApiModelProperty(value = "组织ID")
    private String orgId;
    private String filterFlag;

    private String searchText;
    /**
     * 组织代码
     */
    @Excel(name = "组织代码")
    @ApiModelProperty(value = "组织代码")
    private String orgCode;
    /**
     * 层级代码
     */
    @Excel(name = "层级代码")
    @ApiModelProperty(value = "层级代码")
    private String levelCode;


    /**
     * 组织名称
     */
    @Excel(name = "组织名称")
    @ApiModelProperty(value = "组织名称")
    private String orgName;


    /**
     * 父级ID
     */
    @Excel(name = "父级ID")
    @ApiModelProperty(value = "父级ID")
    private String parentId;

    /**
     * 业务部门标识
     */
    @Excel(name = "业务部门标识")
    @ApiModelProperty(value = "业务部门标识")
    private Boolean flgBusiness;


    /**
     * 显示顺序
     */
    @Excel(name = "显示顺序")
    @ApiModelProperty(value = "显示顺序")
    private Integer displayNo;

    /**
     * @desc   : 有效标识List
     * @author : 宋扬
     * @date   : 2024/3/2 9:31
     */
    @Excel(name = "有效标识 (1：正常 0：停用)")
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private List<Boolean> flgValidList;



    private static final long serialVersionUID = 1L;

}
