package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 司机关联线路
|
* @TableName t_driver_line
|
*/
|
@TableName(value ="t_driver_line")
|
public class TDriverLine implements Serializable {
|
/**
|
*
|
*/
|
@TableId
|
private Integer id;
|
|
/**
|
* 司机id
|
*/
|
private Integer driverid;
|
|
/**
|
* 线路id
|
*/
|
private Integer lineid;
|
|
/**
|
* 创建时间
|
*/
|
private Date createtime;
|
|
/**
|
* 添加时间【后台使用】
|
*/
|
private String addtime;
|
|
@TableField(exist = false)
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
public Integer getId() {
|
return id;
|
}
|
|
/**
|
*
|
*/
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
/**
|
* 司机id
|
*/
|
public Integer getDriverid() {
|
return driverid;
|
}
|
|
/**
|
* 司机id
|
*/
|
public void setDriverid(Integer driverid) {
|
this.driverid = driverid;
|
}
|
|
/**
|
* 线路id
|
*/
|
public Integer getLineid() {
|
return lineid;
|
}
|
|
/**
|
* 线路id
|
*/
|
public void setLineid(Integer lineid) {
|
this.lineid = lineid;
|
}
|
|
/**
|
* 创建时间
|
*/
|
public Date getCreatetime() {
|
return createtime;
|
}
|
|
/**
|
* 创建时间
|
*/
|
public void setCreatetime(Date createtime) {
|
this.createtime = createtime;
|
}
|
|
/**
|
* 添加时间【后台使用】
|
*/
|
public String getAddtime() {
|
return addtime;
|
}
|
|
/**
|
* 添加时间【后台使用】
|
*/
|
public void setAddtime(String addtime) {
|
this.addtime = addtime;
|
}
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
TDriverLine other = (TDriverLine) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getDriverid() == null ? other.getDriverid() == null : this.getDriverid().equals(other.getDriverid()))
|
&& (this.getLineid() == null ? other.getLineid() == null : this.getLineid().equals(other.getLineid()))
|
&& (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
|
&& (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getDriverid() == null) ? 0 : getDriverid().hashCode());
|
result = prime * result + ((getLineid() == null) ? 0 : getLineid().hashCode());
|
result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
|
result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", id=").append(id);
|
sb.append(", driverid=").append(driverid);
|
sb.append(", lineid=").append(lineid);
|
sb.append(", createtime=").append(createtime);
|
sb.append(", addtime=").append(addtime);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|