package com.storlead.system.pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;
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.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

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

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "模板名称")
    private String templateNme;

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

    @ApiModelProperty(value = "包名")
    private String packageName;

    @ApiModelProperty(value = "类名")
    private String className ;

    @ApiModelProperty(value = "excel 头提示")
    private String titleAlert ;

    @ApiModelProperty(value = "字典Code")
    private String dictCode ;

    @ApiModelProperty(value = "字典Code")
    private Integer titleRow ;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

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

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @ApiModelProperty(value = "最后修改人")
    private Long updateBy;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后修改时间 可作为阅读时间")
    private LocalDateTime updateTime;

    private Integer isDelete;


}
