package org.springblade.modules.location.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 实时位置实体类
|
* @author zhongrj
|
* @time 2021-07-21
|
*/
|
@Data
|
@TableName("sys_live_location")
|
public class LiveLocation implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 实时位置主键id
|
*/
|
@TableId(value = "id",type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 类型 1:押运人员 2:押运车辆 3:枪支
|
*/
|
@TableField("type")
|
private Integer type;
|
|
|
/**
|
* 押运人员/车辆/枪支id
|
*/
|
@TableField("worker_id")
|
private Long workerId;
|
|
|
/**
|
* 记录时间/上传时间
|
*/
|
@TableField("record_time")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date recordTime;
|
|
|
/**
|
* 经度
|
*/
|
private String longitude;
|
|
/**
|
* 纬度
|
*/
|
private String latitude;
|
|
|
/**
|
* 实时位置地址
|
*/
|
private String location;
|
|
}
|