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

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 停车账单异常登记
 * </p>
 *
 * @author cxj
 * @since 2023-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pmg_bat_park_bill_register")
@ApiModel(value="PmgBatParkBillRegister对象", description="停车账单异常登记")
public class PmgBatParkBillRegister extends TenantEntity {

    /**
     * 停车库唯一标志
     */
    @NotNull
    @ApiModelProperty(name = "parkingId", value = "停车库唯一标志")
    private Long parkingId;
    /**
     * 停车库名称
     */
    @ApiModelProperty(name = "parkingName", value = "停车库名称")
    private String parkingName;
    /**
     * 车牌
     */
    @NotNull
    @ApiModelProperty(name = "plateNo", value = "车牌")
    private String plateNo;
    /**
     * 微信openid or 支付宝账号
     */
    @NotNull
    @ApiModelProperty(name = "payUserId", value = "微信openid or 支付宝账号")
    private String payUserId;
    /**
     * 旧账单id
     */
    @ApiModelProperty(name = "oldBillId", value = "旧账单id")
    private Long oldBillId;
    /**
     * 异常账单id
     */
    @ApiModelProperty(name = "exceptionBillId", value = "异常账单id")
    private Long exceptionBillId;
    /**
     * 事件类型 : 0:出场(针对场中场),1:入场(无入场时间-开闸后未出去)
     */
    @ApiModelProperty(name = "eventType", value = "事件类型 : 0:出场(针对场中场),1:入场(无入场时间-开闸后未出去)")
    private Integer eventType;

    @NotNull
    @ApiModelProperty(name = "time", value = "矫正后的时间")
    private Date time;

    @ApiModelProperty(name = "phone", value = "手机号")
    private String phone;


    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    @ApiModelProperty(name = "file", value = "附件")
    private String file;
}
