Package net.mingsoft.basic.biz.impl
Class CityBizImpl
java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
net.mingsoft.base.biz.impl.BaseBizImpl<ICityDao,CityEntity>
net.mingsoft.basic.biz.impl.CityBizImpl
- All Implemented Interfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<CityEntity>,com.baomidou.mybatisplus.extension.service.IService<CityEntity>,net.mingsoft.base.biz.IBaseBiz<CityEntity>,ICityBiz
@Service("cityBizImpl")
@Transactional
public class CityBizImpl
extends net.mingsoft.base.biz.impl.BaseBizImpl<ICityDao,CityEntity>
implements ICityBiz
省市县镇村数据管理持久化层
- Version:
- 版本号:100
创建日期:2017-7-27 14:47:29
历史修订: - Author:
- 伍晶晶
-
Field Summary
Fields inherited from class net.mingsoft.base.biz.impl.BaseBizImpl
LOGFields inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
baseMapperFields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
logFields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.mingsoft.base.dao.IBaseDaogetDao()queryByEntity(CityEntity city) queryById(CityEntity cityEntity) 根据当前实体的cityId,village_id等判断具体是查询省或市等层级queryByLevel(int level) 通过层级过滤城市数据,提高性能queryCity(CityEntity cityEntity) 查询市queryCounty(CityEntity cityEntity) 查询区/县queryForTree(int level, String type) 根据层级,和类型来确定返回多少级数查询省/直辖市/自治区queryTown(CityEntity cityEntity) 查询街道/镇queryVillage(CityEntity cityEntity) 查询村委会Methods inherited from class net.mingsoft.base.biz.impl.BaseBizImpl
alterTable, createTable, delete, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, execute, getEntity, getEntity, getEntity, getOne, insert, insertBySQL, query, queryAll, queryCount, queryForList, queryForList, queryForListPage, saveBatch, saveEntity, update, update, updateBySQL, updateCache, updateEntityMethods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchByIdMethods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
CityBizImpl
public CityBizImpl()
-
-
Method Details
-
getDao
protected net.mingsoft.base.dao.IBaseDao getDao()- Specified by:
getDaoin classnet.mingsoft.base.biz.impl.BaseBizImpl<ICityDao,CityEntity>
-
queryProvince
Description copied from interface:ICityBiz查询省/直辖市/自治区- Specified by:
queryProvincein interfaceICityBiz- Returns:
- 省/直辖市/自治区列表 province_id 省/直辖市/自治区编号 province_name 省/直辖市/自治区名称
-
queryCity
Description copied from interface:ICityBiz查询市 -
queryCounty
Description copied from interface:ICityBiz查询区/县- Specified by:
queryCountyin interfaceICityBiz- Returns:
- 区/县列表 county_id 区/县编号 county_name 区/县 名称
-
queryTown
Description copied from interface:ICityBiz查询街道/镇 -
queryVillage
Description copied from interface:ICityBiz查询村委会- Specified by:
queryVillagein interfaceICityBiz- Returns:
- 村委会/社区列表 village_id 村委会/社区编号 village_name 村委会/社区名称
-
queryForTree
Description copied from interface:ICityBiz根据层级,和类型来确定返回多少级数- Specified by:
queryForTreein interfaceICityBiz- Parameters:
level- 层级数,整型。- Returns:
- id 城市编号 name 城市名称 parentId 父级城市编号 childrensList 子城市数据,包括id,name,parentId,childrensList
-
queryByLevel
Description copied from interface:ICityBiz通过层级过滤城市数据,提高性能- Specified by:
queryByLevelin interfaceICityBiz- Parameters:
level- 默认3级获取到区数据- Returns:
- 列表
-
queryById
Description copied from interface:ICityBiz根据当前实体的cityId,village_id等判断具体是查询省或市等层级 -
queryByEntity
- Specified by:
queryByEntityin interfaceICityBiz
-
queryProvinceAndName
- Specified by:
queryProvinceAndNamein interfaceICityBiz
-