package com.platform.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 定时任务执行记录表
 * </p>
 *
 * @author abner
 * @since 2020-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TmTaskLog对象", description="定时任务执行记录表")
public class TmTaskLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务id")
    private String taskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "任务状态: 1->初始; 2->执行中;3->完成")
    private Integer taskStatus;

    @ApiModelProperty(value = "需要更新的总数")
    private Long totalNum;

    @ApiModelProperty(value = "已经完成的数量")
    private Long hasFinishedNum;

    @ApiModelProperty(value = "总页数")
    private Long totalPages;

    @ApiModelProperty(value = "当前页数")
    private Long currentPage;

    @ApiModelProperty(value = "每页大小")
    private Long pageSize;

    @ApiModelProperty(value = "任务执行日期")
    private LocalDate taskDate;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否可用：0->不可用;1->可用")
    private Integer enable;


}
