Package net.mingsoft.basic.dao
Interface ICityDao
- All Superinterfaces:
com.baomidou.mybatisplus.core.mapper.BaseMapper<CityEntity>,net.mingsoft.base.dao.IBaseDao<CityEntity>,com.baomidou.mybatisplus.core.mapper.Mapper<CityEntity>
省市县镇村数据持久层
- Version:
- 版本号:100
创建日期:2017-7-27 14:47:29
历史修订: - Author:
- 伍晶晶
-
Method Summary
Modifier and TypeMethodDescriptionqueryByEntity(CityEntity city) queryById(CityEntity cityEntity) queryByLevel(int level) 通过层级过滤城市数据,提高性能queryCity(CityEntity cityEntity) 查询市queryCounty(CityEntity cityEntity) 查询区/县查询省/直辖市/自治区queryTown(CityEntity cityEntity) 查询街道/镇queryVillage(CityEntity cityEntity) 查询村委会Methods inherited from interface com.baomidou.mybatisplus.core.mapper.BaseMapper
delete, deleteBatchIds, deleteById, deleteById, deleteById, deleteByIds, deleteByIds, deleteByMap, exists, insert, insert, insert, insertOrUpdate, insertOrUpdate, insertOrUpdate, insertOrUpdate, insertOrUpdate, selectBatchIds, selectBatchIds, selectById, selectByIds, selectByIds, selectByMap, selectByMap, selectCount, selectList, selectList, selectList, selectList, selectMaps, selectMaps, selectMaps, selectMaps, selectMapsPage, selectObjs, selectObjs, selectOne, selectOne, selectPage, update, update, updateById, updateById, updateByIdMethods inherited from interface net.mingsoft.base.dao.IBaseDao
alterTable, createTable, delete, delete, deleteByEntity, deleteBySQL, deleteEntity, dropTable, excuteSql, getByEntity, getEntity, getEntity, insertBySQL, query, queryAll, queryByPage, queryCount, saveBatch, saveEntity, updateBySQL, updateCache, updateEntity
-
Method Details
-
queryProvince
List<CityEntity> queryProvince()查询省/直辖市/自治区- Returns:
- 省/直辖市/自治区列表
-
queryCity
查询市- Parameters:
cityEntity- 城市实体 city_id city_name- Returns:
- 市级列表
-
queryCounty
查询区/县- Parameters:
cityEntity- county_id county_name- Returns:
- 区/县列表
-
queryTown
查询街道/镇- Parameters:
cityEntity- town_id town_name- Returns:
- 街道/镇列表
-
queryVillage
查询村委会- Parameters:
cityEntity- village_id village_name- Returns:
- 村委会列表
-
queryByLevel
通过层级过滤城市数据,提高性能- Parameters:
level- 默认3级获取到区数据- Returns:
- 列表
-
queryById
-
queryByEntity
-
queryProvinceAndName
-