public interface ICityDao
extends net.mingsoft.base.dao.IBaseDao
| 限定符和类型 | 方法和说明 |
|---|---|
List<CityEntity> |
queryByLevel(int level)
通过层级过滤城市数据,提高性能
|
List<CityEntity> |
queryCity(CityEntity cityEntity)
查询市
|
List<CityEntity> |
queryCounty(CityEntity cityEntity)
查询区/县
|
List<CityEntity> |
queryProvince()
查询省/直辖市/自治区
|
List<CityEntity> |
queryTown(CityEntity cityEntity)
查询街道/镇
|
List<CityEntity> |
queryVillage(CityEntity cityEntity)
查询村委会
|
List<CityEntity> queryProvince()
List<CityEntity> queryCity(CityEntity cityEntity)
cityEntity - 城市实体
city_id
city_nameList<CityEntity> queryCounty(CityEntity cityEntity)
cityEntity - county_id
county_nameList<CityEntity> queryTown(CityEntity cityEntity)
cityEntity - town_id
town_nameList<CityEntity> queryVillage(CityEntity cityEntity)
cityEntity - village_id
village_nameList<CityEntity> queryByLevel(@Param(value="level") int level)
level - 默认3级获取到区数据Copyright © 2020. All rights reserved.