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.data.enums.EquipmentTypeEnum;
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 java.math.BigDecimal;
import java.time.LocalDate;

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

    public InverterInfo() {
        this.setEquipmentType(EquipmentTypeEnum.INVERTER.getCode());
    }

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


    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    private Integer equipmentType;


    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;


    /**
     * 制造商
     */
    @ApiModelProperty(value = "制造商")
    private String manufacturer;


    /**
     * 型号
     */
    @ApiModelProperty(value = "型号")
    private String modelNumber;


    /**
     * 安装时间
     */
    @ApiModelProperty(value = "安装时间")
    private LocalDate installationTime;


    /**
     * 入库时间间隔  单位 s
     */
    @ApiModelProperty(value = "入库时间间隔  单位 s")
    private Integer timeInterval;


    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    private String equipmentNo;


    /**
     * 是否组串式 1:是 0:不是
     */
    @ApiModelProperty(value = "是否组串式 1:是 0:不是")
    private String groupSeries;


    /**
     * 逆变器效率
     */
    @ApiModelProperty(value = "逆变器效率")
    private BigDecimal efficiency = new BigDecimal(-99);


    /**
     * 额定功率
     */
    @ApiModelProperty(value = "额定功率")
    private BigDecimal capacity = new BigDecimal(-99);


    /**
     * 集电线路
     */
    @ApiModelProperty(value = "集电线路")
    private String collectorCircuit;


    /**
     * 逆变器是否样板机 1:是 0:不是
     */
    @ApiModelProperty(value = "逆变器是否样板机 1:是 0:不是")
    private String sample;
    /**
     * 绑定数据采集通道
     */
    @ApiModelProperty(value = "绑定数据采集通道")
    private String bindTunnel;

}
