27 changed files with 5430 additions and 18 deletions
@ -0,0 +1,103 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Data |
|||
public class AreaCodeChildDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private Integer id; |
|||
|
|||
/** |
|||
* 省份code |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 省份名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 父级code |
|||
*/ |
|||
private String pCode; |
|||
|
|||
/** |
|||
* 区域级别 |
|||
*/ |
|||
private Integer level; |
|||
|
|||
/** |
|||
* 城乡分类代码 |
|||
111表示主城区 |
|||
112表示城乡结合区 |
|||
121表示镇中心区 |
|||
122表示镇乡结合区 |
|||
123表示特殊区域 |
|||
210表示乡中心区 |
|||
220表示村庄 |
|||
*/ |
|||
private String catagory; |
|||
|
|||
/** |
|||
* 删除标识 0-否,1-是 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 查询时添加版本号,新加的事件需要更新版本号 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,101 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Data |
|||
public class AreaCodeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private Integer id; |
|||
|
|||
/** |
|||
* 省份code |
|||
*/ |
|||
private String provinceCode; |
|||
|
|||
/** |
|||
* 省份名称 |
|||
*/ |
|||
private String provinceName; |
|||
|
|||
/** |
|||
* 城市code |
|||
*/ |
|||
private String cityCode; |
|||
|
|||
/** |
|||
* 城市名称 |
|||
*/ |
|||
private String cityName; |
|||
|
|||
/** |
|||
* 区县code |
|||
*/ |
|||
private String countyCode; |
|||
|
|||
/** |
|||
* 区县名称 |
|||
*/ |
|||
private String countyName; |
|||
|
|||
/** |
|||
* 删除标识 0-否,1-是 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 查询时添加版本号,新加的事件需要更新版本号 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/1/7 下午1:26 |
|||
*/ |
|||
@Data |
|||
public class AreaCodeDictFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5780301376757138238L; |
|||
|
|||
/** |
|||
* 根结点code 不传,则返回全部 |
|||
*/ |
|||
private String rootAreaCode; |
|||
|
|||
/** |
|||
* 省级:province; 市级: city; 区县级: district ;乡(镇、街道)级:street ;社区级:community |
|||
*/ |
|||
private String rootAreaLevel; |
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/1/7 下午1:32 |
|||
*/ |
|||
@Data |
|||
public class AreaCodeDictResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1312164785403693464L; |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 下一级 |
|||
*/ |
|||
private List<AreaCodeDictResultDTO> children; |
|||
|
|||
@JsonIgnore |
|||
private String parentCode; |
|||
|
|||
public AreaCodeDictResultDTO() { |
|||
this.code = ""; |
|||
this.name = ""; |
|||
this.parentCode = ""; |
|||
this.children = new ArrayList<>(); |
|||
} |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/1/7 下午4:53 |
|||
*/ |
|||
public interface AreaCodeConstant { |
|||
|
|||
/** |
|||
* redis的key |
|||
*/ |
|||
String SCREEN_TREE = "epmet:screen:tree:areacode"; |
|||
|
|||
String THREE_SCREEN_TREE = "epmet:screen:tree:threeareacode"; |
|||
|
|||
/** |
|||
* 省级:province; 市级: city; 区县级: district ;乡(镇、街道)级:street ;社区级:community |
|||
*/ |
|||
String PROVINCE = "province"; |
|||
String CITY = "city"; |
|||
String DISTRICT = "district"; |
|||
String STREET = "street"; |
|||
String COMMUNITY = "community"; |
|||
|
|||
String ROOT_AGENCY_LEVEL_IS_LEVEL = "RootAreaLevel为空......"; |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.AssertUtils; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import com.epmet.dto.AreaCodeChildDTO; |
|||
import com.epmet.service.AreaCodeChildService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("areacodechild") |
|||
public class AreaCodeChildController { |
|||
|
|||
@Autowired |
|||
private AreaCodeChildService areaCodeChildService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<AreaCodeChildDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<AreaCodeChildDTO> page = areaCodeChildService.page(params); |
|||
return new Result<PageData<AreaCodeChildDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<AreaCodeChildDTO> get(@PathVariable("id") String id){ |
|||
AreaCodeChildDTO data = areaCodeChildService.get(id); |
|||
return new Result<AreaCodeChildDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody AreaCodeChildDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
areaCodeChildService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody AreaCodeChildDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
areaCodeChildService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
areaCodeChildService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,98 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.AssertUtils; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import com.epmet.dto.AreaCodeDTO; |
|||
import com.epmet.dto.form.AreaCodeDictFormDTO; |
|||
import com.epmet.dto.result.AreaCodeDictResultDTO; |
|||
import com.epmet.service.AreaCodeService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("areacode") |
|||
public class AreaCodeController { |
|||
|
|||
@Autowired |
|||
private AreaCodeService areaCodeService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<AreaCodeDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<AreaCodeDTO> page = areaCodeService.page(params); |
|||
return new Result<PageData<AreaCodeDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<AreaCodeDTO> get(@PathVariable("id") String id){ |
|||
AreaCodeDTO data = areaCodeService.get(id); |
|||
return new Result<AreaCodeDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody AreaCodeDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
areaCodeService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody AreaCodeDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
areaCodeService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
areaCodeService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 行政地区编码查询 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/1/7 下午1:41 |
|||
*/ |
|||
@PostMapping("areacodedicttree") |
|||
public Result<List<AreaCodeDictResultDTO>> areaCodeDictTree(@RequestBody AreaCodeDictFormDTO formDTO){ |
|||
return new Result<List<AreaCodeDictResultDTO>>().ok(areaCodeService.areaCodeDictTreePlus(formDTO)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dto.AreaCodeChildDTO; |
|||
import com.epmet.entity.AreaCodeChildEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Mapper |
|||
public interface AreaCodeChildDao extends BaseDao<AreaCodeChildEntity> { |
|||
|
|||
List<AreaCodeChildDTO> selectAllChild(); |
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dto.AreaCodeDTO; |
|||
import com.epmet.entity.AreaCodeEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Mapper |
|||
public interface AreaCodeDao extends BaseDao<AreaCodeEntity> { |
|||
|
|||
List<AreaCodeDTO> selectAllArea(); |
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("area_code_child") |
|||
public class AreaCodeChildEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 省份code |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 省份名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 父级code |
|||
*/ |
|||
private String pCode; |
|||
|
|||
/** |
|||
* 区域级别 |
|||
*/ |
|||
private Integer level; |
|||
|
|||
/** |
|||
* 城乡分类代码 |
|||
111表示主城区 |
|||
112表示城乡结合区 |
|||
121表示镇中心区 |
|||
122表示镇乡结合区 |
|||
123表示特殊区域 |
|||
210表示乡中心区 |
|||
220表示村庄 |
|||
*/ |
|||
private String catagory; |
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("area_code") |
|||
public class AreaCodeEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 省份code |
|||
*/ |
|||
private String provinceCode; |
|||
|
|||
/** |
|||
* 省份名称 |
|||
*/ |
|||
private String provinceName; |
|||
|
|||
/** |
|||
* 城市code |
|||
*/ |
|||
private String cityCode; |
|||
|
|||
/** |
|||
* 城市名称 |
|||
*/ |
|||
private String cityName; |
|||
|
|||
/** |
|||
* 区县code |
|||
*/ |
|||
private String countyCode; |
|||
|
|||
/** |
|||
* 区县名称 |
|||
*/ |
|||
private String countyName; |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.redis; |
|||
|
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Component |
|||
public class AreaCodeChildRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,52 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.redis; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Component |
|||
public class AreaCodeRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(String key,Object o){ |
|||
redisUtils.set(key,o, NumConstant.ONE_NEG); |
|||
} |
|||
|
|||
public String get(String key){ |
|||
Object o = redisUtils.get(key); |
|||
if (null != o){ |
|||
return o.toString(); |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.AreaCodeChildDTO; |
|||
import com.epmet.entity.AreaCodeChildEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
public interface AreaCodeChildService extends BaseService<AreaCodeChildEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<AreaCodeChildDTO> |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
PageData<AreaCodeChildDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<AreaCodeChildDTO> |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
List<AreaCodeChildDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return AreaCodeChildDTO |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
AreaCodeChildDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
void save(AreaCodeChildDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
void update(AreaCodeChildDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
void delete(String[] ids); |
|||
} |
@ -0,0 +1,108 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.AreaCodeDTO; |
|||
import com.epmet.dto.form.AreaCodeDictFormDTO; |
|||
import com.epmet.dto.result.AreaCodeDictResultDTO; |
|||
import com.epmet.entity.AreaCodeEntity; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
public interface AreaCodeService extends BaseService<AreaCodeEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<AreaCodeDTO> |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
PageData<AreaCodeDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<AreaCodeDTO> |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
List<AreaCodeDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return AreaCodeDTO |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
AreaCodeDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
void save(AreaCodeDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
void update(AreaCodeDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2021-01-07 |
|||
*/ |
|||
void delete(String[] ids); |
|||
|
|||
/** |
|||
* @Description 行政地区编码查询 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/1/7 下午1:41 |
|||
*/ |
|||
List<AreaCodeDictResultDTO> areaCodeDictTree(AreaCodeDictFormDTO formDTO); |
|||
|
|||
List<AreaCodeDictResultDTO> areaCodeDictTreePlus(AreaCodeDictFormDTO formDTO); |
|||
} |
@ -0,0 +1,104 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.dao.AreaCodeChildDao; |
|||
import com.epmet.dto.AreaCodeChildDTO; |
|||
import com.epmet.entity.AreaCodeChildEntity; |
|||
import com.epmet.redis.AreaCodeChildRedis; |
|||
import com.epmet.service.AreaCodeChildService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* (4-5)街道/城镇和社区/村地区code |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Service |
|||
public class AreaCodeChildServiceImpl extends BaseServiceImpl<AreaCodeChildDao, AreaCodeChildEntity> implements AreaCodeChildService { |
|||
|
|||
@Autowired |
|||
private AreaCodeChildRedis areaCodeChildRedis; |
|||
|
|||
@Override |
|||
public PageData<AreaCodeChildDTO> page(Map<String, Object> params) { |
|||
IPage<AreaCodeChildEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, AreaCodeChildDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<AreaCodeChildDTO> list(Map<String, Object> params) { |
|||
List<AreaCodeChildEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, AreaCodeChildDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<AreaCodeChildEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<AreaCodeChildEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public AreaCodeChildDTO get(String id) { |
|||
AreaCodeChildEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, AreaCodeChildDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(AreaCodeChildDTO dto) { |
|||
AreaCodeChildEntity entity = ConvertUtils.sourceToTarget(dto, AreaCodeChildEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(AreaCodeChildDTO dto) { |
|||
AreaCodeChildEntity entity = ConvertUtils.sourceToTarget(dto, AreaCodeChildEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,549 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.service.impl; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.epmet.commons.tools.exception.RenException; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.constant.AreaCodeConstant; |
|||
import com.epmet.dao.AreaCodeChildDao; |
|||
import com.epmet.dao.AreaCodeDao; |
|||
import com.epmet.dto.AreaCodeChildDTO; |
|||
import com.epmet.dto.AreaCodeDTO; |
|||
import com.epmet.dto.form.AreaCodeDictFormDTO; |
|||
import com.epmet.dto.result.AreaCodeDictResultDTO; |
|||
import com.epmet.entity.AreaCodeEntity; |
|||
import com.epmet.redis.AreaCodeRedis; |
|||
import com.epmet.service.AreaCodeService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
import org.springframework.util.CollectionUtils; |
|||
|
|||
import java.util.*; |
|||
import java.util.concurrent.atomic.AtomicReference; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* 大陆省市区地区码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-07 |
|||
*/ |
|||
@Service |
|||
public class AreaCodeServiceImpl extends BaseServiceImpl<AreaCodeDao, AreaCodeEntity> implements AreaCodeService { |
|||
|
|||
@Autowired |
|||
private AreaCodeRedis areaCodeRedis; |
|||
@Autowired |
|||
private AreaCodeChildDao childDao; |
|||
|
|||
@Override |
|||
public PageData<AreaCodeDTO> page(Map<String, Object> params) { |
|||
IPage<AreaCodeEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, AreaCodeDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<AreaCodeDTO> list(Map<String, Object> params) { |
|||
List<AreaCodeEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, AreaCodeDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<AreaCodeEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<AreaCodeEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public AreaCodeDTO get(String id) { |
|||
AreaCodeEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, AreaCodeDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(AreaCodeDTO dto) { |
|||
AreaCodeEntity entity = ConvertUtils.sourceToTarget(dto, AreaCodeEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(AreaCodeDTO dto) { |
|||
AreaCodeEntity entity = ConvertUtils.sourceToTarget(dto, AreaCodeEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 行政地区编码查询 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/1/7 下午1:41 |
|||
*/ |
|||
@Override |
|||
public List<AreaCodeDictResultDTO> areaCodeDictTree(AreaCodeDictFormDTO formDTO) { |
|||
List<AreaCodeDictResultDTO> tree = new ArrayList<>(); |
|||
String s = areaCodeRedis.get(AreaCodeConstant.SCREEN_TREE); |
|||
if (StringUtils.isNotBlank(s)){ |
|||
tree = JSON.parseArray(s,AreaCodeDictResultDTO.class); |
|||
}else { |
|||
List<AreaCodeDictResultDTO> areaCodeDictResultDTOS = disposeTree(); |
|||
areaCodeRedis.set(AreaCodeConstant.SCREEN_TREE,areaCodeDictResultDTOS); |
|||
tree = areaCodeDictResultDTOS; |
|||
} |
|||
if (StringUtils.isBlank(formDTO.getRootAreaCode())){ |
|||
return tree; |
|||
} |
|||
List<AreaCodeDictResultDTO> treeByRootAreaCode = getTreeByRootAreaCode(tree, formDTO.getRootAreaCode()); |
|||
return treeByRootAreaCode; |
|||
} |
|||
|
|||
/** |
|||
* @Description 行政区树查询 |
|||
* @Param |
|||
* @author zxc |
|||
* @date 2021/1/8 上午8:57 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> disposeTree(){ |
|||
// 查询所有省市区
|
|||
List<AreaCodeDTO> areaCodeDTOS = baseDao.selectAllArea(); |
|||
// 查询所有街道、社区
|
|||
List<AreaCodeChildDTO> areaCodeChildDTOS = childDao.selectAllChild(); |
|||
List<AreaCodeDictResultDTO> result = new ArrayList<>(); |
|||
List<AreaCodeDictResultDTO> fourResult = new ArrayList<>(); |
|||
List<AreaCodeDictResultDTO> cityResult = new ArrayList<>(); |
|||
|
|||
// 街道-社区
|
|||
Map<Integer, List<AreaCodeChildDTO>> groupByLevel = areaCodeChildDTOS.stream().collect(Collectors.groupingBy(AreaCodeChildDTO::getLevel)); |
|||
List<AreaCodeChildDTO> levelFive = groupByLevel.get(NumConstant.FIVE); |
|||
Map<String, List<AreaCodeChildDTO>> groupByPCode = levelFive.stream().collect(Collectors.groupingBy(AreaCodeChildDTO::getPCode)); |
|||
List<AreaCodeChildDTO> levelFour = groupByLevel.get(NumConstant.FOUR); |
|||
levelFour.forEach(four -> { |
|||
AreaCodeDictResultDTO dto = new AreaCodeDictResultDTO(); |
|||
dto.setCode(four.getCode()); |
|||
dto.setName(four.getName()); |
|||
dto.setParentCode(four.getPCode()); |
|||
groupByPCode.forEach((pCode,v) -> { |
|||
if (dto.getCode().equals(pCode)){ |
|||
List<AreaCodeDictResultDTO> fiveResult = new ArrayList<>(); |
|||
v.forEach(five -> { |
|||
AreaCodeDictResultDTO fiveDto = new AreaCodeDictResultDTO(); |
|||
fiveDto.setCode(five.getCode()); |
|||
fiveDto.setName(five.getName()); |
|||
fiveResult.add(fiveDto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> fiveSort = fiveResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
dto.setChildren(fiveSort); |
|||
} |
|||
}); |
|||
fourResult.add(dto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> fourSort = new ArrayList<>(); |
|||
if (!CollectionUtils.isEmpty(fourResult)){ |
|||
fourSort = fourResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
} |
|||
|
|||
// 省市区
|
|||
Map<String, List<AreaCodeDTO>> groupByCity = areaCodeDTOS.stream().collect(Collectors.groupingBy(AreaCodeDTO::getCityCode)); |
|||
Map<String, List<AreaCodeDTO>> groupByProvince = areaCodeDTOS.stream().collect(Collectors.groupingBy(AreaCodeDTO::getProvinceCode)); |
|||
List<AreaCodeDictResultDTO> finalFourSort = fourSort; |
|||
groupByCity.forEach((c, v) -> { |
|||
AreaCodeDictResultDTO cityDto = new AreaCodeDictResultDTO(); |
|||
cityDto.setName(v.get(NumConstant.ZERO).getCityName()); |
|||
cityDto.setCode(v.get(NumConstant.ZERO).getCityCode()); |
|||
cityDto.setParentCode(v.get(NumConstant.ZERO).getProvinceCode()); |
|||
List<AreaCodeDictResultDTO> threeResult = new ArrayList<>(); |
|||
v.forEach(three -> { |
|||
AreaCodeDictResultDTO dto = new AreaCodeDictResultDTO(); |
|||
dto.setCode(three.getCountyCode()); |
|||
dto.setName(three.getCountyName()); |
|||
List<AreaCodeDictResultDTO> fourOnceResult = new ArrayList<>(); |
|||
finalFourSort.forEach(four -> { |
|||
if (dto.getCode().equals(four.getParentCode())){ |
|||
fourOnceResult.add(four); |
|||
} |
|||
}); |
|||
dto.setChildren(fourOnceResult); |
|||
threeResult.add(dto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> threeSort = threeResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
cityDto.setChildren(threeSort); |
|||
cityResult.add(cityDto); |
|||
}); |
|||
groupByProvince.forEach((p,v) -> { |
|||
AreaCodeDictResultDTO dto = new AreaCodeDictResultDTO(); |
|||
dto.setCode(p); |
|||
dto.setName(v.get(NumConstant.ZERO).getProvinceName()); |
|||
List<AreaCodeDictResultDTO> cityOnceResult = new ArrayList<>(); |
|||
cityResult.forEach(c -> { |
|||
if (dto.getCode().equals(c.getParentCode())){ |
|||
cityOnceResult.add(c); |
|||
} |
|||
}); |
|||
List<AreaCodeDictResultDTO> citySort = cityOnceResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
dto.setChildren(citySort); |
|||
result.add(dto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> collect = result.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
return collect; |
|||
} |
|||
|
|||
/** |
|||
* @Description 根据节点获取组织区域树【遍历】,传参只能是 省,市,区级别 【暂时这样,循环太多了】 |
|||
* |
|||
* |
|||
* 暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样 |
|||
* ==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样== |
|||
* 暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样==暂时这样 |
|||
* |
|||
* |
|||
* |
|||
* @Param tree |
|||
* @Param rootAreaCode |
|||
* @author zxc |
|||
* @date 2021/1/8 上午10:02 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> getTreeByRootAreaCode(List<AreaCodeDictResultDTO> tree , String rootAreaCode){ |
|||
List<AreaCodeDictResultDTO> result = new ArrayList<>(); |
|||
if (!CollectionUtils.isEmpty(tree)){ |
|||
// 省级获取
|
|||
for (AreaCodeDictResultDTO dto : tree) { |
|||
if (rootAreaCode.equals(dto.getCode())){ |
|||
result.add(dto); |
|||
return result; |
|||
} |
|||
// 市级获取
|
|||
if (!CollectionUtils.isEmpty(dto.getChildren())){ |
|||
for (AreaCodeDictResultDTO child : dto.getChildren()) { |
|||
if (rootAreaCode.equals(child.getCode())){ |
|||
result.add(child); |
|||
return result; |
|||
} |
|||
// 区级获取
|
|||
if (!CollectionUtils.isEmpty(child.getChildren())){ |
|||
for (AreaCodeDictResultDTO threeChild : child.getChildren()) { |
|||
if (rootAreaCode.equals(threeChild.getCode())){ |
|||
result.add(threeChild); |
|||
return result; |
|||
} |
|||
// 街道获取
|
|||
if (!CollectionUtils.isEmpty(threeChild.getChildren())){ |
|||
for (AreaCodeDictResultDTO fourChild : threeChild.getChildren()) { |
|||
if (rootAreaCode.equals(fourChild.getCode())){ |
|||
result.add(fourChild); |
|||
return result; |
|||
} |
|||
// 社区获取
|
|||
if (!CollectionUtils.isEmpty(fourChild.getChildren())){ |
|||
for (AreaCodeDictResultDTO fiveChild : fourChild.getChildren()) { |
|||
if (rootAreaCode.equals(fiveChild.getCode())){ |
|||
result.add(fiveChild); |
|||
return result; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
@Override |
|||
public List<AreaCodeDictResultDTO> areaCodeDictTreePlus(AreaCodeDictFormDTO formDTO){ |
|||
List<AreaCodeDictResultDTO> tree = new ArrayList<>(); |
|||
String s = areaCodeRedis.get(AreaCodeConstant.THREE_SCREEN_TREE); |
|||
if (StringUtils.isNotBlank(s)){ |
|||
tree = JSON.parseArray(s,AreaCodeDictResultDTO.class); |
|||
}else { |
|||
List<AreaCodeDictResultDTO> threeTree = beforeThreeTree(); |
|||
areaCodeRedis.set(AreaCodeConstant.THREE_SCREEN_TREE,threeTree); |
|||
tree = threeTree; |
|||
} |
|||
if (StringUtils.isBlank(formDTO.getRootAreaCode())){ |
|||
return tree; |
|||
} |
|||
if (StringUtils.isBlank(formDTO.getRootAreaLevel())){ |
|||
throw new RenException(AreaCodeConstant.ROOT_AGENCY_LEVEL_IS_LEVEL); |
|||
} |
|||
// 传参为街道-社区级
|
|||
if (formDTO.getRootAreaLevel().equals(AreaCodeConstant.STREET) || formDTO.getRootAreaLevel().equals(AreaCodeConstant.COMMUNITY)){ |
|||
tree = disposeAfterTwoLevel(formDTO); |
|||
}else if (formDTO.getRootAreaLevel().equals(AreaCodeConstant.PROVINCE) || formDTO.getRootAreaLevel().equals(AreaCodeConstant.CITY) || formDTO.getRootAreaLevel().equals(AreaCodeConstant.DISTRICT)){ |
|||
tree = disposeBeforeThreeLevelFinal(formDTO,tree); |
|||
} |
|||
return tree; |
|||
} |
|||
|
|||
/** |
|||
* @Description 省市区三级联动查询 |
|||
* @Param |
|||
* @author zxc |
|||
* @date 2021/1/11 上午9:35 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> beforeThreeTree(){ |
|||
// 查询所有省市区
|
|||
List<AreaCodeDTO> areaCodeDTOS = baseDao.selectAllArea(); |
|||
Map<String, List<AreaCodeDTO>> groupByCity = areaCodeDTOS.stream().collect(Collectors.groupingBy(AreaCodeDTO::getCityCode)); |
|||
Map<String, List<AreaCodeDTO>> groupByProvince = areaCodeDTOS.stream().collect(Collectors.groupingBy(AreaCodeDTO::getProvinceCode)); |
|||
List<AreaCodeDictResultDTO> result = new ArrayList<>(); |
|||
List<AreaCodeDictResultDTO> cityResult = new ArrayList<>(); |
|||
groupByCity.forEach((c, v) -> { |
|||
AreaCodeDictResultDTO cityDto = new AreaCodeDictResultDTO(); |
|||
cityDto.setName(v.get(NumConstant.ZERO).getCityName()); |
|||
cityDto.setCode(v.get(NumConstant.ZERO).getCityCode()); |
|||
cityDto.setParentCode(v.get(NumConstant.ZERO).getProvinceCode()); |
|||
List<AreaCodeDictResultDTO> threeResult = new ArrayList<>(); |
|||
v.forEach(three -> { |
|||
AreaCodeDictResultDTO dto = new AreaCodeDictResultDTO(); |
|||
dto.setCode(three.getCountyCode()); |
|||
dto.setName(three.getCountyName()); |
|||
threeResult.add(dto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> threeSort = threeResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
cityDto.setChildren(threeSort); |
|||
cityResult.add(cityDto); |
|||
}); |
|||
groupByProvince.forEach((p,v) -> { |
|||
AreaCodeDictResultDTO dto = new AreaCodeDictResultDTO(); |
|||
dto.setCode(p); |
|||
dto.setName(v.get(NumConstant.ZERO).getProvinceName()); |
|||
List<AreaCodeDictResultDTO> cityOnceResult = new ArrayList<>(); |
|||
cityResult.forEach(c -> { |
|||
if (dto.getCode().equals(c.getParentCode())){ |
|||
cityOnceResult.add(c); |
|||
} |
|||
}); |
|||
List<AreaCodeDictResultDTO> citySort = cityOnceResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
dto.setChildren(citySort); |
|||
result.add(dto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> collect = result.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
return collect; |
|||
} |
|||
|
|||
/** |
|||
* @Description 街道-社区组织树查询 |
|||
* @Param |
|||
* @author zxc |
|||
* @date 2021/1/11 上午9:48 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> afterTwoTree(){ |
|||
// 查询所有街道、社区
|
|||
List<AreaCodeChildDTO> areaCodeChildDTOS = childDao.selectAllChild(); |
|||
List<AreaCodeDictResultDTO> fourResult = new ArrayList<>(); |
|||
// 街道-社区
|
|||
Map<Integer, List<AreaCodeChildDTO>> groupByLevel = areaCodeChildDTOS.stream().collect(Collectors.groupingBy(AreaCodeChildDTO::getLevel)); |
|||
List<AreaCodeChildDTO> levelFive = groupByLevel.get(NumConstant.FIVE); |
|||
Map<String, List<AreaCodeChildDTO>> groupByPCode = levelFive.stream().collect(Collectors.groupingBy(AreaCodeChildDTO::getPCode)); |
|||
List<AreaCodeChildDTO> levelFour = groupByLevel.get(NumConstant.FOUR); |
|||
levelFour.forEach(four -> { |
|||
AreaCodeDictResultDTO dto = new AreaCodeDictResultDTO(); |
|||
dto.setCode(four.getCode()); |
|||
dto.setName(four.getName()); |
|||
dto.setParentCode(four.getPCode()); |
|||
groupByPCode.forEach((pCode,v) -> { |
|||
if (dto.getCode().equals(pCode)){ |
|||
List<AreaCodeDictResultDTO> fiveResult = new ArrayList<>(); |
|||
v.forEach(five -> { |
|||
AreaCodeDictResultDTO fiveDto = new AreaCodeDictResultDTO(); |
|||
fiveDto.setCode(five.getCode()); |
|||
fiveDto.setName(five.getName()); |
|||
fiveResult.add(fiveDto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> fiveSort = fiveResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
dto.setChildren(fiveSort); |
|||
} |
|||
}); |
|||
fourResult.add(dto); |
|||
}); |
|||
List<AreaCodeDictResultDTO> collect = fourResult.stream().sorted(Comparator.comparing(AreaCodeDictResultDTO::getCode)).collect(Collectors.toList()); |
|||
return collect; |
|||
} |
|||
|
|||
/** |
|||
* @Description 街道-社区组织树处理 |
|||
* @Param form |
|||
* @author zxc |
|||
* @date 2021/1/11 上午9:58 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> disposeAfterTwoLevel(AreaCodeDictFormDTO form){ |
|||
List<AreaCodeDictResultDTO> result = new ArrayList<>(); |
|||
List<AreaCodeDictResultDTO> areaCodeDictResultDTOS = afterTwoTree(); |
|||
if (CollectionUtils.isEmpty(areaCodeDictResultDTOS)){ |
|||
return new ArrayList<>(); |
|||
} |
|||
if (form.getRootAreaLevel().equals(AreaCodeConstant.STREET)){ |
|||
for (AreaCodeDictResultDTO dto : areaCodeDictResultDTOS) { |
|||
if (dto.getCode().equals(form.getRootAreaCode())){ |
|||
result.add(dto); |
|||
} |
|||
} |
|||
}else { |
|||
for (AreaCodeDictResultDTO dto : areaCodeDictResultDTOS) { |
|||
if (!CollectionUtils.isEmpty(dto.getChildren())){ |
|||
for (AreaCodeDictResultDTO child : dto.getChildren()) { |
|||
if (child.getCode().equals(form.getRootAreaCode())){ |
|||
result.add(child); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
/** |
|||
* @Description 省市区获取 |
|||
* @Param form |
|||
* @Param tree |
|||
* @author zxc |
|||
* @date 2021/1/12 上午9:22 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> disposeBeforeThreeLevel(AreaCodeDictFormDTO form,List<AreaCodeDictResultDTO> tree){ |
|||
List<AreaCodeDictResultDTO> result = new ArrayList<>(); |
|||
if (CollectionUtils.isEmpty(tree)){ |
|||
return new ArrayList<>(); |
|||
} |
|||
if (form.getRootAreaLevel().equals(AreaCodeConstant.PROVINCE)){ |
|||
for (AreaCodeDictResultDTO dto : tree) { |
|||
if (dto.getCode().equals(form.getRootAreaCode())){ |
|||
result.add(dto); |
|||
return result; |
|||
} |
|||
} |
|||
}else if (form.getRootAreaLevel().equals(AreaCodeConstant.CITY)){ |
|||
for (AreaCodeDictResultDTO dto : tree) { |
|||
if (!CollectionUtils.isEmpty(dto.getChildren())){ |
|||
for (AreaCodeDictResultDTO city : dto.getChildren()) { |
|||
if (city.getCode().equals(form.getRootAreaCode())){ |
|||
result.add(city); |
|||
return result; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}else if (form.getRootAreaLevel().equals(AreaCodeConstant.DISTRICT)){ |
|||
for (AreaCodeDictResultDTO dto : tree) { |
|||
if (!CollectionUtils.isEmpty(dto.getChildren())){ |
|||
for (AreaCodeDictResultDTO city : dto.getChildren()) { |
|||
if (!CollectionUtils.isEmpty(city.getChildren())){ |
|||
for (AreaCodeDictResultDTO child : city.getChildren()) { |
|||
if (child.getCode().equals(form.getRootAreaCode())){ |
|||
result.add(child); |
|||
return result; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
/** |
|||
* @Description 拼接 街道-社区 |
|||
* @Param form |
|||
* @Param tree |
|||
* @author zxc |
|||
* @date 2021/1/12 上午9:21 |
|||
*/ |
|||
public List<AreaCodeDictResultDTO> disposeBeforeThreeLevelFinal(AreaCodeDictFormDTO form,List<AreaCodeDictResultDTO> tree){ |
|||
List<AreaCodeDictResultDTO> threeDto = disposeBeforeThreeLevel(form, tree); |
|||
List<AreaCodeDictResultDTO> twoDto = afterTwoTree(); |
|||
if (CollectionUtils.isEmpty(threeDto)){ |
|||
return new ArrayList<>(); |
|||
} |
|||
if (!CollectionUtils.isEmpty(twoDto)){ |
|||
if (form.getRootAreaLevel().equals(AreaCodeConstant.PROVINCE)){ |
|||
for (AreaCodeDictResultDTO dto : tree) { |
|||
if (dto.getCode().equals(form.getRootAreaCode())){ |
|||
if (!CollectionUtils.isEmpty(dto.getChildren())){ |
|||
for (AreaCodeDictResultDTO city : dto.getChildren()) { |
|||
if (!CollectionUtils.isEmpty(city.getChildren())){ |
|||
for (AreaCodeDictResultDTO child : city.getChildren()) { |
|||
List<AreaCodeDictResultDTO> areaList = new ArrayList<>(); |
|||
for (AreaCodeDictResultDTO area : twoDto) { |
|||
if (child.getCode().equals(area.getParentCode())){ |
|||
areaList.add(area); |
|||
} |
|||
} |
|||
child.setChildren(areaList); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}else if (form.getRootAreaLevel().equals(AreaCodeConstant.CITY)){ |
|||
for (AreaCodeDictResultDTO dto : threeDto) { |
|||
if (!CollectionUtils.isEmpty(dto.getChildren())){ |
|||
for (AreaCodeDictResultDTO child : dto.getChildren()) { |
|||
List<AreaCodeDictResultDTO> areaList = new ArrayList<>(); |
|||
for (AreaCodeDictResultDTO area : twoDto) { |
|||
if (child.getCode().equals(area.getParentCode())){ |
|||
areaList.add(area); |
|||
} |
|||
} |
|||
child.setChildren(areaList); |
|||
} |
|||
} |
|||
} |
|||
}else{ |
|||
for (AreaCodeDictResultDTO dto : threeDto) { |
|||
List<AreaCodeDictResultDTO> areaList = new ArrayList<>(); |
|||
for (AreaCodeDictResultDTO area : twoDto) { |
|||
if (dto.getCode().equals(area.getParentCode())){ |
|||
areaList.add(area); |
|||
} |
|||
} |
|||
dto.setChildren(areaList); |
|||
} |
|||
} |
|||
} |
|||
return threeDto; |
|||
} |
|||
} |
@ -0,0 +1,383 @@ |
|||
CREATE TABLE `area_code_child` ( |
|||
`ID` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', |
|||
`CODE` varchar(16) DEFAULT NULL COMMENT '省份code', |
|||
`NAME` varchar(128) DEFAULT NULL COMMENT '省份名称', |
|||
`P_CODE` varchar(16) DEFAULT NULL COMMENT '父级code', |
|||
`LEVEL` tinyint(2) DEFAULT NULL COMMENT '区域级别', |
|||
`CATAGORY` varchar(8) DEFAULT NULL COMMENT '城乡分类代码\n111表示主城区\n112表示城乡结合区\n121表示镇中心区\n122表示镇乡结合区\n123表示特殊区域\n210表示乡中心区\n220表示村庄', |
|||
`DEL_FLAG` varchar(1) DEFAULT NULL COMMENT '删除标识 0-否,1-是', |
|||
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁 查询时添加版本号,新加的事件需要更新版本号', |
|||
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建人', |
|||
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
|||
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新人', |
|||
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
|||
PRIMARY KEY (`ID`) USING BTREE, |
|||
UNIQUE KEY `unx_code` (`CODE`) |
|||
) ENGINE=InnoDB AUTO_INCREMENT=362 DEFAULT CHARSET=utf8mb4 COMMENT='(4-5)街道/城镇和社区/村地区code'; |
|||
|
|||
-- ---------------------------- |
|||
-- Records of area_code_child |
|||
-- ---------------------------- |
|||
BEGIN; |
|||
INSERT INTO `area_code_child` VALUES (1, '370124001', '榆山街道', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (2, '370124001001', '东南沟居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (3, '370124001002', '南门居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (4, '370124001003', '东关居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (5, '370124001004', '西关居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (6, '370124001005', '北门居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (7, '370124001006', '北山东居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (8, '370124001007', '北山西居委会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (9, '370124001008', '东三里居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (10, '370124001009', '白庄居委会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (11, '370124001010', '龙山社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (12, '370124001011', '文汇社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (13, '370124001012', '五岭社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (14, '370124001013', '翠屏社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (15, '370124001014', '环秀社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (16, '370124001015', '会仙山社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (17, '370124001016', '文昌社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (18, '370124001017', '锦绣社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (19, '370124001018', '锦东社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (20, '370124001019', '云翠社区居民委员会', '370124001', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (21, '370124001201', '西桥口村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (22, '370124001202', '中桥口村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (23, '370124001203', '东桥口村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (24, '370124001204', '分水岭村民委员会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (25, '370124001205', '三山峪村民委员会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (26, '370124001206', '孙官庄村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (27, '370124001207', '东蛮子村民委员会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (28, '370124001208', '西蛮子村民委员会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (29, '370124001209', '洪口村民委员会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (30, '370124001210', '胡庄村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (31, '370124001211', '毕庄村民委员会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (32, '370124001212', '胡山口村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (33, '370124001213', '老博士村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (34, '370124001214', '新博士村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (35, '370124001215', '刘官庄村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (36, '370124001216', '石庄村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (37, '370124001217', '东阮二村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (38, '370124001218', '丁山头村民委员会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (39, '370124001219', '十里铺村委会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (40, '370124001220', '于庄村委会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (41, '370124001221', '葛庄村委会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (42, '370124001222', '尹庄村委会', '370124001', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (43, '370124001223', '田山村委会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (44, '370124001224', '翟庄村委会', '370124001', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (45, '370124002', '锦水街道', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (46, '370124002001', '玫瑰苑社区居民委员会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (47, '370124002002', '大佛寺社区居民委员会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (48, '370124002003', '玫瑰湖社区居民委员会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (49, '370124002004', '锦水园社区居民委员会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (50, '370124002201', '西三里村委会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (51, '370124002207', '堡子村委会', '370124002', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (52, '370124002208', '南土楼村委会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (53, '370124002209', '中土楼村委会', '370124002', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (54, '370124002210', '北土楼村委会', '370124002', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (55, '370124002211', '山头村委会', '370124002', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (56, '370124002212', '上盆王村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (57, '370124002213', '下盆王村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (58, '370124002214', '前阮二村委会', '370124002', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (59, '370124002215', '后寨村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (60, '370124002216', '前寨村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (61, '370124002217', '凌庄村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (62, '370124002218', '东子顺南村委会', '370124002', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (63, '370124002219', '东子顺北村委会', '370124002', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (64, '370124002220', '毕海洋村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (65, '370124002221', '大李子顺村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (66, '370124002222', '李山头村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (67, '370124002223', '宋子顺村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (68, '370124002224', '西子顺村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (69, '370124002225', '东孙庄村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (70, '370124002226', '龙桥村委会', '370124002', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (71, '370124102', '东阿镇', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (72, '370124102201', '东门村委会', '370124102', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (73, '370124102202', '衙前村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (74, '370124102203', '姜沟村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (75, '370124102204', '庞庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (76, '370124102205', '范庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (77, '370124102206', '赵庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (78, '370124102207', '魏院村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (79, '370124102208', '贾庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (80, '370124102209', '西山村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (81, '370124102210', '北门村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (82, '370124102211', '南门里村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (83, '370124102212', '南门外村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (84, '370124102213', '西南坝村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (85, '370124102214', '南坛村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (86, '370124102215', '窑头村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (87, '370124102216', '邢沟村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (88, '370124102217', '仁和村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (89, '370124102218', '孟庄村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (90, '370124102219', '乔庄村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (91, '370124102220', '北张村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (92, '370124102221', '东山村委会', '370124102', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (93, '370124102222', '苏桥村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (94, '370124102223', '铁杨村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (95, '370124102224', '大河口村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (96, '370124102225', '小河口村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (97, '370124102226', '刘庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (98, '370124102227', '司桥村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (99, '370124102228', '太平村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (100, '370124102229', '黄山村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (101, '370124102230', '小庙头村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (102, '370124102231', '于庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (103, '370124102232', '臧庙村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (104, '370124102233', '白塔村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (105, '370124102234', '三合村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (106, '370124102235', '乔楼村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (107, '370124102236', '北市村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (108, '370124102237', '杨山村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (109, '370124102238', '小屯村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (110, '370124102239', '桃园村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (111, '370124102240', '太和村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (112, '370124102241', '南市村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (113, '370124102242', '侯庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (114, '370124102243', '殷六村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (115, '370124102244', '辛庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (116, '370124102245', '王庄村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (117, '370124102246', '花石崖村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (118, '370124102247', '龙王峪村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (119, '370124102248', '北直沟村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (120, '370124102249', '东直沟村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (121, '370124102250', '西直沟村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (122, '370124102251', '西黑山村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (123, '370124102252', '东黑山村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (124, '370124102253', '苏山头村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (125, '370124102254', '直东峪村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (126, '370124102255', '新西直沟村委会', '370124102', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (127, '370124103', '孝直镇', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (128, '370124103201', '孝直村委会', '370124103', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (129, '370124103202', '李庄村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (130, '370124103203', '贾庄村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (131, '370124103204', '天兴村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (132, '370124103205', '大兴村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (133, '370124103206', '后兴村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (134, '370124103207', '吴庄村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (135, '370124103208', '张平村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (136, '370124103209', '泊头村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (137, '370124103210', '凤凰庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (138, '370124103211', '赵桥村委会', '370124103', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (139, '370124103212', '张屯村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (140, '370124103213', '张沟村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (141, '370124103214', '张庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (142, '370124103215', '大天宫村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (143, '370124103216', '小天宫村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (144, '370124103217', '营子村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (145, '370124103218', '东辛庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (146, '370124103219', '西辛庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (147, '370124103220', '前庄科村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (148, '370124103221', '后庄科村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (149, '370124103222', '刁鹅岭村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (150, '370124103223', '商庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (151, '370124103224', '亓集村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (152, '370124103225', '付庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (153, '370124103226', '黄庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (154, '370124103227', '谷楼村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (155, '370124103228', '张小山村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (156, '370124103229', '野场村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (157, '370124103230', '廉庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (158, '370124103231', '南孔庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (159, '370124103232', '东湿口山村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (160, '370124103233', '西湿口山村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (161, '370124103234', '马跑泉村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (162, '370124103235', '刘家庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (163, '370124103236', '薄庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (164, '370124103237', '罗圈崖村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (165, '370124103238', '焦庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (166, '370124103239', '许小山村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (167, '370124103240', '刘所村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (168, '370124103241', '前店子村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (169, '370124103242', '后店子村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (170, '370124103243', '二虎庙村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (171, '370124103244', '沙岭村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (172, '370124103245', '龙洼村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (173, '370124103246', '邱林村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (174, '370124103247', '丁屯村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (175, '370124103248', '盛屯村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (176, '370124103249', '夏庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (177, '370124103250', '东白庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (178, '370124103251', '东江庄村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (179, '370124103252', '柳滩村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (180, '370124103261', '宋柳沟村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (181, '370124103262', '曲柳沟村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (182, '370124103263', '焦柳沟村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (183, '370124103264', '王柳沟村委会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (184, '370124103265', '和圣苑村民委员会', '370124103', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (185, '370124104', '孔村镇', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (186, '370124104001', '卧龙山社区居民委员会', '370124104', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (187, '370124104201', '孔村村委会', '370124104', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (188, '370124104202', '合楼村委会', '370124104', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (189, '370124104203', '尹庄村委会', '370124104', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (190, '370124104204', '孙庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (191, '370124104205', '北孔庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (192, '370124104206', '王小屯村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (193, '370124104207', '东天宫村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (194, '370124104208', '前转湾村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (195, '370124104209', '后转村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (196, '370124104210', '王庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (197, '370124104211', '张山头村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (198, '370124104212', '前套村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (199, '370124104213', '后套村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (200, '370124104214', '陈屯村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (201, '370124104215', '郭柳沟村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (202, '370124104216', '范皮村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (203, '370124104217', '刘小庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (204, '370124104218', '臧庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (205, '370124104219', '太平村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (206, '370124104220', '蒋沟村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (207, '370124104221', '南官庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (208, '370124104222', '前岭村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (209, '370124104223', '孔子山村委会', '370124104', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (210, '370124104224', '金沟村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (211, '370124104225', '柿子园村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (212, '370124104226', '李沟村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (213, '370124104227', '晁峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (214, '370124104228', '王楼村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (215, '370124104229', '半边井村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (216, '370124104230', '前大峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (217, '370124104231', '后大峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (218, '370124104232', '黄坡村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (219, '370124104233', '小峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (220, '370124104234', '胡坡村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (221, '370124104235', '安子山村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (222, '370124104236', '大荆山村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (223, '370124104237', '值金寨村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (224, '370124104238', '白云峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (225, '370124104239', '孔庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (226, '370124104240', '北毛峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (227, '370124104241', '尚辛庄村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (228, '370124104242', '高路桥村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (229, '370124104243', '柿子峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (230, '370124104244', '团山沟村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (231, '370124104245', '石板台村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (232, '370124104246', '南毛峪村委会', '370124104', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (233, '370124105', '洪范池镇', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (234, '370124105201', '东池村委会', '370124105', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (235, '370124105202', '西池村委会', '370124105', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (236, '370124105203', '大寨村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (237, '370124105204', '丁泉村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (238, '370124105205', '白雁泉村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (239, '370124105206', '长尾崖村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (240, '370124105207', '郭沟村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (241, '370124105208', '大黄崖村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (242, '370124105209', '小黄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (243, '370124105210', '陶峪村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (244, '370124105211', '辛庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (245, '370124105212', '前杨村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (246, '370124105213', '后杨村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (247, '370124105214', '纸坊村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (248, '370124105215', '刘庙村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (249, '370124105216', '南张村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (250, '370124105217', '苗海村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (251, '370124105218', '杜庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (252, '370124105219', '谢庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (253, '370124105220', '周河村委会', '370124105', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (254, '370124105221', '书院村委会', '370124105', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (255, '370124105222', '北崖村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (256, '370124105223', '南崖村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (257, '370124105224', '张海村委会', '370124105', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (258, '370124105225', '候庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (259, '370124105226', '王山头村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (260, '370124105227', '臧庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (261, '370124105228', '周庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (262, '370124105229', '西北李村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (263, '370124105230', '闫庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (264, '370124105231', '陈庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (265, '370124105232', '任庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (266, '370124105233', '李山头村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (267, '370124105234', '刘庄村委会', '370124105', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (268, '370124106', '玫瑰镇', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (269, '370124106201', '焦庄村委会', '370124106', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (270, '370124106202', '夏沟村委会', '370124106', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (271, '370124106203', '老张庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (272, '370124106204', '野仙沟村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (273, '370124106205', '罗寨村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (274, '370124106206', '西唐村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (275, '370124106207', '东唐村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (276, '370124106208', '陈山头村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (277, '370124106209', '葛庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (278, '370124106210', '王桥村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (279, '370124106211', '胡庄村委会', '370124106', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (280, '370124106212', '北新村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (281, '370124106213', '陶庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (282, '370124106214', '王镐店村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (283, '370124106215', '彭庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (284, '370124106216', '刘店村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (285, '370124106217', '庞口村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (286, '370124106218', '庄科村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (287, '370124106219', '北石硖村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (288, '370124106220', '南石硖村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (289, '370124106221', '李庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (290, '370124106222', '赵台村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (291, '370124106223', '高辛村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (292, '370124106224', '南泉村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (293, '370124106225', '北泉村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (294, '370124106226', '高套村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (295, '370124106227', '韩套村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (296, '370124106228', '刁山坡村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (297, '370124106229', '吉庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (298, '370124106230', '张洼村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (299, '370124106231', '大孙庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (300, '370124106232', '俄庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (301, '370124106233', '江庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (302, '370124106234', '孔集村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (303, '370124106235', '东豆山村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (304, '370124106236', '西豆山村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (305, '370124106237', '外山村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (306, '370124106238', '崔山头村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (307, '370124106239', '站东村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (308, '370124106240', '站西村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (309, '370124106241', '李屯村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (310, '370124106242', '丁口村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (311, '370124106243', '王小庄村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (312, '370124106244', '郭套村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (313, '370124106245', '李塘村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (314, '370124106246', '新屯村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (315, '370124106247', '东站村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (316, '370124106248', '南台村委会', '370124106', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (317, '370124107', '安城镇', '370124', 4, '', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (318, '370124107201', '安城村村委会', '370124107', 5, '121', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (319, '370124107202', '东土寨村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (320, '370124107203', '西土寨村委会', '370124107', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (321, '370124107204', '北圣井村委会', '370124107', 5, '122', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (322, '370124107205', '南圣井村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (323, '370124107206', '小官村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (324, '370124107207', '邱庄村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (325, '370124107208', '张天井村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (326, '370124107209', '常天井村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (327, '370124107210', '段天井村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (328, '370124107211', '铁山村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (329, '370124107212', '双井村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (330, '370124107213', '林洼村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (331, '370124107214', '大官村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (332, '370124107215', '东凤凰村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (333, '370124107216', '冷饭店村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (334, '370124107217', '刘庄村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (335, '370124107218', '东毛铺村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (336, '370124107219', '西毛铺村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (337, '370124107220', '皂火村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (338, '370124107221', '南栾湾村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (339, '370124107222', '中栾湾村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (340, '370124107223', '北栾湾村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (341, '370124107224', '南贵平村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (342, '370124107225', '北贵平村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (343, '370124107226', '让庄铺村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (344, '370124107227', '东平洛村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (345, '370124107228', '西平洛村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (346, '370124107229', '望口山村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (347, '370124107230', '胜利村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (348, '370124107231', '近镇村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (349, '370124107232', '三皇殿村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (350, '370124107233', '柳河圈村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (351, '370124107234', '辛庄村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (352, '370124107235', '王营村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (353, '370124107236', '东张营村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (354, '370124107237', '西张营村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (355, '370124107238', '南王店村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (356, '370124107239', '西瓜店村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (357, '370124107240', '西凤村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (358, '370124107241', '董庄村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (359, '370124107242', '宋庄村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (360, '370124107243', '兴隆镇村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
INSERT INTO `area_code_child` VALUES (361, '370124107244', '虎豹川村委会', '370124107', 5, '220', NULL, NULL, NULL, NULL, NULL, NULL); |
|||
COMMIT; |
File diff suppressed because it is too large
@ -0,0 +1,10 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dao.AreaCodeChildDao"> |
|||
|
|||
|
|||
<select id="selectAllChild" resultType="com.epmet.dto.AreaCodeChildDTO"> |
|||
select * from area_code_child |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,10 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dao.AreaCodeDao"> |
|||
|
|||
|
|||
<select id="selectAllArea" resultType="com.epmet.dto.AreaCodeDTO"> |
|||
select * from area_code; |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue