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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiayue.ipp.common.mybatis.base.BaseDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Digits;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * idp_inverter_status_data
 *
 * @author whc
 * @date 2022-03-18 15:49:14
 */
@Data
@TableName("idp_inverter_status_data")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "idp_inverter_status_data")
public class InverterStatusData extends BaseDataEntity<InverterStatusData> {
    private static final long serialVersionUID = 1L;


    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键ID")
    private String id;


    /**
     * 设备主键ID
     */
    @ApiModelProperty(value = "设备主键ID")
    private String equipmentId;


    /**
     * 状态值为1代表运行，2代表待机，3代表停用，4代表故障
     */
    @ApiModelProperty(value = "状态值为1代表运行，2代表待机，3代表停用，4代表故障")
    private String status;


    /**
     * 时间
     */
    @ApiModelProperty(value = "时间")
    private LocalDateTime time;


    /**
     * 备用字段1
     */
    @ApiModelProperty(value = "备用字段1")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data1 = new BigDecimal(-99);


    /**
     * 备用字段2
     */
    @ApiModelProperty(value = "备用字段2")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data2 = new BigDecimal(-99);


    /**
     * 备用字段3
     */
    @ApiModelProperty(value = "备用字段3")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data3 = new BigDecimal(-99);


    /**
     * 备用字段4
     */
    @ApiModelProperty(value = "备用字段4")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data4 = new BigDecimal(-99);


    /**
     * 备用字段5
     */
    @ApiModelProperty(value = "备用字段5")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data5 = new BigDecimal(-99);


    /**
     * 备用字段6
     */
    @ApiModelProperty(value = "备用字段6")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data6 = new BigDecimal(-99);


    /**
     * 备用字段7
     */
    @ApiModelProperty(value = "备用字段7")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data7 = new BigDecimal(-99);


    /**
     * 备用字段8
     */
    @ApiModelProperty(value = "备用字段8")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data8 = new BigDecimal(-99);


    /**
     * 备用字段9
     */
    @ApiModelProperty(value = "备用字段9")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data9 = new BigDecimal(-99);


    /**
     * 备用字段10
     */
    @ApiModelProperty(value = "备用字段10")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal data10 = new BigDecimal(-99);


    /**
     * 有功（KW）
     */
    @ApiModelProperty(value = "有功（KW）")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal activePower = new BigDecimal(-99);


    /**
     * 无功（KVar）
     */
    @ApiModelProperty(value = "无功（KVar）")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal reactivePower = new BigDecimal(-99);


    /**
     * 功率因数
     */
    @ApiModelProperty(value = "功率因数")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal powerFactor = new BigDecimal(-99);


    /**
     * 电压
     */
    @ApiModelProperty(value = "电压")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal voltage = new BigDecimal(-99);


    /**
     * 电流
     */
    @ApiModelProperty(value = "电流")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal electricalCurrent = new BigDecimal(-99);


    /**
     * 当日发电量
     */
    @ApiModelProperty(value = "当日发电量")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal dayElectricQuantity = new BigDecimal(-99);


    /**
     * 累积发电量
     */
    @ApiModelProperty(value = "累积发电量")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal cumulativeGeneratedEnergy = new BigDecimal(-99);


    /**
     * 当日并网小时数
     */
    @ApiModelProperty(value = "当日并网小时数")
    @Digits(integer = 10, fraction = 2)
    private BigDecimal dayGridConnectedHours = new BigDecimal(-99);


}
