Package net.mingsoft.basic.biz
Interface ICityBiz
- All Superinterfaces:
net.mingsoft.base.biz.IBaseBiz<CityEntity>,com.baomidou.mybatisplus.extension.repository.IRepository<CityEntity>,com.baomidou.mybatisplus.extension.service.IService<CityEntity>
- All Known Implementing Classes:
CityBizImpl
省市县镇村数据业务
- Version:
- 版本号:100
创建日期:2017-7-27 14:47:29
历史修订: - Author:
- 伍晶晶
-
Field Summary
Fields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Method Summary
Modifier and TypeMethodDescriptionqueryByEntity(CityEntity city) queryById(CityEntity cityEntity) 根据当前实体的cityId,village_id等判断具体是查询省或市等层级queryByLevel(int level) 通过层级过滤城市数据,提高性能queryCity(CityEntity cityEntity) 查询市queryCounty(CityEntity cityEntity) 查询区/县queryForTree(int tier, String type) 根据层级,和类型来确定返回多少级数查询省/直辖市/自治区queryTown(CityEntity cityEntity) 查询街道/镇queryVillage(CityEntity cityEntity) 查询村委会Methods inherited from interface net.mingsoft.base.biz.IBaseBiz
alterTable, createTable, delete, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, execute, getEntity, getEntity, getEntity, insert, insertBySQL, query, queryAll, queryCount, queryForList, queryForList, queryForListPage, saveBatch, saveEntity, update, update, updateBySQL, updateCache, updateEntityMethods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateByIdMethods inherited from interface com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
Method Details
-
queryProvince
List<CityEntity> queryProvince()查询省/直辖市/自治区- Returns:
- 省/直辖市/自治区列表 province_id 省/直辖市/自治区编号 province_name 省/直辖市/自治区名称
-
queryCity
查询市- Parameters:
cityEntity- 城市实体- Returns:
- 市级列表 city_id 市编号 city_name 市名称
-
queryCounty
查询区/县- Parameters:
cityEntity-- Returns:
- 区/县列表 county_id 区/县编号 county_name 区/县 名称
-
queryTown
查询街道/镇- Parameters:
cityEntity-- Returns:
- 街道/镇列表 town_id 街道/镇编号 town_name 街道/镇名称
-
queryVillage
查询村委会- Parameters:
cityEntity-- Returns:
- 村委会/社区列表 village_id 村委会/社区编号 village_name 村委会/社区名称
-
queryForTree
根据层级,和类型来确定返回多少级数- Parameters:
tier- 层级数,整型。- Returns:
- id 城市编号 name 城市名称 parentId 父级城市编号 childrensList 子城市数据,包括id,name,parentId,childrensList
-
queryByLevel
通过层级过滤城市数据,提高性能- Parameters:
level- 默认3级获取到区数据- Returns:
- 列表
-
queryById
根据当前实体的cityId,village_id等判断具体是查询省或市等层级- Parameters:
cityEntity-- Returns:
-
queryByEntity
-
queryProvinceAndName
-