package com.storlead.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * excel 导入模板规则配置
 * </p>
 *
 * @author chenkq
 * @since 2024-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("excel_import_column_rule")
@ApiModel(value="ExcelImportColumnRuleEntity对象", description="excel 导入模板规则配置")
public class ExcelImportColumnRuleEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "对应模板id")
    private Long exportTemplateId;

    @ApiModelProperty(value = "code")
    private String templateCode;

    @ApiModelProperty(value = "列名称")
    private String columnName;

    @ApiModelProperty(value = "对应字段名")
    private String columnField;

    @ApiModelProperty(value = "对应字段名")
    private String dictCode;

    @ApiModelProperty(value = "顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "列宽")
    private Integer columnWidth;

    @ApiModelProperty(value = "数据类型：默认： String")
    private String dataType;

    private String interfaceAddressUrl;

    @ApiModelProperty(value = "默认参数")
    private String defualtParameters;

    @ApiModelProperty(value = "所属人")
    private Long ownerBy;
}
