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

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author llc
 * @create 2023年6月20日 15:01:18
 */
@Data
public class UserCardVo {
    @ApiModelProperty(value = "主键")
    private String id;
    @ApiModelProperty(value = "车辆类型")
    private String carType;
    @ApiModelProperty(value = "车牌号")
    private String plateNo;
    @ApiModelProperty(value = "园区ID")
    private String parkId;
    @ApiModelProperty(value = "停车场ID")
    private String parkingId;
    @ApiModelProperty(value = "停车场名称")
    private String parkingName;
    @ApiModelProperty(value = "AB车类型0主车 1副车")
    private String monthCarType;
    @ApiModelProperty(value = "个人姓名")
    private String personName;
    @ApiModelProperty(value = "个人手机号")
    private String personPhone;
    @ApiModelProperty(value = "车位号")
    private String placeNo;
    @ApiModelProperty(value = "有效开始时间")
    private Date beginTime;
    @ApiModelProperty(value = "有效结束时间")
    private Date endTime;
    @ApiModelProperty(value = "车辆ID")
    private Long placeId;
    /**
     * 审核状态（0 待审核 1 进行中 2 已完成 3 已撤回 4 已拒绝））
     */
    @ApiModelProperty(name = "reviewState", value = "审核状态（0 待审核 1 进行中 2 已完成 3 已撤回 4 已拒绝）")
    private Integer reviewState;
    @ApiModelProperty(value = "使用状态")
    private Integer activeState;
    @ApiModelProperty(value = "金额")
    private Long ruleFee;
    @ApiModelProperty(value = "是否免费")
    private Integer freeState;
    @ApiModelProperty(value = "失效时间")
    private Date failureTime;
    @ApiModelProperty(value = "缴费有效期")
    private Integer validityPeriod;
    @ApiModelProperty(value = "缴费有效期")
    private Date reviewTime;
    @ApiModelProperty(value = "通过后车辆类型")
    private String realCarType;
    @ApiModelProperty(value = "团队车名字")
    private String teamName;
    @ApiModelProperty(value = "团队车退出标识")
    private Integer isExit;
    @ApiModelProperty(value = "退卡时间")
    private Date refundCardTime;
    @ApiModelProperty(value = "退卡状态")
    private Integer refundCardState;



    @Override
    public boolean equals(Object obj){
        if(obj == null){
            return false;
        }else {
            if(this.getClass() == obj.getClass()){
                UserCardVo u = (UserCardVo) obj;
                if(this.getParkingId().equals(u.getParkingId())&&this.getPlateNo().equals(u.getPlateNo())){
                    return true;
                }else{
                    return false;
                }

            }else{
                return false;
            }
        }
    }

}
