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_driving_record") @TableName("t_driving_record") @ApiModel(value = "行车记录") public class DrivingRecord extends XbootBaseEntity { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "车辆id") private String carId; @ApiModelProperty(value = "用户id") private String userId; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") @ApiModelProperty(value = "行车日期") private Date drivingDate; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "出车时间") private Date outTime; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "收车时间") private Date inTime; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "出厂时间") private Date outFactory; @ApiModelProperty(value = "行驶轨迹(如果车机系统可以查到就不单独记录了)") private String trajectory; @ApiModelProperty(value = "行驶里程") private Integer mileage=0; @ApiModelProperty(value = "订单核对 0:未核对 1:已核对") private Integer OrderStatus=0; @ApiModelProperty(value = "三证 0:正常 1:异常") private Integer sanZheng=0; @ApiModelProperty(value = "三量 0:正常 1:异常") private Integer sanLiang=0; @ApiModelProperty(value = "四灯 0:正常 1:异常") private Integer siDeng=0; @ApiModelProperty(value = "喇叭 0:正常 1:异常") private Integer laBa=0; @ApiModelProperty(value = "后视镜 0:正常 1:异常") private Integer houShiJing=0; @ApiModelProperty(value = "雨刷器 0:正常 1:异常") private Integer yuShuaQi=0; @ApiModelProperty(value = "轮胎 0:正常 1:异常") private Integer lunTai=0; @ApiModelProperty(value = "仪表 0:正常 1:异常") private Integer yiBiao=0; @ApiModelProperty(value = "制动 0:正常 1:异常") private Integer zhiDong=0; @ApiModelProperty(value = "安全设施 0:正常 1:异常") private Integer anQuan=0; @ApiModelProperty(value = "其它 0:正常 1:异常") private Integer qiTa=0; @ApiModelProperty(value = "处理意见") private String content; @ApiModelProperty(value = "被赞数") private String likes; @Transient @TableField(exist = false) private double beginMileage; @Transient @TableField(exist = false) private double endMileage; }