package cn.reghao.tnb.file.app.zjob.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import cn.reghao.tnb.file.app.zjob.DelayJob;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2024-11-25 09:11:07
 */
@NoArgsConstructor
@Setter
@Getter
@Deprecated
public class JobDetail extends BaseObject<Integer> {
    private Long jobId;
    private String jobName;
    private int status;
    private LocalDateTime startAt;
    private LocalDateTime endAt;

    public JobDetail(long jobId, DelayJob delayJob, int status) {
        this.jobId = jobId;
        this.jobName = delayJob.getJobName();
        this.status = status;
        this.startAt = LocalDateTime.now();
    }
}
