package com.xhpc.evcs.cdjgpc.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;

/**
 * @author yuyang
 * @date 2023-09-28 10:51
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
        "ConnectorID",
        "EquipmentClassification",
        "DataTime",
        "ConnectorRealTimePower"
})
@Data
public class CDSupConnectorPowerInfo {

    /**
     * 充电设备接口编码
     */
    @JsonProperty("ConnectorID")
    public String connectorID;
    /**
     * 设备分类
     */
    @JsonProperty("EquipmentClassification")
    public Integer equipmentClassification;
    /**
     * 统计时间
     */
    @JsonProperty("DataTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public String dataTime;
    /**
     * 充电设备接口实时功率
     */
    @Column(columnDefinition = "Decimal(10,1)")
    @JsonProperty("ConnectorRealTimePower")
    public Double connectorRealTimePower;



}
