package com.jiayue.ssi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
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 javax.validation.constraints.Digits;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 短期预测功率实体
 *
 * @author zzy
 * @version 1.0
 * @since 2018/10/23 9:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_forecast_power_short_term")
public class ForecastPowerShortTerm {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;


    /**
     * 数据生成日期
     */
    private Date genDate;


    /**
     * 预测时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Long forecastTime;


    /**
     * 预测数据
     */
    @Digits(integer = 10, fraction = 2)
    private BigDecimal fpValue = new BigDecimal(-99);
}
