开发区省市区改为下拉框
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package com.fangjia.dal.mongo;
|
||||
|
||||
import com.fangjia.dal.MongoDaoImpl;
|
||||
import com.fangjia.dal.mongo.dao.AdministrativeMappingDao;
|
||||
import com.fangjia.dal.mongo.model.AdministrativeMapping;
|
||||
|
||||
public class AdministrativeMappingDaoImpl extends MongoDaoImpl<AdministrativeMapping> implements AdministrativeMappingDao {
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.fangjia.dal.mongo.dao;
|
||||
|
||||
|
||||
import com.fangjia.dal.MongoDao;
|
||||
import com.fangjia.dal.mongo.model.AdministrativeMapping;
|
||||
|
||||
public interface AdministrativeMappingDao extends MongoDao<AdministrativeMapping> {
|
||||
|
||||
}
|
||||
+255
@@ -0,0 +1,255 @@
|
||||
package com.fangjia.dal.mongo.model;
|
||||
|
||||
import com.fangjia.dal.MongoEntity;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Entity
|
||||
@Table(name = "business.administrative_mapping")
|
||||
public class AdministrativeMapping implements MongoEntity {
|
||||
|
||||
private String id;
|
||||
private String province;
|
||||
private String city;
|
||||
private String district;
|
||||
private String street;
|
||||
private String tjjStreetCode;
|
||||
private String streetPinyin;
|
||||
private String pid;
|
||||
private String tjjProvinceCode;
|
||||
|
||||
private String tjjCityCode;
|
||||
|
||||
private String tjjDistrictCode;
|
||||
|
||||
|
||||
private Integer tjjSourceYear;
|
||||
|
||||
private String mzbProvinceCode;
|
||||
|
||||
private String mzbCityCode;
|
||||
|
||||
private String mzbDistrictCode;
|
||||
|
||||
private String mzbDistrictName;
|
||||
|
||||
private String mzbStreetCode;
|
||||
private Integer mzbSourceYear;
|
||||
|
||||
private String type;
|
||||
private String districtShort;
|
||||
private String cityShort;
|
||||
private String provinceShort;
|
||||
|
||||
private List<String> alias;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
@Column(name = "_id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Column(name = "province")
|
||||
public String getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(String province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
@Column(name = "city")
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
@Column(name = "district")
|
||||
public String getDistrict() {
|
||||
return district;
|
||||
}
|
||||
|
||||
public void setDistrict(String district) {
|
||||
this.district = district;
|
||||
}
|
||||
|
||||
@Column(name = "street")
|
||||
public String getStreet() {
|
||||
return street;
|
||||
}
|
||||
|
||||
public void setStreet(String street) {
|
||||
this.street = street;
|
||||
}
|
||||
|
||||
@Column(name = "pid")
|
||||
public String getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(String pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
@Column(name = "tjj_province_code")
|
||||
public String getTjjProvinceCode() {
|
||||
return tjjProvinceCode;
|
||||
}
|
||||
|
||||
public void setTjjProvinceCode(String tjjProvinceCode) {
|
||||
this.tjjProvinceCode = tjjProvinceCode;
|
||||
}
|
||||
|
||||
@Column(name = "tjj_city_code")
|
||||
public String getTjjCityCode() {
|
||||
return tjjCityCode;
|
||||
}
|
||||
|
||||
public void setTjjCityCode(String tjjCityCode) {
|
||||
this.tjjCityCode = tjjCityCode;
|
||||
}
|
||||
|
||||
@Column(name = "tjj_district_code")
|
||||
public String getTjjDistrictCode() {
|
||||
return tjjDistrictCode;
|
||||
}
|
||||
|
||||
public void setTjjDistrictCode(String tjjDistrictCode) {
|
||||
this.tjjDistrictCode = tjjDistrictCode;
|
||||
}
|
||||
|
||||
@Column(name = "tjj_street_code")
|
||||
public String getTjjStreetCode() {
|
||||
return tjjStreetCode;
|
||||
}
|
||||
|
||||
public void setTjjStreetCode(String tjjStreetCode) {
|
||||
this.tjjStreetCode = tjjStreetCode;
|
||||
}
|
||||
|
||||
@Column(name = "tjj_source_year")
|
||||
public Integer getTjjSourceYear() {
|
||||
return tjjSourceYear;
|
||||
}
|
||||
|
||||
public void setTjjSourceYear(Integer tjjSourceYear) {
|
||||
this.tjjSourceYear = tjjSourceYear;
|
||||
}
|
||||
|
||||
@Column(name = "mzb_province_code")
|
||||
public String getMzbProvinceCode() {
|
||||
return mzbProvinceCode;
|
||||
}
|
||||
|
||||
public void setMzbProvinceCode(String mzbProvinceCode) {
|
||||
this.mzbProvinceCode = mzbProvinceCode;
|
||||
}
|
||||
|
||||
@Column(name = "mzb_city_code")
|
||||
public String getMzbCityCode() {
|
||||
return mzbCityCode;
|
||||
}
|
||||
|
||||
public void setMzbCityCode(String mzbCityCode) {
|
||||
this.mzbCityCode = mzbCityCode;
|
||||
}
|
||||
|
||||
@Column(name = "mzb_district_code")
|
||||
public String getMzbDistrictCode() {
|
||||
return mzbDistrictCode;
|
||||
}
|
||||
|
||||
public void setMzbDistrictCode(String mzbDistrictCode) {
|
||||
this.mzbDistrictCode = mzbDistrictCode;
|
||||
}
|
||||
|
||||
@Column(name = "mzb_district_name")
|
||||
public String getMzbDistrictName() {
|
||||
return mzbDistrictName;
|
||||
}
|
||||
|
||||
public void setMzbDistrictName(String mzbDistrictName) {
|
||||
this.mzbDistrictName = mzbDistrictName;
|
||||
}
|
||||
|
||||
@Column(name = "mzb_street_code")
|
||||
public String getMzbStreetCode() {
|
||||
return mzbStreetCode;
|
||||
}
|
||||
|
||||
public void setMzbStreetCode(String mzbStreetCode) {
|
||||
this.mzbStreetCode = mzbStreetCode;
|
||||
}
|
||||
@Column(name = "mzb_source_year")
|
||||
public Integer getMzbSourceYear() {
|
||||
return mzbSourceYear;
|
||||
}
|
||||
|
||||
public void setMzbSourceYear(Integer mzbSourceYear) {
|
||||
this.mzbSourceYear = mzbSourceYear;
|
||||
}
|
||||
|
||||
@Column(name = "type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Column(name = "district_short")
|
||||
public String getDistrictShort() {
|
||||
return districtShort;
|
||||
}
|
||||
|
||||
public void setDistrictShort(String districtShort) {
|
||||
this.districtShort = districtShort;
|
||||
}
|
||||
|
||||
@Column(name = "city_short")
|
||||
public String getCityShort() {
|
||||
return cityShort;
|
||||
}
|
||||
|
||||
public void setCityShort(String cityShort) {
|
||||
this.cityShort = cityShort;
|
||||
}
|
||||
|
||||
@Column(name = "province_short")
|
||||
public String getProvinceShort() {
|
||||
return provinceShort;
|
||||
}
|
||||
|
||||
public void setProvinceShort(String provinceShort) {
|
||||
this.provinceShort = provinceShort;
|
||||
}
|
||||
|
||||
@Column(name = "alias")
|
||||
public List<String> getAlias() {
|
||||
return alias;
|
||||
}
|
||||
|
||||
public void setAlias(List<String> alias) {
|
||||
this.alias = alias;
|
||||
}
|
||||
|
||||
@Column(name = "street_pinyin")
|
||||
public String getStreetPinyin() {
|
||||
return streetPinyin;
|
||||
}
|
||||
|
||||
public void setStreetPinyin(String streetPinyin) {
|
||||
this.streetPinyin = streetPinyin;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user