106 lines
2.4 KiB
Java
106 lines
2.4 KiB
Java
package com.evobms.project.summary.domain;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
import com.evobms.framework.aspectj.lang.annotation.Excel;
|
|
import com.evobms.framework.web.domain.BaseEntity;
|
|
|
|
/**
|
|
* 累计充放电量对象 charge_discharge_summary
|
|
*
|
|
* @author 田志阳
|
|
* @date 2026-01-09
|
|
*/
|
|
public class ChargeDischargeSummary extends BaseEntity
|
|
{
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/** 主键ID */
|
|
private Long id;
|
|
|
|
/** 设备ID */
|
|
@Excel(name = "设备ID")
|
|
private String deviceId;
|
|
|
|
/** 时间戳 */
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ")
|
|
@Excel(name = "时间戳", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
private Date timestamp;
|
|
|
|
/** 累计放电(kWh) */
|
|
@Excel(name = "累计放电(kWh)")
|
|
private BigDecimal dischargeKwh;
|
|
|
|
/** 累计充电kWh) */
|
|
@Excel(name = "累计充电kWh)")
|
|
private BigDecimal chargeKwh;
|
|
|
|
public void setId(Long id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getId()
|
|
{
|
|
return id;
|
|
}
|
|
|
|
public void setDeviceId(String deviceId)
|
|
{
|
|
this.deviceId = deviceId;
|
|
}
|
|
|
|
public String getDeviceId()
|
|
{
|
|
return deviceId;
|
|
}
|
|
|
|
public void setTimestamp(Date timestamp)
|
|
{
|
|
this.timestamp = timestamp;
|
|
}
|
|
|
|
public Date getTimestamp()
|
|
{
|
|
return timestamp;
|
|
}
|
|
|
|
public void setDischargeKwh(BigDecimal dischargeKwh)
|
|
{
|
|
this.dischargeKwh = dischargeKwh;
|
|
}
|
|
|
|
public BigDecimal getDischargeKwh()
|
|
{
|
|
return dischargeKwh;
|
|
}
|
|
|
|
public void setChargeKwh(BigDecimal chargeKwh)
|
|
{
|
|
this.chargeKwh = chargeKwh;
|
|
}
|
|
|
|
public BigDecimal getChargeKwh()
|
|
{
|
|
return chargeKwh;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
.append("id", getId())
|
|
.append("deviceId", getDeviceId())
|
|
.append("timestamp", getTimestamp())
|
|
.append("dischargeKwh", getDischargeKwh())
|
|
.append("chargeKwh", getChargeKwh())
|
|
.append("createTime", getCreateTime())
|
|
.append("updateTime", getUpdateTime())
|
|
.append("createBy", getCreateBy())
|
|
.append("updateBy", getUpdateBy())
|
|
.toString();
|
|
}
|
|
}
|