package com.pwt.web.domain;

import com.pwt.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 充电记录对象 pwt_charge_record
 * 
 * @author linyun
 * @date 2022-11-17
 */
@Getter
@Setter
public class PwtChargeRecordDto extends BaseEntity
{

    /** 主键id */
    private Long recordId;

    /** 车辆编号 */
    private String vehicleNo;

    /** 充电机编号 */
    private String chargerNo;

    /** 电池SN */
    private String batterySn;

    /** 充电电量 */
    private BigDecimal chargeQuantity;

    /** 充电开始时间 */
    private LocalDateTime chargeBeginTime;

    /** 充电结束时间 */
    private LocalDateTime chargeEndTime;

    /** 充电时长 */
    private int chargeDuration;

    /** 开始SOC */
    private int startSoc;

    /** 结束soc */
    private int endSoc;

    /** 停机原因 */
    private int stopReason;

    /** 充电模式 */
    private int chargeMode;

    @Override
    public String toString() {
        return "PwtChargeRecordDto(recordId=" + getRecordId() + ", vehicleNo=" + getVehicleNo() + ", chargerNo=" + getChargerNo() + ", batterySn=" + getBatterySn() + ", chargeQuantity=" + getChargeQuantity() + ", chargeBeginTime=" + getChargeBeginTime() + ", chargeEndTime=" + getChargeEndTime() + ", chargeDuration=" + getChargeDuration() + ", startSoc=" + getStartSoc() + ", endSoc=" + getEndSoc() + ", stopReason=" + getStopReason() + ", chargeMode=" + getChargeMode() + ")";
    }
}
