package com.jiayue.ipfcst.common.data.entity;

import com.jiayue.ipfcst.common.data.abst.AbstractBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.core.annotation.Order;

import javax.persistence.*;

/**
 * 自定义报表
 *
 * @author yh
 * @version 3.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class CustomReportForm extends AbstractBaseEntity {
    @Id
    @Order(1)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "myid")
    @GenericGenerator(name = "myid", strategy = "com.jiayue.ipfcst.common.data.entity.id.CustomIDGenerator")
    private Integer id;
    //自定义报表名称
    @Column
    private String name;
    //短期
    @Column
    private Integer dq;
    //超短期
    @Column
    private Integer cdq;
    //实际功率
    private String rp;
    //nwp
    @Column
    private String nwp;
    //环境类数据
    @Column
    private String env;
    //时间间隔
    @Column
    private Integer interval;
    //是否修改
    @Column
    private Boolean isUpdate;
    //是否定时查询 1为定时 0 为实时
    @Column
    private String timingRealTime;




}
