/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.smartapplication.carenterrecord.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;

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

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-01-04
 */
@Data
@TableName("yc_car_enter_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CarEnterRecord对象", description = "CarEnterRecord对象")
public class CarEnterRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 索引ID
	 */
	@ApiModelProperty(value = "索引ID")
	private String indexId;
	/**
	 * 车场唯一编号
	 */
	@ApiModelProperty(value = "	车场唯一编号")
	private String parkKey;
	/**
	 * 车牌号码
	 */
	@ApiModelProperty(value = "车牌号码")
	private String carNo;
	/**
	 * 订单号
	 */
	@ApiModelProperty(value = "订单号")
	private String orderNo;

	/**
	 * 预约车位订单号
	 */
	@ApiModelProperty(value = "预约车位订单号")
	private String reserveOrderNo;
	/**
	 * 车辆类型
	 */
	@ApiModelProperty(value = "车辆类型")
	private String carTypeNo;
	/**
	 * 入场时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "入场时间	")
	private Date enterTime;
	/**
	 * 入口车道名称
	 */
	@ApiModelProperty(value = "入口车道名称	")
	private String enterGateName;
	/**
	 * 入口操作员
	 */
	@ApiModelProperty(value = "入口操作员	")
	private String enterOperatorName;
	/**
	 * 车辆状态（0-未锁 1-锁定）
	 */
	@ApiModelProperty(value = "车辆状态（0-未锁 1-锁定）")
	private String lockCar;
	/**
	 * 入场图片
	 */
	@ApiModelProperty(value = "入场图片	")
	private String enterImgPath;

	@TableField(exist = false)
	@ApiModelProperty(value = "非数据库字段：查询时间范围")
	private String timeRange;

	@ApiModelProperty("租户id")
	private String tenantId;

	@ApiModelProperty("社区id")
	private Long agencyId;

	@ApiModelProperty("小区id")
	private Long residentialId;

	@ApiModelProperty("企业id")
	private Long enterpriseId;

	@ApiModelProperty("路径")
	private String orgPosition;


}
