package com.supersavedriving.driver.modular.system.model;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 司机上下班记录
|
*/
|
@Data
|
@TableName("t_driver_work")
|
public class DriverWork {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
/**
|
* 司机id
|
*/
|
@TableField("driverId")
|
private Integer driverId;
|
/**
|
* 上班时间
|
*/
|
@TableField("workTime")
|
private Date workTime;
|
/**
|
* 下班时间
|
*/
|
@TableField("offWorkTime")
|
private Date offWorkTime;
|
/**
|
* 在线时长(秒)
|
*/
|
@TableField("onlineTime")
|
private Long onlineTime;
|
/**
|
* 状态(1=上班,2=下班)
|
*/
|
@TableField("status")
|
private Integer status;
|
}
|