Interface ICityDao

All Superinterfaces:
com.baomidou.mybatisplus.core.mapper.BaseMapper<CityEntity>, net.mingsoft.base.dao.IBaseDao<CityEntity>, com.baomidou.mybatisplus.core.mapper.Mapper<CityEntity>

public interface ICityDao extends net.mingsoft.base.dao.IBaseDao<CityEntity>
省市县镇村数据持久层
Version:
版本号:100
创建日期:2017-7-27 14:47:29
历史修订:
Author:
伍晶晶
  • Method Summary

    Modifier and Type
    Method
    Description
     
    queryById(CityEntity cityEntity)
     
    queryByLevel(int level)
    通过层级过滤城市数据,提高性能
    queryCity(CityEntity cityEntity)
    查询市
    queryCounty(CityEntity cityEntity)
    查询区/县
    查询省/直辖市/自治区
     
    queryTown(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, updateById

    Methods 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

      List<CityEntity> queryCity(CityEntity cityEntity)
      查询市
      Parameters:
      cityEntity - 城市实体 city_id city_name
      Returns:
      市级列表
    • queryCounty

      List<CityEntity> queryCounty(CityEntity cityEntity)
      查询区/县
      Parameters:
      cityEntity - county_id county_name
      Returns:
      区/县列表
    • queryTown

      List<CityEntity> queryTown(CityEntity cityEntity)
      查询街道/镇
      Parameters:
      cityEntity - town_id town_name
      Returns:
      街道/镇列表
    • queryVillage

      List<CityEntity> queryVillage(CityEntity cityEntity)
      查询村委会
      Parameters:
      cityEntity - village_id village_name
      Returns:
      村委会列表
    • queryByLevel

      List<CityEntity> queryByLevel(@Param("level") int level)
      通过层级过滤城市数据,提高性能
      Parameters:
      level - 默认3级获取到区数据
      Returns:
      列表
    • queryById

      List<CityEntity> queryById(CityEntity cityEntity)
    • queryByEntity

      CityEntity queryByEntity(CityEntity city)
    • queryProvinceAndName

      List<CityEntity> queryProvinceAndName(CityEntity city)