package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 对外文件打包对象 b_file_exchange_package
 * 
 * @author ruoyi
 * @date 2024-01-29
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName("b_file_exchange_package")
public class FileExchangePackage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 接口名称
     */
    @TableField("interface_name")
    private String interfaceName;

    /**
     * 接口地址
     */
    @TableField("interface_url")
    private String interfaceUrl;

    /**
     * 打包数据来源ID
     */
    @TableField("package_source_db_id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long packageSourceDbId;

    /**
     * 打包数据来源
     */
    @TableField("package_source_db_name")
    private String packageSourceDbName;

    /**
     * 打包数据来源表
     */
    @TableField("package_source_table")
    private String packageSourceTable;

    /**
     * 打包数据来源表中文名
     */
    @TableField("package_source_table_name")
    private String packageSourceTableName;

    /**
     * 打包条数限制
     */
    @TableField("package_num_limit")
    private String packageNumLimit;

    /**
     * 当前完成主键
     */
    @TableField("curr_id")
    private long currId;

    /**
     * 保存路径
     */
    @TableField("file_position")
    private String filePosition;

    /**
     * 部门路径
     */
    @TableField("dept_id_path")
    private String deptIdPath;

    /**
     * 部门名称
     */
    @TableField("dept_name")
    private String deptName;

    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建人ID
     */
    @TableField("create_user_id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long createUserId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;

    /**
     * 删除人
     */
    @TableField("delete_by")
    private String deleteBy;

    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("delete_time")
    private Date deleteTime;

    /**
     * 删除标志 0未删除，1 删除
     */
    @TableField("delete_flag")
    @TableLogic
    private String deleteFlag;


}
