package com.njcn.prepare.harmonic.pojo.mysql;

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 java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * Description:
 * Date: 2025/03/06  下午 2:07【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
@TableName(value = "cvt_job_log")
public class CvtJobLog {

    /**
     * 执行日期
            */
    @TableId(value = "excute_date_time")
    private LocalDateTime excuteDateTime;

    /**
     * 记录数
     */
    @TableField(value = "`row_count`")
    private Integer rowCount;

    /**
     * 状态（0-执行中、1-成功、2-失败）
     */
    @TableField(value = "`state`")
    private Integer state;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(value = "duration")
    private Double duration;

    public CvtJobLog(LocalDateTime excuteDateTime, Integer rowCount, Integer state, LocalDateTime updateTime, Double duration) {
        this.excuteDateTime = excuteDateTime;
        this.rowCount = rowCount;
        this.state = state;
        this.updateTime = updateTime;
        this.duration = duration;
    }
}