package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.DataSource;
|
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 io.swagger.models.auth.In;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.Objects;
|
|
/**
|
* <p>
|
* 开通城市表
|
* </p>
|
*
|
* @author 吕雪
|
* @since 2020-06-02
|
*/
|
|
@TableName("t_open_city_site")
|
public class TOpenCitySite extends Model<TOpenCitySite> {
|
|
private static final long serialVersionUID = 1L;
|
|
@Override
|
public boolean equals(Object o) {
|
if (this == o) return true;
|
if (o == null || getClass() != o.getClass()) return false;
|
TOpenCitySite that = (TOpenCitySite) o;
|
return Objects.equals(id, that.id) && Objects.equals(lon, that.lon) && Objects.equals(lat, that.lat) && Objects.equals(name, that.name) && Objects.equals(insertTime, that.insertTime) && Objects.equals(openCityId, that.openCityId);
|
}
|
|
@Override
|
public int hashCode() {
|
return Objects.hash(id, lon, lat, name, insertTime, openCityId);
|
}
|
|
public String getInsertTime1() {
|
|
return insertTime1;
|
}
|
|
public void setInsertTime1(String insertTime1) {
|
this.insertTime1 = insertTime1;
|
}
|
|
@Override
|
public String toString() {
|
return "TOpenCitySite{" +
|
"id=" + id +
|
", lon='" + lon + '\'' +
|
", lat='" + lat + '\'' +
|
", name='" + name + '\'' +
|
", insertTime=" + insertTime +
|
", openCityId=" + openCityId +
|
'}';
|
}
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getLon() {
|
return lon;
|
}
|
|
public void setLon(String lon) {
|
this.lon = lon;
|
}
|
|
public String getLat() {
|
return lat;
|
}
|
|
public void setLat(String lat) {
|
this.lat = lat;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Date getInsertTime() {
|
return insertTime;
|
}
|
|
public void setInsertTime(Date insertTime) {
|
this.insertTime = insertTime;
|
}
|
|
public Integer getOpenCityId() {
|
return openCityId;
|
}
|
|
public void setOpenCityId(Integer openCityId) {
|
this.openCityId = openCityId;
|
}
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 经度
|
*/
|
private String lon;
|
/**
|
* 纬度
|
*/
|
private String lat;
|
|
public Integer getFlag() {
|
return flag;
|
}
|
|
public void setFlag(Integer flag) {
|
this.flag = flag;
|
}
|
|
private Integer flag;
|
/**
|
* 类型 1机场2站点
|
*/
|
private Integer type;
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
/**
|
* 站点名称
|
*/
|
private String name;
|
private Date insertTime;
|
@TableField(exist = false)
|
private String insertTime1;
|
private Integer openCityId;
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|