package org.jeecg.modules.newWarning.entity;

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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 补偿计算实体类
 */
@Data
@TableName("recalculate_warn")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class RecalculateWarn  implements Serializable {

    private static final long serialVersionUID = 780903014942735924L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("jh")
    private String jh;

    /**
     * 开始时间
     */
    @TableField("start_date")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /**
     * 结束时间
     */
    @TableField("end_date")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /**
     * 正在计算时间
     */
    @TableField("warning_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private  Date warningTime;

    /**
     * 计算状态 查询计算数据中 计算预警数据中 已完成计算
     */
    @TableField("state")
    private String state;

    /**
     * 计算用户主键
     */
    @TableField("user_id")
    private String user;

    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
