package com.boying.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.boying.common.BaseEntity;
|
import io.swagger.annotations.ApiModel;
|
import lombok.Data;
|
|
import javax.persistence.Entity;
|
import javax.persistence.Transient;
|
|
/**
|
* @author kdq
|
* @version 1.0.0
|
* @ClassName Park.java
|
* @Description TODO
|
* @createTime 2022年11月19日 20:55:00
|
*/
|
@Data
|
@TableName("park")
|
@javax.persistence.Table(name = "park")
|
@Entity
|
@org.hibernate.annotations.Table(appliesTo = "park", comment = "停车场表")
|
@ApiModel(value = "停车场表")
|
public class Park extends BaseEntity<Park> {
|
|
/**
|
* 停车场名称
|
*/
|
private String name;
|
|
/**
|
* 编号
|
*/
|
private String code;
|
|
/**
|
* 车位数量
|
*/
|
private int num;
|
|
/**
|
* 描述
|
*/
|
private String content;
|
|
/**
|
* 经度
|
*/
|
private String lng;
|
|
/**
|
* 纬度
|
*/
|
private String lat;
|
|
/**
|
* 当前车数
|
*/
|
@Transient
|
@TableField(exist = false)
|
private int carNum;
|
}
|