package com.boying.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.boying.common.BaseEntity;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import javax.persistence.Entity;
|
import javax.persistence.Transient;
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
|
/**
|
* @author kdq
|
* @version 1.0.0
|
* @ClassName OutPark.java
|
* @Description TODO
|
* @createTime 2022年11月19日 20:49:00
|
*/
|
@Data
|
@TableName("out_park")
|
@javax.persistence.Table(name = "out_park")
|
@Entity
|
@org.hibernate.annotations.Table(appliesTo = "out_park", comment = "出场表")
|
@ApiModel(value = "出场表")
|
public class OutPark extends BaseEntity<OutPark> {
|
|
/**
|
* 车牌号
|
*/
|
private String carNo;
|
/**
|
* 道闸id
|
*/
|
private Integer barrierId;
|
/**
|
* 停车场id
|
*/
|
private Integer parkId;
|
/**
|
* 费用
|
*/
|
private double price;
|
/**
|
* 停车时长
|
*/
|
private double time;
|
/**
|
* 停车时长
|
*/
|
@Transient
|
@TableField(exist = false)
|
private String timeStr;
|
/**
|
* 0:正常 1:白名单 2:月票
|
*/
|
private int remark;
|
|
/**
|
* 入场时间
|
*/
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private LocalDateTime enterTime;
|
|
/**
|
* 订单号
|
*/
|
private String code;
|
|
/**
|
* 流水号
|
*/
|
private String code2;
|
|
/**
|
* 缴款码
|
*/
|
private String payCode;
|
|
/**
|
* 0:未缴费 1:缴费
|
*/
|
private int status;
|
|
/**
|
* 0:未抬杆 1:已抬杆
|
*/
|
private int status2;
|
/**
|
* 0:没违章 1:有违章
|
*/
|
private int status3;
|
|
@Transient
|
@TableField(exist = false)
|
private String parkName;
|
}
|