package com.dsh.other.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.baomidou.mybatisplus.extension.activerecord.Model; import java.io.Serializable; /** *

* 省市区三级联动 *

* * @author 吕雪 * @since 2019-12-30 */ @TableName("t_region") public class Region extends Model { private static final long serialVersionUID = 1L; /** * 主键ID */ @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * 城市名称 */ @TableField("name") private String name; @TableField("code") private String code; @TableField("citycode") private String citycode; /** * 父级ID */ @TableField("parent_id") private Integer parentId; /** * 英文名称 */ @TableField("english") private String english; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getCitycode() { return citycode; } public void setCitycode(String citycode) { this.citycode = citycode; } public Integer getParentId() { return parentId; } public void setParentId(Integer parentId) { this.parentId = parentId; } public String getEnglish() { return english; } public void setEnglish(String english) { this.english = english; } @Override protected Serializable pkVal() { return this.id; } @Override public String toString() { return "Region{" + "id=" + id + ", name=" + name + ", code=" + code + ", citycode=" + citycode + ", parentId=" + parentId + ", english=" + english + "}"; } }