New file |
| | |
| | | package cn.exrick.xboot.your.entity; |
| | | |
| | | import cn.exrick.xboot.core.base.XbootBaseEntity; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.DynamicInsert; |
| | | import org.hibernate.annotations.DynamicUpdate; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Table; |
| | | import javax.persistence.Transient; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author Exrick |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @DynamicInsert |
| | | @DynamicUpdate |
| | | @Table(name = "t_car") |
| | | @TableName("t_car") |
| | | @ApiModel(value = "车辆表") |
| | | public class Car extends XbootBaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "品牌") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value = "型号") |
| | | private String model; |
| | | |
| | | @ApiModelProperty(value = "排量") |
| | | private String displacement; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "购置年份") |
| | | private Date buyYear; |
| | | |
| | | @ApiModelProperty(value = "牌照") |
| | | private String carNo; |
| | | |
| | | @ApiModelProperty(value = "0:正常 1:移除") |
| | | private int status; |
| | | |
| | | @ApiModelProperty(value = "移除原因(报废、二手车销售)") |
| | | private String removeReason; |
| | | |
| | | @ApiModelProperty(value = "当前驾驶人id") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value = "当前跟车人id") |
| | | private String followUserId; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private String nickName; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private String followNickName; |
| | | |
| | | } |