package com.yuchen.saas.parking.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;

import com.thinkunion.park.service.common.enums.parking.ParkBillLogExceptionTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

/**
 * <p>
 * 停车账单表异常任务表
 * </p>
 *
 * @author author
 * @since 2022-12-07
 */
@Data
@TableName("pmg_bat_park_bill_log_exception_task")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PmgBatParkBillLogExceptionTask对象", description="停车账单表异常任务表")
public class PmgBatParkBillLogExceptionTask extends TenantEntity {


    @ApiModelProperty(value = "账单id")
    private Long pmgBatParkBillLogId;

    @ApiModelProperty(value = "车牌")
    private String plateNo;

    @ApiModelProperty(value = "入场时间")
    private Date enterTime;

    @ApiModelProperty(value = "出场时间")
    private Date outTime;

    @ApiModelProperty(value = "充电桩进入时间")
    private Date eventStartTime;

    @ApiModelProperty(value = "充电桩离开时间")
    private Date eventEndTime;

    @ApiModelProperty(value = "事件明细json")
    private String eventTimeDetail;

    @ApiModelProperty(value = "充电记录明细json")
    private String chargingTimeDetail;

    @ApiModelProperty("异常类型")
    private Integer exceptionType;

    @ApiModelProperty("异常类型")
    private String exceptionMsg;

    public String getExceptionMsg() {
        return ParkBillLogExceptionTypeEnum.getDescByCode(exceptionType);
    }

}
