190 lines
3.6 KiB
Java
190 lines
3.6 KiB
Java
package com.ruoyi.system.domain;
|
|
|
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
import com.ruoyi.common.annotation.Excel;
|
|
import com.ruoyi.common.core.domain.BaseEntity;
|
|
|
|
/**
|
|
* 自定义地区对象 diy_city
|
|
*
|
|
* @author ruoyi
|
|
* @date 2025-05-30
|
|
*/
|
|
public class DiyCity extends BaseEntity
|
|
{
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/** $column.columnComment */
|
|
private Integer id;
|
|
|
|
/** 名称 */
|
|
@Excel(name = "名称")
|
|
private String title;
|
|
|
|
/** 父级ID */
|
|
@Excel(name = "父级ID")
|
|
private Long parentId;
|
|
|
|
/** 排序 */
|
|
@Excel(name = "排序")
|
|
private Long order;
|
|
|
|
/** 纬度 */
|
|
@Excel(name = "纬度")
|
|
private String lat;
|
|
|
|
/** 经度 */
|
|
@Excel(name = "经度")
|
|
private String lng;
|
|
|
|
/** 省id */
|
|
@Excel(name = "省id")
|
|
private Long provinceId;
|
|
|
|
/** 市 */
|
|
@Excel(name = "市")
|
|
private Long cityId;
|
|
|
|
/** 区 */
|
|
@Excel(name = "区")
|
|
private Long districtId;
|
|
|
|
/** $column.columnComment */
|
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
|
private Date createdAt;
|
|
|
|
/** $column.columnComment */
|
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
|
private Date updatedAt;
|
|
|
|
public void setId(Integer id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public Integer getId()
|
|
{
|
|
return id;
|
|
}
|
|
|
|
public void setTitle(String title)
|
|
{
|
|
this.title = title;
|
|
}
|
|
|
|
public String getTitle()
|
|
{
|
|
return title;
|
|
}
|
|
|
|
public void setParentId(Long parentId)
|
|
{
|
|
this.parentId = parentId;
|
|
}
|
|
|
|
public Long getParentId()
|
|
{
|
|
return parentId;
|
|
}
|
|
|
|
public void setOrder(Long order)
|
|
{
|
|
this.order = order;
|
|
}
|
|
|
|
public Long getOrder()
|
|
{
|
|
return order;
|
|
}
|
|
|
|
public void setLat(String lat)
|
|
{
|
|
this.lat = lat;
|
|
}
|
|
|
|
public String getLat()
|
|
{
|
|
return lat;
|
|
}
|
|
|
|
public void setLng(String lng)
|
|
{
|
|
this.lng = lng;
|
|
}
|
|
|
|
public String getLng()
|
|
{
|
|
return lng;
|
|
}
|
|
|
|
public void setProvinceId(Long provinceId)
|
|
{
|
|
this.provinceId = provinceId;
|
|
}
|
|
|
|
public Long getProvinceId()
|
|
{
|
|
return provinceId;
|
|
}
|
|
|
|
public void setCityId(Long cityId)
|
|
{
|
|
this.cityId = cityId;
|
|
}
|
|
|
|
public Long getCityId()
|
|
{
|
|
return cityId;
|
|
}
|
|
|
|
public void setDistrictId(Long districtId)
|
|
{
|
|
this.districtId = districtId;
|
|
}
|
|
|
|
public Long getDistrictId()
|
|
{
|
|
return districtId;
|
|
}
|
|
|
|
public void setCreatedAt(Date createdAt)
|
|
{
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public Date getCreatedAt()
|
|
{
|
|
return createdAt;
|
|
}
|
|
|
|
public void setUpdatedAt(Date updatedAt)
|
|
{
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
|
|
public Date getUpdatedAt()
|
|
{
|
|
return updatedAt;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
.append("id", getId())
|
|
.append("title", getTitle())
|
|
.append("parentId", getParentId())
|
|
.append("order", getOrder())
|
|
.append("lat", getLat())
|
|
.append("lng", getLng())
|
|
.append("provinceId", getProvinceId())
|
|
.append("cityId", getCityId())
|
|
.append("districtId", getDistrictId())
|
|
.append("createdAt", getCreatedAt())
|
|
.append("updatedAt", getUpdatedAt())
|
|
.toString();
|
|
}
|
|
}
|