package com.pwt.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pwt.common.annotation.Excel;
import com.pwt.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 换电记录对象 pwt_change_battery_record
 * 
 * @author linyun
 * @date 2022-11-17
 */
@Getter
@Setter
@ToString
@ApiModel("换电记录")
public class PwtChangeBatteryRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty("记录id")
    private Long recordId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    @ApiModelProperty("车牌号")
    private String vehicleNo;

    /** vin */
    @Excel(name = "vin")
    @ApiModelProperty("vin")
    private String vin;

    /** 换下电池SN */
    @Excel(name = "换下电池SN")
    @ApiModelProperty("换下电池SN")
    private String changeBatterySn;

    /** 换下电池电量 */
    @Excel(name = "换下电池电量")
    @ApiModelProperty("换下电池电量")
    private BigDecimal changeBatteryPower;

    /** 放置电池仓号 */
    @Excel(name = "放置电池仓号")
    @ApiModelProperty("放置电池仓号")
    private Integer placeBatteryCompartmentNo;

    /** 换取电池SN */
    @Excel(name = "换取电池SN")
    @ApiModelProperty("换取电池SN")
    private String exchangeBatterySn;

    /** 换取电池电量 */
    @Excel(name = "换取电池电量")
    @ApiModelProperty("换取电池电量")
    private BigDecimal exchangeBatteryPower;

    /** 取电池仓格号 */
    @Excel(name = "取电池仓格号")
    @ApiModelProperty("取电池仓格号")
    private Integer takeBatteryCompartmentNo;

    /** 换电开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "换电开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("换电开始时间")
    private LocalDateTime changeStartTime;

    /** 换电结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "换电结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("换电结束时间")
    private LocalDateTime changeEndTime;

}
