package com.yuchen.saas.parking.api.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.thinkunion.park.service.common.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @ClassName ReplacePlateNoRecord
 * @Description 更换车牌审核记录
 * @Author 张逸飞
 * @Date 2022年10月4日 10:27:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "更换车牌审核记录表", description = "更换车牌审核记录表")
@TableName("replace_plate_no_record")
public class ReplacePlateNoRecord extends BasicEntity {

    /**
     * 月卡登记ID
     */
    @ApiModelProperty(name = "vehicleMonthlyCardId", value = "月卡登记ID")
    private Long vehicleMonthlyCardId;
    /**
     * 车场id
     */
    @ApiModelProperty(name = "parkingId", value = "车场id")
    private Long parkingId;

    /**
     * 车主名称
     */
    @ApiModelProperty(name = "personName", value = "车主名称")
    private String personName;

    /**
     * 手机号
     */
    @ApiModelProperty(name = "personPhone", value = "手机号")
    private String personPhone;

    /**
     * 包租 开始时间
     */
    @ApiModelProperty(name = "beginTime", value = "包租 开始时间")
    private Date beginTime;

    /**
     * 包租 结束时间
     */
    @ApiModelProperty(name = "endTime", value = "包租 结束时间")
    private Date endTime;

    /**
     * 旧车牌号码
     */
    @ApiModelProperty(name = "oldPlateNo", value = "旧车牌号码")
    private String oldPlateNo;

    /**
     * 新车牌号码
     */
    @ApiModelProperty(name = "newPlateNo", value = "新车牌号码")
    private String newPlateNo;

    /**
     * 变更理由
     */
    @ApiModelProperty(name = "reason", value = "变更理由")
    private String reason;

    /**
     * 审核状态（0 待审核 1 进行中 2 已完成 3 已撤回 4 已拒绝））
     */
    @ApiModelProperty(name = "reviewState", value = "审核状态（0 待审核 1 进行中 2 已完成 3 已撤回 4 已拒绝）")
    private Integer reviewState;

    /**
     * 审批人姓名
     */
    @ApiModelProperty(name = "reviewName", value = "审批人姓名")
    private String reviewName;

    /**
     * 审核时间
     */
    @ApiModelProperty(name = "reviewTime", value = "审核时间")
    private Date reviewTime;
/**
 * ALTER TABLE `replace_plate_no_record` ADD `is_owner` int(2) DEFAULT NULL COMMENT '是否车主本人0否1是';
 * ALTER TABLE `replace_plate_no_record` ADD `new_person_name` varchar(20) DEFAULT NULL COMMENT '新车主姓名';
 * ALTER TABLE `replace_plate_no_record` ADD `new_person_phone` varchar(20) DEFAULT NULL COMMENT '新手机号';
 * ALTER TABLE `replace_plate_no_record` ADD `new_vehicle_type` int(2) DEFAULT NULL COMMENT '新车辆类型0：其他车、1：小型车、2：大型车、3：摩托车';
 * ALTER TABLE `replace_plate_no_record` ADD `new_energy_type` int(2) DEFAULT NULL COMMENT '新能源类型0：其他类型、1：汽油车、2：新能源';
 * ALTER TABLE `replace_plate_no_record` ADD `old_file` varchar(1024) DEFAULT NULL COMMENT '旧申请附件图片地址 逗号隔开';
 * ALTER TABLE `replace_plate_no_record` ADD `new_file` varchar(1024) DEFAULT NULL COMMENT '新申请附件图片地址 逗号隔开';
 * ALTER TABLE `replace_plate_no_record` ADD `ru_approval_data_id` varchar(64) DEFAULT NULL COMMENT '任务对应的业务数据表id';
 */

    @ApiModelProperty(name = "isOwner", value = "是否车主本人0否1是")
    private Integer isOwner;

    @ApiModelProperty(name = "changeType", value = "变更类型(1车牌 2车主)")
    private Integer changeType;

    @ApiModelProperty(name = "newPersonName", value = "新车主姓名")
    private String newPersonName;

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

    @ApiModelProperty(name = "newVehicleType", value = "新车辆类型0：其他车、1：小型车、2：大型车、3：摩托车'")
    private Integer newVehicleType;

    @ApiModelProperty(name = "newEnergyType", value = "新能源类型0：其他类型、1：汽油车、2：新能源")
    private Integer newEnergyType;

    @ApiModelProperty(name = "oldVehicleType", value = "旧车辆类型0：其他车、1：小型车、2：大型车、3：摩托车'")
    private Integer oldVehicleType;

    @ApiModelProperty(name = "oldVehicleType", value = "旧能源类型0：其他类型、1：汽油车、2：新能源")
    private Integer oldEnergyType;

    @ApiModelProperty(name = "oldFile", value = "旧申请附件图片地址 逗号隔开")
    private String oldFile;

    @ApiModelProperty(name = "newFile", value = "新申请附件图片地址 逗号隔开")
    private String newFile;

    @ApiModelProperty(name = "ruApprovalDataId", value = "任务对应的业务数据表id")
    private String ruApprovalDataId;

    @ApiModelProperty(name = "ruleId", value = "包期规则ID")
    private Long ruleId;

    @ApiModelProperty(name = "reviewAction", value = "审核动作0拒绝1通过")
    private Integer reviewAction;

    @ApiModelProperty(name = "reviewUserId", value = "审核用户账号id,来自表nest_user")
    private Long reviewUserId;

    @ApiModelProperty(name = "cardType", value = "包期类型 1月卡  0错时")
    private String cardType;

    @ApiModelProperty(name = "applyType", value = "申请方式 1 用户发起 0后台提交")
    private String applyType;

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

    @ApiModelProperty(name = "payUserId",value = "微信openid or 支付宝账号")
    private String payUserId;
}
