1. 程式人生 > >springmvc框架下的國內地區級聯效果(共享一下給學習的小夥伴)

springmvc框架下的國內地區級聯效果(共享一下給學習的小夥伴)

前臺頁面html

<select name="area" id= "areaId" onchange="areaChange();">
                    		<option value="-1">--請選擇地區--</option>
							<#list configAreaList as configArea >
								<option value="${configArea.id}">${configArea.extraAttr.cn}</option>
							</#list>
                    	</select>
                    	
						<select name="city" id= "cityId" >
							<option value="-1">--請選擇城市--</option>
                    	</select>

前臺js
//點選省份級聯要顯示的城市
function areaChange(){
	var initStr ="<option value='-1'>--請選擇城市--</option>";
	var areaId = $("#areaId").val();//省份Id
	var cityId = $("#cityId").val();//城市Id
	$.ajax({
		url: "${huluUrl}/query-area-zone/"+areaId,
		type: "get",
		dataType: "json",
		async: false,//同步
		success: function(text){
			var str ="";
			for (var i = 0; i < text.length; i++) {
				var array_element = text[i];
				str += "<option value='"+array_element.id+"'>"+array_element.name+"</option>";
				console.debug(str);
			}
			$("#cityId").html(initStr+str);
		}
	});
}

java程式碼//

//springMVC  Controller 層

package com.rudong.outsource.hulu.front.ctl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rudong.outsource.hulu.db.dbsvc.front.AreaDbSvc;
import com.rudong.outsource.hulu.db.dbsvc.front.CityDbSvc;
import com.rudong.outsource.hulu.db.dbsvc.front.CountryDbSvc;
import com.rudong.outsource.hulu.util.dict.DataDictItem;
import com.rudong.outsource.hulu.util.dict.PubZoneVo;
/**
 * 
 * 地區聯動查詢
 *
 */
@Controller
public class ZoneController {
	
	
	@Autowired
	private CityDbSvc cityDbSvc;
	
	@Autowired
	private AreaDbSvc areaDbSvc;
	@Autowired
	private CountryDbSvc countryDbSvc;
	
	/**
	 * 省份切換查詢下級城市
	 */
	@ResponseBody
	@RequestMapping(value = "/query-area-zone/{zoneId}", method = RequestMethod.GET)
	public List<PubZoneVo> queryArea(@PathVariable("zoneId") Long zoneId) {
		
		return getRegionByStateId(zoneId.intValue(),"city");
	}
	
	/**
	 * 抽取的方法:根據父ID獲取子集
	 */
	private List<PubZoneVo>  getRegionByStateId(Integer code,String dicttype) {
		try {
			
			List<DataDictItem> list = new ArrayList<DataDictItem>();
			if(dicttype.equals("city")){//點選地區
				list = cityDbSvc.queryAllCity();//所有城市
			}
			
			//國家
			//List<DataDictItem> configCountryList= countryDbSvc.queryAllCountry();
			//地區
			//List<DataDictItem> configAreaList= areaDbSvc.queryAllArea();
			//城市
			//List<DataDictItem> configCityList= cityDbSvc.queryAllCity();
			
			if(null != code && code > 0){
				List<PubZoneVo> zoneVoList = new ArrayList<PubZoneVo>();
				for (DataDictItem d : list) {
					Integer parentVal = null;
					if("city".equals(dicttype))
						if(null !=  d.getExtraAttr().get("areaId")){
							parentVal = Integer.valueOf(d.getExtraAttr().get("areaId").toString());
						}
					if(null != d.getParentValue()){
						parentVal =  Integer.valueOf(d.getParentValue());
					}
					if(null != parentVal && parentVal.intValue() == code.intValue()){
						PubZoneVo vo = new PubZoneVo();
						vo.setId(Long.parseLong(d.getValue()));
						vo.setName(d.getExtraAttr().get("cn").toString());
						zoneVoList.add(vo);
					}
				}
				return zoneVoList;
			}
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
		return null;
	}
	
	
	
	
}

////java 工具類 PubZoneVo
package com.rudong.outsource.hulu.util.dict;

public class PubZoneVo {
	private Long id;
	private String name;
	private Long parentid;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getParentid() {
		return parentid;
	}
	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}
	

}

////java 工具類 DataDictItem
package com.rudong.outsource.hulu.util.dict;

import java.util.HashMap;
import java.util.Map;

public class DataDictItem {

  private Long id;
  private String type;
  private String parentValue;
  private String value;
  private Integer position;
  private Integer status;
  private String remark;
  
  private String parent;  //父級的資料

  /** collection of extra attributes */
  private Map<String, Object> extraAttr = new HashMap<>();
  private String messageKey = null;

  public void addAttribute(String key, Object value) {
    extraAttr.put(key, value);
  }
  public String getMessageKey() {
    if (null == messageKey) {
      messageKey = type+"."+value;
    }
    return messageKey;
  }
 
public String getParent() {
	return parent;
}
public void setParent(String parent) {
	this.parent = parent;
}
public void setMessageKey(String messageKey) {
	this.messageKey = messageKey;
}
public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getParentValue() {
    return parentValue;
  }

  public void setParentValue(String parentValue) {
    this.parentValue = parentValue;
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public Map<String, Object> getExtraAttr() {
    return extraAttr;
  }

  public void setExtraAttr(Map<String, Object> extraAttr) {
    this.extraAttr = extraAttr;
  }

  public Integer getPosition() {
    return position;
  }

  public void setPosition(Integer position) {
    this.position = position;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((type == null) ? 0 : type.hashCode());
	result = prime * result + ((value == null) ? 0 : value.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	DataDictItem other = (DataDictItem) obj;
	if (type == null) {
		if (other.type != null)
			return false;
	} else if (!type.equals(other.type))
		return false;
	if (value == null) {
		if (other.value != null)
			return false;
	} else if (!value.equals(other.value))
		return false;
	return true;
}
  
  
  
}

///service 層的方法  CityDbSvc.java

package com.rudong.outsource.hulu.db.dbsvc.front;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

/*
 Initially generated file by codefather.

 Modify this to implement more functions.
 */
import com.rudong.outsource.hulu.db.dbsvc.front.base.CityDbSvcBase;
import com.rudong.outsource.hulu.db.po.front.City;
import com.rudong.outsource.hulu.util.dict.DataDictItem;

@Service
public class CityDbSvc extends CityDbSvcBase {
	
	/**
	 * 培訓師服務的城市
	 * @return
	 */
	public List<City> queryCity(Long[] serviceCity){
		try {
			return repo.queryCity(serviceCity);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	} 
	
	/**
	 *  所有城市
	 *  資料字典
	 */
	public List<DataDictItem> queryAllCity() {
	    List<City> configs = repo.queryAllCity();
	    List<DataDictItem> items = new ArrayList<>();
	    if (null != configs) {
	      for(City c: configs) {
	        DataDictItem d = new DataDictItem();
	        d.setId(c.getId().longValue());
	        d.setParentValue(c.getRegionId()+"");//本城市所屬地區  
	        d.addAttribute("areaId", c.getRegionId());  //本城市所屬地區  
	        d.addAttribute("cn", c.getCn());
	        d.addAttribute("zipcode", c.getZipCode());
	        d.setStatus(c.getStatus());;
	        
	        d.setType("city");
	        d.setValue(c.getId()+"");
	        items.add(d);
	      }
	    }
	    return items;
	 }
	
	
}

////////////////////省份service層

package com.rudong.outsource.hulu.db.dbsvc.front;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

/*
 Initially generated file by codefather.

 Modify this to implement more functions.
 */
import com.rudong.outsource.hulu.db.dbsvc.front.base.AreaDbSvcBase;
import com.rudong.outsource.hulu.db.po.front.Area;
import com.rudong.outsource.hulu.util.dict.DataDictItem;

@Service
public class AreaDbSvc extends AreaDbSvcBase {
	
	/**
	 *  所有地區
	 *  資料字典
	 */
	public List<DataDictItem> queryAllArea() {
	    List<Area> configs = repo.queryAllArea();
	    List<DataDictItem> items = new ArrayList<>();
	    if (null != configs) {
	      for(Area c: configs) {
	        DataDictItem d = new DataDictItem();
	        d.setId(Long.parseLong(c.getId()+""));
	        d.setParentValue(c.getCountryId()+"");//本地區所屬國家
	        d.addAttribute("countryId",c.getCountryId());//本地區所屬國家
	        d.addAttribute("cn", c.getCn());
	        d.setStatus(c.getStatus());
	        
	        d.setType("region");
	        d.setValue(c.getId()+"");
	        items.add(d);
	      }
	    }
	    return items;
	 }
	
}
///國家service 層
package com.rudong.outsource.hulu.db.dbsvc.front;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

/*
 Initially generated file by codefather.

 Modify this to implement more functions.
 */
import com.rudong.outsource.hulu.db.dbsvc.front.base.CountryDbSvcBase;
import com.rudong.outsource.hulu.db.po.front.Country;
import com.rudong.outsource.hulu.util.dict.DataDictItem;

@Service
public class CountryDbSvc extends CountryDbSvcBase {
	
	/**
	 *  所有國家
	 *  資料字典
	 */
	public List<DataDictItem> queryAllCountry() {
	    List<Country> countries = repo.queryAllCountry();
	    List<DataDictItem> items = new ArrayList<>();
	    if (null != countries) {
	      for(Country c: countries) {
	        DataDictItem d = new DataDictItem();
	        d.setId(c.getId().longValue());
	        d.addAttribute("codeTel", c.getCodeTel());
	        d.addAttribute("isoCode", c.getIsoCode());
	        d.addAttribute("continentId", c.getContinentId());//國外 use 所屬州
	        d.addAttribute("cn", c.getCn());
	        d.setStatus(c.getStatus());
	        
	        d.setType("country");//國家
	        d.setValue(c.getId()+"");
	        items.add(d);
	      }
	    }
	    return items;
	 }
}




////實體類  城市,省份,國家  (沒有的類可以自己引入一下)
package com.rudong.outsource.hulu.db.po.front.base;


/*
 * This file is generated by code father, don't modify this file by manual.
 */


import javax.persistence.Column;
import javax.persistence.Id;


@Entity
@Table(name = "db_city")
public class City  {
  @Id
  protected  Long id;

  public Long getId() {
    return this.id;
  }
  public void setId(Long val) {
    this.id = val;
  }

  
  @Column(name="regionId"  ,nullable=false    )
  private Long regionId;
  public void setRegionId( Long value) {
    this.regionId = value;
  }
  public Long getRegionId() {
    return this.regionId;
  }
  
  @Column(name="cn"  ,nullable=false    )
  private String cn;
  public void setCn( String value) {
    this.cn = value;
  }
  public String getCn() {
    return this.cn;
  }
  
  @Column(name="zipCode"      )
  private String zipCode;
  public void setZipCode( String value) {
    this.zipCode = value;
  }
  public String getZipCode() {
    return this.zipCode;
  }
  
  @Column(name="status"      )
  private Integer status;
  public void setStatus( Integer value) {
    this.status = value;
  }
  public Integer getStatus() {
    return this.status;
  }

}

//省份
package com.rudong.outsource.hulu.db.po.front.base;


/*
 * This file is generated by code father, don't modify this file by manual.
 */


import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import javax.persistence.Entity;
import javax.persistence.Table;



@Entity
@Table(name = "db_area")
public class Area  {
  @Id
  protected  Long id;

  public Long getId() {
    return this.id;
  }
  public void setId(Long val) {
    this.id = val;
  }

  
  @Column(name="countryId"  ,nullable=false    )
  private Long countryId;
  public void setCountryId( Long value) {
    this.countryId = value;
  }
  public Long getCountryId() {
    return this.countryId;
  }
  
  @Column(name="cn"      )
  private String cn;
  public void setCn( String value) {
    this.cn = value;
  }
  public String getCn() {
    return this.cn;
  }
  
  @Column(name="status"      )
  private Integer status;
  public void setStatus( Integer value) {
    this.status = value;
  }
  public Integer getStatus() {
    return this.status;
  }

}

//國家
package com.rudong.outsource.hulu.db.po.front.base;


/*
 * This file is generated by code father, don't modify this file by manual.
 */


import javax.persistence.Column;
import javax.persistence.Id;


@Entity
@Table(name = "db_country")
public class Country  {
  @Id
  protected  Long id;

  public Long getId() {
    return this.id;
  }
  public void setId(Long val) {
    this.id = val;
  }

  
  @Column(name="codeTel"      )
  private String codeTel;
  public void setCodeTel( String value) {
    this.codeTel = value;
  }
  public String getCodeTel() {
    return this.codeTel;
  }
  
  @Column(name="isoCode"      )
  private String isoCode;
  public void setIsoCode( String value) {
    this.isoCode = value;
  }
  public String getIsoCode() {
    return this.isoCode;
  }
  
  @Column(name="continentId"      )
  private Long continentId;
  public void setContinentId( Long value) {
    this.continentId = value;
  }
  public Long getContinentId() {
    return this.continentId;
  }
  
  @Column(name="cn"      )
  private String cn;
  public void setCn( String value) {
    this.cn = value;
  }
  public String getCn() {
    return this.cn;
  }
  
  @Column(name="status"      )
  private Integer status;
  public void setStatus( Integer value) {
    this.status = value;
  }
  public Integer getStatus() {
    return this.status;
  }

}

////DAO 層 

城市,省份/國家

/**
	 * 國家
	 */
	@Query("select c from Country c ")
	List<Country> queryAllCountry();
//省份
	@Query("select a from Area a ")
	List<Area> queryAllArea();

//城市
/**
	 * 所有城市
	 * 資料字典
	 */
	@Query("select c from City c ")
	List<City> queryAllCity();


//表結構  值
-- ----------------------------
-- Table structure for `db_area`
-- ----------------------------
DROP TABLE IF EXISTS `db_area`;
CREATE TABLE `db_area` (
  `id` bigint(11) NOT NULL,
  `countryId` bigint(11) NOT NULL COMMENT '國家ID',
  `cn` varchar(100) NOT NULL COMMENT '中文描述',
  `status` smallint(6) NOT NULL default '1' COMMENT '狀態',
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of db_area
-- ----------------------------
INSERT INTO `db_area` VALUES ('100202', '247', '北京 (Beijing)', '1');
INSERT INTO `db_area` VALUES ('100203', '247', '上海 (Shanghai)', '1');
INSERT INTO `db_area` VALUES ('100204', '247', '天津 (Tianjin)', '1');
INSERT INTO `db_area` VALUES ('100205', '247', '重慶 (Chongqing)', '1');
INSERT INTO `db_area` VALUES ('100206', '247', '河北 (Hebei)', '1');
INSERT INTO `db_area` VALUES ('100207', '247', '山西 (Shanxi)', '1');
INSERT INTO `db_area` VALUES ('100208', '247', '內蒙古 (Neimenggu)', '1');
INSERT INTO `db_area` VALUES ('100209', '247', '遼寧 (Liaoning)', '1');
INSERT INTO `db_area` VALUES ('100210', '247', '吉林 (Jilin)', '1');
INSERT INTO `db_area` VALUES ('100211', '247', '黑龍江 (Heilongjiang)', '1');
INSERT INTO `db_area` VALUES ('100212', '247', '山東 (Shandong)', '1');
INSERT INTO `db_area` VALUES ('100213', '247', '江蘇 (Jiangsu)', '1');
INSERT INTO `db_area` VALUES ('100214', '247', '安徽 (Anhui)', '1');
INSERT INTO `db_area` VALUES ('100215', '247', '浙江 (Zhejiang)', '1');
INSERT INTO `db_area` VALUES ('100216', '247', '福建 (Fujian)', '1');
INSERT INTO `db_area` VALUES ('100217', '247', '江西 (Jiangxi)', '1');
INSERT INTO `db_area` VALUES ('100218', '247', '河南 (Henan)', '1');
INSERT INTO `db_area` VALUES ('100219', '247', '湖北 (Hubei)', '1');
INSERT INTO `db_area` VALUES ('100220', '247', '湖南 (Hunan)', '1');
INSERT INTO `db_area` VALUES ('100221', '247', '廣東 (Guangdong)', '1');
INSERT INTO `db_area` VALUES ('100222', '247', '廣西 (Guangxi)', '1');
INSERT INTO `db_area` VALUES ('100223', '247', '海南 (Hainan)', '1');
INSERT INTO `db_area` VALUES ('100224', '247', '四川 (Sichuan)', '1');
INSERT INTO `db_area` VALUES ('100225', '247', '貴州 (Guizhou)', '1');
INSERT INTO `db_area` VALUES ('100226', '247', '雲南 (Yunnan)', '1');
INSERT INTO `db_area` VALUES ('100227', '247', '陝西 (Shaanxi)', '1');
INSERT INTO `db_area` VALUES ('100228', '247', '甘肅 (Gansu)', '1');
INSERT INTO `db_area` VALUES ('100229', '247', '寧夏 (Ningxia)', '1');
INSERT INTO `db_area` VALUES ('100230', '247', '青海 (Qinghai)', '1');
INSERT INTO `db_area` VALUES ('100232', '247', '西藏 (Xizang)', '1');
INSERT INTO `db_area` VALUES ('101195', '247', '香港 (Hong Kong)', '1');
INSERT INTO `db_area` VALUES ('101196', '247', '澳門 (Macao)', '1');
INSERT INTO `db_area` VALUES ('101198', '247', '臺灣 (Taiwan)', '1');
INSERT INTO `db_area` VALUES ('102244', '247', '新疆 (Xinjiang)', '1');

-- ----------------------------
-- Table structure for `db_city`
-- ----------------------------
DROP TABLE IF EXISTS `db_city`;
CREATE TABLE `db_city` (
  `id` bigint(11) NOT NULL,
  `regionId` bigint(11) NOT NULL COMMENT '地區ID',
  `cn` varchar(100) NOT NULL COMMENT '中文名',
  `zipCode` varchar(10) NOT NULL COMMENT '郵編',
  `status` smallint(6) NOT NULL default '1' COMMENT '狀態',
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of db_city
-- ----------------------------
INSERT INTO `db_city` VALUES ('200001', '100202', '北京', '100000', '1');
INSERT INTO `db_city` VALUES ('200002', '100204', '天津', '100000', '1');
INSERT INTO `db_city` VALUES ('200003', '100206', '石家莊', '050000', '1');
INSERT INTO `db_city` VALUES ('200004', '100206', '唐山', '063000', '1');
INSERT INTO `db_city` VALUES ('200005', '100206', '秦皇島', '066000', '1');
INSERT INTO `db_city` VALUES ('200006', '100206', '邯鄲', '056000', '1');
INSERT INTO `db_city` VALUES ('200007', '100206', '邢臺', '054000', '1');
INSERT INTO `db_city` VALUES ('200008', '100206', '保定', '071000', '1');
INSERT INTO `db_city` VALUES ('200009', '100206', '張家口', '075000', '1');
INSERT INTO `db_city` VALUES ('200010', '100206', '承德', '067000', '1');
INSERT INTO `db_city` VALUES ('200011', '100206', '滄州', '061000', '1');
INSERT INTO `db_city` VALUES ('200012', '100206', '廊坊', '065000', '1');
INSERT INTO `db_city` VALUES ('200013', '100206', '衡水', '053000', '1');
INSERT INTO `db_city` VALUES ('200014', '100207', '太原', '030000', '1');
INSERT INTO `db_city` VALUES ('200015', '100207', '大同', '037000', '1');
INSERT INTO `db_city` VALUES ('200016', '100207', '陽泉', '045000', '1');
INSERT INTO `db_city` VALUES ('200017', '100207', '長治', '046000', '1');
INSERT INTO `db_city` VALUES ('200018', '100207', '晉城', '048000', '1');
INSERT INTO `db_city` VALUES ('200019', '100207', '朔州', '036000', '1');
INSERT INTO `db_city` VALUES ('200020', '100207', '晉中', '030600', '1');
INSERT INTO `db_city` VALUES ('200021', '100207', '運城', '044000', '1');
INSERT INTO `db_city` VALUES ('200022', '100207', '忻州', '034000', '1');
INSERT INTO `db_city` VALUES ('200023', '100207', '臨汾', '041000', '1');
INSERT INTO `db_city` VALUES ('200024', '100207', '呂梁', '030500', '1');
INSERT INTO `db_city` VALUES ('200025', '100208', '呼和浩特', '010000', '1');
INSERT INTO `db_city` VALUES ('200026', '100208', '包頭', '014000', '1');
INSERT INTO `db_city` VALUES ('200027', '100208', '烏海', '016000', '1');
INSERT INTO `db_city` VALUES ('200028', '100208', '赤峰', '024000', '1');
INSERT INTO `db_city` VALUES ('200029', '100208', '通遼', '028000', '1');
INSERT INTO `db_city` VALUES ('200030', '100208', '鄂爾多斯', '010300', '1');
INSERT INTO `db_city` VALUES ('200031', '100208', '呼倫貝爾', '021000', '1');
INSERT INTO `db_city` VALUES ('200032', '100208', '巴彥淖爾', '014400', '1');
INSERT INTO `db_city` VALUES ('200033', '100208', '烏蘭察布', '011800', '1');
INSERT INTO `db_city` VALUES ('200034', '100208', '興安盟', '137500', '1');
INSERT INTO `db_city` VALUES ('200035', '100208', '錫林郭勒盟', '011100', '1');
INSERT INTO `db_city` VALUES ('200036', '100208', '阿拉善盟', '016000', '1');
INSERT INTO `db_city` VALUES ('200037', '100209', '瀋陽', '110000', '1');
INSERT INTO `db_city` VALUES ('200038', '100209', '大連', '116000', '1');
INSERT INTO `db_city` VALUES ('200039', '100209', '鞍山', '114000', '1');
INSERT INTO `db_city` VALUES ('200040', '100209', '撫順', '113000', '1');
INSERT INTO `db_city` VALUES ('200041', '100209', '本溪', '117000', '1');
INSERT INTO `db_city` VALUES ('200042', '100209', '丹東', '118000', '1');
INSERT INTO `db_city` VALUES ('200043', '100209', '錦州', '121000', '1');
INSERT INTO `db_city` VALUES ('200044', '100209', '營口', '115000', '1');
INSERT INTO `db_city` VALUES ('200045', '100209', '阜新', '123000', '1');
INSERT INTO `db_city` VALUES ('200046', '100209', '遼陽', '111000', '1');
INSERT INTO `db_city` VALUES ('200047', '100209', '盤錦', '124000', '1');
INSERT INTO `db_city` VALUES ('200048', '100209', '鐵嶺', '112000', '1');
INSERT INTO `db_city` VALUES ('200049', '100209', '朝陽', '122000', '1');
INSERT INTO `db_city` VALUES ('200050', '100209', '葫蘆島', '125000', '1');
INSERT INTO `db_city` VALUES ('200051', '100210', '長春', '130000', '1');
INSERT INTO `db_city` VALUES ('200052', '100210', '吉林', '132000', '1');
INSERT INTO `db_city` VALUES ('200053', '100210', '四平', '136000', '1');
INSERT INTO `db_city` VALUES ('200054', '100210', '遼源', '136200', '1');
INSERT INTO `db_city` VALUES ('200055', '100210', '通化', '134000', '1');
INSERT INTO `db_city` VALUES ('200056', '100210', '白山', '134300', '1');
INSERT INTO `db_city` VALUES ('200057', '100210', '松原', '131100', '1');
INSERT INTO `db_city` VALUES ('200058', '100210', '白城', '137000', '1');
INSERT INTO `db_city` VALUES ('200059', '100210', '延邊', '133000', '1');
INSERT INTO `db_city` VALUES ('200060', '100211', '哈爾濱', '150000', '1');
INSERT INTO `db_city` VALUES ('200061', '100211', '齊齊哈爾', '161000', '1');
INSERT INTO `db_city` VALUES ('200062', '100211', '雞西', '158100', '1');
INSERT INTO `db_city` VALUES ('200063', '100211', '鶴崗', '154100', '1');
INSERT INTO `db_city` VALUES ('200064', '100211', '雙鴨山', '155100', '1');
INSERT INTO `db_city` VALUES ('200065', '100211', '大慶', '163000', '1');
INSERT INTO `db_city` VALUES ('200066', '100211', '伊春', '152300', '1');
INSERT INTO `db_city` VALUES ('200067', '100211', '佳木斯', '154000', '1');
INSERT INTO `db_city` VALUES ('200068', '100211', '七臺河', '154600', '1');
INSERT INTO `db_city` VALUES ('200069', '100211', '牡丹江', '157000', '1');
INSERT INTO `db_city` VALUES ('200070', '100211', '黑河', '164300', '1');
INSERT INTO `db_city` VALUES ('200071', '100211', '綏化', '152000', '1');
INSERT INTO `db_city` VALUES ('200072', '100211', '大興安嶺', '165000', '1');
INSERT INTO `db_city` VALUES ('200073', '100203', '上海', '200000', '1');
INSERT INTO `db_city` VALUES ('200074', '100213', '南京', '210000', '1');
INSERT INTO `db_city` VALUES ('200075', '100213', '無錫', '214000', '1');
INSERT INTO `db_city` VALUES ('200076', '100213', '徐州', '221000', '1');
INSERT INTO `db_city` VALUES ('200077', '100213', '常州', '213000', '1');
INSERT INTO `db_city` VALUES ('200078', '100213', '蘇州', '215000', '1');
INSERT INTO `db_city` VALUES ('200079', '100213', '南通', '226000', '1');
INSERT INTO `db_city` VALUES ('200080', '100213', '連雲港', '222000', '1');
INSERT INTO `db_city` VALUES ('200081', '100213', '淮安', '223200', '1');
INSERT INTO `db_city` VALUES ('200082', '100213', '鹽城', '224000', '1');
INSERT INTO `db_city` VALUES ('200083', '100213', '揚州', '225000', '1');
INSERT INTO `db_city` VALUES ('200084', '100213', '鎮江', '212000', '1');
INSERT INTO `db_city` VALUES ('200085', '100213', '泰州', '225300', '1');
INSERT INTO `db_city` VALUES ('200086', '100213', '宿遷', '223800', '1');
INSERT INTO `db_city` VALUES ('200087', '100215', '杭州', '310000', '1');
INSERT INTO `db_city` VALUES ('200088', '100215', '寧波', '315000', '1');
INSERT INTO `db_city` VALUES ('200089', '100215', '溫州', '325000', '1');
INSERT INTO `db_city` VALUES ('200090', '100215', '嘉興', '314000', '1');
INSERT INTO `db_city` VALUES ('200091', '100215', '湖州', '313000', '1');
INSERT INTO `db_city` VALUES ('200092', '100215', '紹興', '312000', '1');
INSERT INTO `db_city` VALUES ('200093', '100215', '金華', '321000', '1');
INSERT INTO `db_city` VALUES ('200094', '100215', '衢州', '324000', '1');
INSERT INTO `db_city` VALUES ('200095', '100215', '舟山', '316000', '1');
INSERT INTO `db_city` VALUES ('200096', '100215', '台州', '318000', '1');
INSERT INTO `db_city` VALUES ('200097', '100215', '麗水', '323000', '1');
INSERT INTO `db_city` VALUES ('200098', '100214', '合肥', '230000', '1');
INSERT INTO `db_city` VALUES ('200099', '100214', '蕪湖', '241000', '1');
INSERT INTO `db_city` VALUES ('200100', '100214', '蚌埠', '233000', '1');
INSERT INTO `db_city` VALUES ('200101', '100214', '淮南', '232000', '1');
INSERT INTO `db_city` VALUES ('200102', '100214', '馬鞍山', '243000', '1');
INSERT INTO `db_city` VALUES ('200103', '100214', '淮北', '235000', '1');
INSERT INTO `db_city` VALUES ('200104', '100214', '銅陵', '244000', '1');
INSERT INTO `db_city` VALUES ('200105', '100214', '安慶', '246000', '1');
INSERT INTO `db_city` VALUES ('200106', '100214', '黃山', '242700', '1');
INSERT INTO `db_city` VALUES ('200107', '100214', '滁州', '239000', '1');
INSERT INTO `db_city` VALUES ('200108', '100214', '阜陽', '236100', '1');
INSERT INTO `db_city` VALUES ('200109', '100214', '宿州', '234100', '1');
INSERT INTO `db_city` VALUES ('200110', '100214', '巢湖', '238000', '1');
INSERT INTO `db_city` VALUES ('200111', '100214', '六安', '237000', '1');
INSERT INTO `db_city` VALUES ('200112', '100214', '亳州', '236800', '1');
INSERT INTO `db_city` VALUES ('200113', '100214', '池州', '247100', '1');
INSERT INTO `db_city` VALUES ('200114', '100214', '宣城', '366000', '1');
INSERT INTO `db_city` VALUES ('200115', '100216', '福州', '350000', '1');
INSERT INTO `db_city` VALUES ('200116', '100216', '廈門', '361000', '1');
INSERT INTO `db_city` VALUES ('200117', '100216', '莆田', '351100', '1');
INSERT INTO `db_city` VALUES ('200118', '100216', '三明', '365000', '1');
INSERT INTO `db_city` VALUES ('200119', '100216', '泉州', '362000', '1');
INSERT INTO `db_city` VALUES ('200120', '100216', '漳州', '363000', '1');
INSERT INTO `db_city` VALUES ('200121', '100216', '南平', '353000', '1');
INSERT INTO `db_city` VALUES ('200122', '100216', '龍巖', '364000', '1');
INSERT INTO `db_city` VALUES ('200123', '100216', '寧德', '352100', '1');
INSERT INTO `db_city` VALUES ('200124', '100217', '南昌', '330000', '1');
INSERT INTO `db_city` VALUES ('200125', '100217', '景德鎮', '333000', '1');
INSERT INTO `db_city` VALUES ('200126', '100217', '萍鄉', '337000', '1');
INSERT INTO `db_city` VALUES ('200127', '100217', '九江', '332000', '1');
INSERT INTO `db_city` VALUES ('200128', '100217', '新餘', '338000', '1');
INSERT INTO `db_city` VALUES ('200129', '100217', '鷹潭', '335000', '1');
INSERT INTO `db_city` VALUES ('200130', '100217', '贛州', '341000', '1');
INSERT INTO `db_city` VALUES ('200131', '100217', '吉安', '343000', '1');
INSERT INTO `db_city` VALUES ('200132', '100217', '宜春', '336000', '1');
INSERT INTO `db_city` VALUES ('200133', '100217', '撫州', '332900', '1');
INSERT INTO `db_city` VALUES ('200134', '100217', '上饒', '334000', '1');
INSERT INTO `db_city` VALUES ('200135', '100212', '濟南', '250000', '1');
INSERT INTO `db_city` VALUES ('200136', '100212', '青島', '266000', '1');
INSERT INTO `db_city` VALUES ('200137', '100212', '淄博', '255000', '1');
INSERT INTO `db_city` VALUES ('200138', '100212', '棗莊', '277100', '1');
INSERT INTO `db_city` VALUES ('200139', '100212', '東營', '257000', '1');
INSERT INTO `db_city` VALUES ('200140', '100212', '煙臺', '264000', '1');
INSERT INTO `db_city` VALUES ('200141', '100212', '濰坊', '261000', '1');
INSERT INTO `db_city` VALUES ('200142', '100212', '濟寧', '272100', '1');
INSERT INTO `db_city` VALUES ('200143', '100212', '泰安', '271000', '1');
INSERT INTO `db_city` VALUES ('200144', '100212', '威海', '265700', '1');
INSERT INTO `db_city` VALUES ('200145', '100212', '日照', '276800', '1');
INSERT INTO `db_city` VALUES ('200146', '100212', '萊蕪', '271100', '1');
INSERT INTO `db_city` VALUES ('200147', '100212', '臨沂', '276000', '1');
INSERT INTO `db_city` VALUES ('200148', '100212', '德州', '253000', '1');
INSERT INTO `db_city` VALUES ('200149', '100212', '聊城', '252000', '1');
INSERT INTO `db_city` VALUES ('200150', '100212', '濱州', '256600', '1');
INSERT INTO `db_city` VALUES ('200151', '100212', '荷澤', '255000', '1');
INSERT INTO `db_city` VALUES ('200152', '100218', '鄭州', '450000', '1');
INSERT INTO `db_city` VALUES ('200153', '100218', '開封', '475000', '1');
INSERT INTO `db_city` VALUES ('200154', '100218', '洛陽', '471000', '1');
INSERT INTO `db_city` VALUES ('200155', '100218', '平頂山', '467000', '1');
INSERT INTO `db_city` VALUES ('200156', '100218', '安陽', '454900', '1');
INSERT INTO `db_city` VALUES ('200157', '100218', '鶴壁', '456600', '1');
INSERT INTO `db_city` VALUES ('200158', '100218', '新鄉', '453000', '1');
INSERT INTO `db_city` VALUES ('200159', '100218', '焦作', '454100', '1');
INSERT INTO `db_city` VALUES ('200160', '100218', '濮陽', '457000', '1');
INSERT INTO `db_city` VALUES ('200161', '100218', '許昌', '461000', '1');
INSERT INTO `db_city` VALUES ('200162', '100218', '漯河', '462000', '1');
INSERT INTO `db_city` VALUES ('200163', '100218', '三門峽', '472000', '1');
INSERT INTO `db_city` VALUES ('200164', '100218', '南陽', '473000', '1');
INSERT INTO `db_city` VALUES ('200165', '100218', '商丘', '476000', '1');
INSERT INTO `db_city` VALUES ('200166', '100218', '信陽', '464000', '1');
INSERT INTO `db_city` VALUES ('200167', '100218', '周口', '466000', '1');
INSERT INTO `db_city` VALUES ('200168', '100218', '駐馬店', '463000', '1');
INSERT INTO `db_city` VALUES ('200169', '100219', '武漢', '430000', '1');
INSERT INTO `db_city` VALUES ('200170', '100219', '黃石', '435000', '1');
INSERT INTO `db_city` VALUES ('200171', '100219', '十堰', '442000', '1');
INSERT INTO `db_city` VALUES ('200172', '100219', '宜昌', '443000', '1');
INSERT INTO `db_city` VALUES ('200173', '100219', '襄樊', '441000', '1');
INSERT INTO `db_city` VALUES ('200174', '100219', '鄂州', '436000', '1');
INSERT INTO `db_city` VALUES ('200175', '100219', '荊門', '448000', '1');
INSERT INTO `db_city` VALUES ('200176', '100219', '孝感', '432100', '1');
INSERT INTO `db_city` VALUES ('200177', '100219', '荊州', '434000', '1');
INSERT INTO `db_city` VALUES ('200178', '100219', '黃岡', '438000', '1');
INSERT INTO `db_city` VALUES ('200179', '100219', '咸寧', '437000', '1');
INSERT INTO `db_city` VALUES ('200180', '100219', '隨州', '441300', '1');
INSERT INTO `db_city` VALUES ('200181', '100219', '恩施', '445000', '1');
INSERT INTO `db_city` VALUES ('200182', '100219', '神農架', '442400', '1');
INSERT INTO `db_city` VALUES ('200183', '100220', '長沙', '410000', '1');
INSERT INTO `db_city` VALUES ('200184', '100220', '株洲', '412000', '1');
INSERT INTO `db_city` VALUES ('200185', '100220', '湘潭', '411100', '1');
INSERT INTO `db_city` VALUES ('200186', '100220', '衡陽', '421000', '1');
INSERT INTO `db_city` VALUES ('200187', '100220', '邵陽', '422000', '1');
INSERT INTO `db_city` VALUES ('200188', '100220', '岳陽', '414000', '1');
INSERT INTO `db_city` VALUES ('200189', '100220', '常德', '415000', '1');
INSERT INTO `db_city` VALUES ('200190', '100220', '張家界', '427000', '1');
INSERT INTO `db_city` VALUES ('200191', '100220', '益陽', '413000', '1');
INSERT INTO `db_city` VALUES ('200192', '100220', '郴州', '423000', '1');
INSERT INTO `db_city` VALUES ('200193', '100220', '永州', '425000', '1');
INSERT INTO `db_city` VALUES ('200194', '100220', '懷化', '418000', '1');
INSERT INTO `db_city` VALUES ('200195', '100220', '婁底', '417000', '1');
INSERT INTO `db_city` VALUES ('200196', '100220', '湘西', '416000', '1');
INSERT INTO `db_city` VALUES ('200197', '100221', '廣州', '510000', '1');
INSERT INTO `db_city` VALUES ('200198', '100221', '韶關', '521000', '1');
INSERT INTO `db_city` VALUES ('200199', '100221', '深圳', '518000', '1');
INSERT INTO `db_city` VALUES ('200200', '100221', '珠海', '519000', '1');
INSERT INTO `db_city` VALUES ('200201', '100221', '汕頭', '515000', '1');
INSERT INTO `db_city` VALUES ('200202', '100221', '佛山', '528000', '1');
INSERT INTO `db_city` VALUES ('200203', '100221', '江門', '529000', '1');
INSERT INTO `db_city` VALUES ('200204', '100221', '湛江', '524000', '1');
INSERT INTO `db_city` VALUES ('200205', '100221', '茂名', '525000', '1');
INSERT INTO `db_city` VALUES ('200206', '100221', '肇慶', '526000', '1');
INSERT INTO `db_city` VALUES ('200207', '100221', '惠州', '516000', '1');
INSERT INTO `db_city` VALUES ('200208', '100221', '梅州', '514000', '1');
INSERT INTO `db_city` VALUES ('200209', '100221', '汕尾', '516600', '1');
INSERT INTO `db_city` VALUES ('200210', '100221', '河源', '517000', '1');
INSERT INTO `db_city` VALUES ('200211', '100221', '陽江', '529500', '1');
INSERT INTO `db_city` VALUES ('200212', '100221', '清遠', '511500', '1');
INSERT INTO `db_city` VALUES ('200213', '100221', '東莞', '511700', '1');
INSERT INTO `db_city` VALUES ('200214', '100221', '中山', '528400', '1');
INSERT INTO `db_city` VALUES ('200215', '100221', '潮州', '515600', '1');
INSERT INTO `db_city` VALUES ('200216', '100221', '揭陽', '522000', '1');
INSERT INTO `db_city` VALUES ('200217', '100221', '雲浮', '527300', '1');
INSERT INTO `db_city` VALUES ('200218', '100222', '南寧', '530000', '1');
INSERT INTO `db_city` VALUES ('200219', '100222', '柳州', '545000', '1');
INSERT INTO `db_city` VALUES ('200220', '100222', '桂林', '541000', '1');
INSERT INTO `db_city` VALUES ('200221', '100222', '梧州', '543000', '1');
INSERT INTO `db_city` VALUES ('200222', '100222', '北海', '536000', '1');
INSERT INTO `db_city` VALUES ('200223', '100222', '防城港', '538000', '1');
INSERT INTO `db_city` VALUES ('200224', '100222', '欽州', '535000', '1');
INSERT INTO `db_city` VALUES ('200225', '100222', '貴港', '537100', '1');
INSERT INTO `db_city` VALUES ('200226', '100222', '玉林', '537000', '1');
INSERT INTO `db_city` VALUES ('200227', '100222', '百色', '533000', '1');
INSERT INTO `db_city` VALUES ('200228', '100222', '賀州', '542800', '1');
INSERT INTO `db_city` VALUES ('200229', '100222', '河池', '547000', '1');
INSERT INTO `db_city` VALUES ('200230', '100222', '來賓', '546100', '1');
INSERT INTO `db_city` VALUES ('200231', '100222', '崇左', '532200', '1');
INSERT INTO `db_city` VALUES ('200232', '100223', '海口', '570000', '1');
INSERT INTO `db_city` VALUES ('200233', '100223', '三亞', '572000', '1');
INSERT INTO `db_city` VALUES ('200234', '100205', '重慶', '400000', '1');
INSERT INTO `db_city` VALUES ('200235', '100224', '成都', '610000', '1');
INSERT INTO `db_city` VALUES ('200236', '100224', '自貢', '643000', '1');
INSERT INTO `db_city` VALUES ('200237', '100224', '攀枝花', '617000', '1');
INSERT INTO `db_city` VALUES ('200238', '100224', '瀘州', '646100', '1');
INSERT INTO `db_city` VALUES ('200239', '100224', '德陽', '618000', '1');
INSERT INTO `db_city` VALUES ('200240', '100224', '綿陽', '621000', '1');
INSERT INTO `db_city` VALUES ('200241', '100224', '廣元', '628000', '1');
INSERT INTO `db_city` VALUES ('200242', '100224', '遂寧', '629000', '1');
INSERT INTO `db_city` VALUES ('200243', '100224', '內江', '641000', '1');
INSERT INTO `db_city` VALUES ('200244', '100224', '樂山', '614000', '1');
INSERT INTO `db_city` VALUES ('200245', '100224', '南充', '637000', '1');
INSERT INTO `db_city` VALUES ('200246', '100224', '眉山', '612100', '1');
INSERT INTO `db_city` VALUES ('200247', '100224', '宜賓', '644000', '1');
INSERT INTO `db_city` VALUES ('200248', '100224', '廣安', '638000', '1');
INSERT INTO `db_city` VALUES ('200249', '100224', '達州', '635000', '1');
INSERT INTO `db_city` VALUES ('200250', '100224', '雅安', '625000', '1');
INSERT INTO `db_city` VALUES ('200251', '100224', '巴中', '635500', '1');
INSERT INTO `db_city` VALUES ('200252', '100224', '資陽', '641300', '1');
INSERT INTO `db_city` VALUES ('200253', '100224', '阿壩', '624600', '1');
INSERT INTO `db_city` VALUES ('200254', '100224', '甘孜', '626000', '1');
INSERT INTO `db_city` VALUES ('200255', '100224', '涼山', '615000', '1');
INSERT INTO `db_city` VALUES ('200256', '100225', '貴陽', '55000', '1');
INSERT INTO `db_city` VALUES ('200257', '100225', '六盤水', '553000', '1');
INSERT INTO `db_city` VALUES ('200258', '100225', '遵義', '563000', '1');
INSERT INTO `db_city` VALUES ('200259', '100225', '安順', '561000', '1');
INSERT INTO `db_city` VALUES ('200260', '100225', '銅仁', '554300', '1');
INSERT INTO `db_city` VALUES ('200261', '100225', '黔西南', '551500', '1');
INSERT INTO `db_city` VALUES ('200262', '100225', '畢節', '551700', '1');
INSERT INTO `db_city` VALUES ('200263', '100225', '黔東南', '551500', '1');
INSERT INTO `db_city` VALUES ('200264', '100225', '黔南', '550100', '1');
INSERT INTO `db_city` VALUES ('200265', '100226', '昆明', '650000', '1');
INSERT INTO `db_city` VALUES ('200266', '100226', '曲靖', '655000', '1');
INSERT INTO `db_city` VALUES ('200267', '100226', '玉溪', '653100', '1');
INSERT INTO `db_city` VALUES ('200268', '100226', '保山', '678000', '1');
INSERT INTO `db_city` VALUES ('200269', '100226', '昭通', '657000', '1');
INSERT INTO `db_city` VALUES ('200270', '100226', '麗江', '674100', '1');
INSERT INTO `db_city` VALUES ('200271', '100226', '思茅', '665000', '1');
INSERT INTO `db_city` VALUES ('200272', '100226', '臨滄', '677000', '1');
INSERT INTO `db_city` VALUES ('200273', '100226', '楚雄', '675000', '1');
INSERT INTO `db_city` VALUES ('200274', '100226', '紅河', '654400', '1');
INSERT INTO `db_city` VALUES ('200275', '100226', '文山', '663000', '1');
INSERT INTO `db_city` VALUES ('200276', '100226', '西雙版納', '666200', '1');
INSERT INTO `db_city` VALUES ('200277', '100226', '大理', '671000', '1');
INSERT INTO `db_city` VALUES ('200278', '100226', '德巨集', '678400', '1');
INSERT INTO `db_city` VALUES ('200279', '100226', '怒江', '671400', '1');
INSERT INTO `db_city` VALUES ('200280', '100226', '迪慶', '674400', '1');
INSERT INTO `db_city` VALUES ('200281', '100232', '拉薩', '850000', '1');
INSERT INTO `db_city` VALUES ('200282', '100232', '昌都', '854000', '1');
INSERT INTO `db_city` VALUES ('200283', '100232', '山南', '856000', '1');
INSERT INTO `db_city` VALUES ('200284', '100232', '日喀則', '857000', '1');
INSERT INTO `db_city` VALUES ('200285', '100232', '那曲', '852000', '1');
INSERT INTO `db_city` VALUES ('200286', '100232', '阿里', '859100', '1');
INSERT INTO `db_city` VALUES ('200287', '100232', '林芝', '860100', '1');
INSERT INTO `db_city` VALUES ('200288', '100227', '西安', '710000', '1');
INSERT INTO `db_city` VALUES ('200289', '100227', '銅川', '727000', '1');
INSERT INTO `db_city` VALUES ('200290', '100227', '寶雞', '721000', '1');
INSERT INTO `db_city` VALUES ('200291', '100227', '咸陽', '712000', '1');
INSERT INTO `db_city` VALUES ('200292', '100227', '渭南', '714000', '1');
INSERT INTO `db_city` VALUES ('200293', '100227', '延安', '716000', '1');
INSERT INTO `db_city` VALUES ('200294', '100227', '漢中', '723000', '1');
INSERT INTO `db_city` VALUES ('200295', '100227', '榆林', '719000', '1');
INSERT INTO `db_city` VALUES ('200296', '100227', '安康', '725000', '1');
INSERT INTO `db_city` VALUES ('200297', '100227', '商洛', '711500', '1');
INSERT INTO `db_city` VALUES ('200298', '100228', '蘭州', '730000', '1');
INSERT INTO `db_city` VALUES ('200299', '100228', '嘉峪關', '735100', '1');
INSERT INTO `db_city` VALUES ('200300', '100228', '金昌', '737100', '1');
INSERT INTO `db_city` VALUES ('200301', '100228', '白銀', '730900', '1');
INSERT INTO `db_city` VALUES ('200302', '100228', '天水', '741000', '1');
INSERT INTO `db_city` VALUES ('200303', '100228', '武威', '733000', '1');
INSERT INTO `db_city` VALUES ('200304', '100228', '張掖', '734000', '1');
INSERT INTO `db_city` VALUES ('200305', '100228', '平涼', '744000', '1');
INSERT INTO `db_city` VALUES ('200306', '100228', '酒泉', '735000', '1');
INSERT INTO `db_city` VALUES ('200307', '100228', '慶陽', '744500', '1');
INSERT INTO `db_city` VALUES ('200308', '100228', '定西', '743000', '1');
INSERT INTO `db_city` VALUES ('200309', '100228', '隴南', '742100', '1');
INSERT INTO `db_city` VALUES ('200310', '100228', '臨夏', '731100', '1');
INSERT INTO `db_city` VALUES ('200311', '100228', '甘南', '747000', '1');
INSERT INTO `db_city` VALUES ('200312', '100230', '西寧', '810000', '1');
INSERT INTO `db_city` VALUES ('200313', '100230', '海東', '810600', '1');
INSERT INTO `db_city` VALUES ('200314', '100230', '海北', '810300', '1');
INSERT INTO `db_city` VALUES ('200315', '100230', '黃南', '811300', '1');
INSERT INTO `db_city` VALUES ('200316', '100230', '海南', '813000', '1');
INSERT INTO `db_city` VALUES ('200317', '100230', '果洛', '814000', '1');
INSERT INTO `db_city` VALUES ('200318', '100230', '玉樹', '815000', '1');
INSERT INTO `db_city` VALUES ('200319', '100230', '海西', '817000', '1');
INSERT INTO `db_city` VALUES ('200320', '100229', '銀川', '750000', '1');
INSERT INTO `db_city` VALUES ('200321', '100229', '石嘴山', '753000', '1');
INSERT INTO `db_city` VALUES ('200322', '100229', '吳忠', '751100', '1');
INSERT INTO `db_city` VALUES ('200323', '100229', '固原', '756000', '1');
INSERT INTO `db_city` VALUES ('200324', '100229', '中衛', '751700', '1');
INSERT INTO `db_city` VALUES ('200325', '102244', '烏魯木齊', '830000', '1');
INSERT INTO `db_city` VALUES ('200326', '102244', '克拉瑪依', '834000', '1');
INSERT INTO `db_city` VALUES ('200327', '102244', '吐魯番', '838000', '1');
INSERT INTO `db_city` VALUES ('200328', '102244', '哈密', '839000', '1');
INSERT INTO `db_city` VALUES ('200329', '102244', '昌吉', '831100', '1');
INSERT INTO `db_city` VALUES ('200330', '102244', '博爾塔拉', '833400', '1');
INSERT INTO `db_city` VALUES ('200331', '102244', '巴音郭楞', '841000', '1');
INSERT INTO `db_city` VALUES ('200332', '102244', '阿克蘇', '843000', '1');
INSERT INTO `db_city` VALUES ('200333', '102244', '克孜勒蘇', '835600', '1');
INSERT INTO `db_city` VALUES ('200334', '102244', '喀什', '844000', '1');
INSERT INTO `db_city` VALUES ('200335', '102244', '和田', '848000', '1');
INSERT INTO `db_city` VALUES ('200336', '102244', '伊犁', '833200', '1');
INSERT INTO `db_city` VALUES ('200337', '102244', '塔城', '834700', '1');
INSERT INTO `db_city` VALUES ('200338', '102244', '阿勒泰', '836500', '1');
INSERT INTO `db_city` VALUES ('200339', '102244', '石河子', '832000', '1');
INSERT INTO `db_city` VALUES ('200340', '102244', '阿拉爾', '843300', '1');
INSERT INTO `db_city` VALUES ('200341', '102244', '圖木舒克', '843900', '1');
INSERT INTO `db_city` VALUES ('200342', '102244', '五家渠', '831300', '1');
INSERT INTO `db_city` VALUES ('200343', '101195', '香港', '000000', '1');
INSERT INTO `db_city` VALUES ('200344', '101196', '澳門', '000000', '1');
INSERT INTO `db_city` VALUES ('200345', '101198', '臺灣', '000000', '1');
INSERT INTO `db_city` VALUES ('200346', '100215', '慈溪', '315300', '1');
INSERT INTO `db_city` VALUES ('200347', '100215', '奉化', '315500', '1');
INSERT INTO `db_city` VALUES ('200348', '100215', '富陽', '311400', '1');
INSERT INTO `db_city` VALUES ('200349', '100215', '樂清', '325600', '1');
INSERT INTO `db_city` VALUES ('200350', '100215', '臨安', '311300', '1');
INSERT INTO `db_city` VALUES ('200351', '100215', '寧海', '315600', '1');
INSERT INTO `db_city` VALUES ('200352', '100215', '平湖', '314200', '1');


//國家表 

-- ----------------------------
-- Table structure for `db_country`
-- ----------------------------
DROP TABLE IF EXISTS `db_country`;
CREATE TABLE `db_country` (
  `id` bigint(11) NOT NULL,
  `codeTel` varchar(10) NOT NULL COMMENT '國家電話區號',
  `isoCode` varchar(2) NOT NULL COMMENT '國際化ID',
  `continentId` bigint(6) NOT NULL COMMENT '洲ID',
  `cn` varchar(200) NOT NULL COMMENT '中文名',
  `status` smallint(11) NOT NULL COMMENT '狀態',
  UNIQUE KEY `pk_test1` (`id`),
  KEY `cn` (`cn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of db_country
-- ----------------------------
INSERT INTO `db_country` VALUES ('247', '+86', 'CN', '4', '中國', '1');


//css效果 自己調把 (還是那句話,樣式問題都是小問題)