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 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)