/*
 *      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.caroutrecord.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_out_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CarOutRecord对象", description = "CarOutRecord对象")
public class CarOutRecord 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 carTypeNo;
	/**
	 * 入场时间（V1.1版本返回字段）
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "入场时间（V1.1版本返回字段）")
	private Date enterTime;
	/**
	 * 入口车道名称（V1.1版本返回字段）
	 */
	@ApiModelProperty(value = "入口车道名称（V1.1版本返回字段）")
	private String enterGateName;
	/**
	 * 出场时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "出场时间")
	private Date outTime;
	/**
	 * 出口车道名称
	 */
	@ApiModelProperty(value = "出口车道名称")
	private String outGateName;
	/**
	 * 出口操作员
	 */
	@ApiModelProperty(value = "出口操作员")
	private String outOperatorName;
	/**
	 * 车辆状态（0-未锁 1-锁定）
	 */
	@ApiModelProperty(value = "车辆状态（0-未锁 1-锁定）")
	private String lockCar;
	/**
	 * 出场图片
	 */
	@ApiModelProperty(value = "出场图片	")
	private String outImgPath;
	/**
	 * 订单总金额（单位元）
	 */
	@ApiModelProperty(value = "订单总金额（单位元）")
	private String totalAmount;
	/**
	 * 免费放行原因
	 */
	@ApiModelProperty(value = "免费放行原因")
	private String freeReason;

	/**
	 * 租户id
	 */
	@ApiModelProperty(value = "租户id")
	private String tenantId;


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

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

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

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

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