package com.dk.mdm.model.vo.core;

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.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;

/**
 *  工厂
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ExportTitle("工厂")
@TableName(value = "t_factory", autoResultMap = true)
@ApiModel(value="实体类：工厂", description="表名：t_factory")
public class FactoryVO implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 工厂ID
     */
    @TableId(value = "fty_id", type = IdType.AUTO)
    @ApiModelProperty(value = "工厂ID")
    private Integer ftyId;


    /**
     * 工厂代码
     */
    @Excel(name = "工厂代码")
    @ApiModelProperty(value = "工厂代码")
    private String ftyCode;


    /**
     * 工厂名称
     */
    @Excel(name = "工厂名称")
    @ApiModelProperty(value = "工厂名称")
    private String ftyName;

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


    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remarks;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @Excel(name = "有效标识 (1：正常 0：停用)")
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;


    @Excel(name = "单据代码")
    @ApiModelProperty(value = "单据代码")
    private String ftyDocNo;



    /*
     * 相关属性
     * @TableField(exist = false)
     */

    /*
     * 关联属性 + 查询条件
     * @TableField(exist = false)
     */


    private static final long serialVersionUID = 1L;

}
