@Service(value="cityBizImpl") @Transactional public class CityBizImpl extends net.mingsoft.base.biz.impl.BaseBizImpl<ICityDao,CityEntity> implements ICityBiz
| 构造器和说明 |
|---|
CityBizImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected net.mingsoft.base.dao.IBaseDao |
getDao() |
CityEntity |
queryByEntity(CityEntity city) |
List<CityEntity> |
queryById(CityEntity cityEntity)
根据当前实体的cityId,village_id等判断具体是查询省或市等层级
|
List<CityEntity> |
queryByLevel(int level)
通过层级过滤城市数据,提高性能
|
List<CityEntity> |
queryCity(CityEntity cityEntity)
查询市
|
List<CityEntity> |
queryCounty(CityEntity cityEntity)
查询区/县
|
List<CityBean> |
queryForTree(int level,
String type)
根据层级,和类型来确定返回多少级数
|
List<CityEntity> |
queryProvince()
查询省/直辖市/自治区
|
List<CityEntity> |
queryProvinceAndName(CityEntity city) |
List<CityEntity> |
queryTown(CityEntity cityEntity)
查询街道/镇
|
List<CityEntity> |
queryVillage(CityEntity cityEntity)
查询村委会
|
alterTable, countBySQL, countBySQL, createTable, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, getOne, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateCache, updateEntitycloseSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterTable, countBySQL, countBySQL, createTable, delete, delete, deleteBySQL, deleteEntity, deleteEntity, dropTable, excuteSql, getEntity, getEntity, insertBySQL, query, queryAll, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryBySQL, queryCount, saveBatch, saveEntity, updateBySQL, updateCache, updateEntitycount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdprotected net.mingsoft.base.dao.IBaseDao getDao()
getDao 在类中 net.mingsoft.base.biz.impl.BaseBizImpl<ICityDao,CityEntity>public List<CityEntity> queryProvince()
ICityBizqueryProvince 在接口中 ICityBizpublic List<CityEntity> queryCity(CityEntity cityEntity)
ICityBizpublic List<CityEntity> queryCounty(CityEntity cityEntity)
ICityBizqueryCounty 在接口中 ICityBizpublic List<CityEntity> queryTown(CityEntity cityEntity)
ICityBizpublic List<CityEntity> queryVillage(CityEntity cityEntity)
ICityBizqueryVillage 在接口中 ICityBizpublic List<CityBean> queryForTree(int level, String type)
ICityBizqueryForTree 在接口中 ICityBizlevel - 层级数,整型。public List<CityEntity> queryByLevel(int level)
ICityBizqueryByLevel 在接口中 ICityBizlevel - 默认3级获取到区数据public List<CityEntity> queryById(CityEntity cityEntity)
ICityBizpublic CityEntity queryByEntity(CityEntity city)
queryByEntity 在接口中 ICityBizpublic List<CityEntity> queryProvinceAndName(CityEntity city)
queryProvinceAndName 在接口中 ICityBizCopyright © 2024. All rights reserved.