@Service @DS(value="authority") @Transactional(rollbackFor=java.lang.Exception.class, propagation=REQUIRES_NEW) public class AreaServiceImpl extends ServiceImpl<AreaMapper,Area> implements IAreaService
构造器和说明 |
---|
AreaServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
String |
getNameById(Long id)
通过ID获取名称
|
boolean |
isCityExisted(String city)
是否存在对应地市
|
boolean |
isProvinceExisted(String province)
是否存在对应省
|
List<AreaBO> |
listCity(String province)
查询省下的所有地市
|
List<AreaBO> |
listProvince()
查询权限列表
|
List<AreaBO> |
queryUserArea(Long userId)
查询用户授权区域
|
alwaysUpdateSomeColumnById, deleteByIdWithFill, insertBatchSomeColumn, insertIgnoreBatchSomeColumn
closeSqlSession, currentMapperClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchById
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alwaysUpdateSomeColumnById, deleteByIdWithFill, insertBatchSomeColumn, insertIgnoreBatchSomeColumn
selectJoinCount, selectJoinList, selectJoinListPage, selectJoinMap, selectJoinMaps, selectJoinMapsPage, selectJoinOne
currentModelClass, getByIdDeep, getByIdDeep, getByIdDeep, getMapDeep, getMapDeep, getMapDeep, getOneDeep, getOneDeep, getOneDeep, getOneDeep, getOneDeep, getOneDeep, listByIdsDeep, listByIdsDeep, listByIdsDeep, listByMapDeep, listByMapDeep, listByMapDeep, listDeep, listDeep, listDeep, listDeep, listDeep, listDeep, listMapsDeep, listMapsDeep, listMapsDeep, listMapsDeep, listMapsDeep, listMapsDeep, pageDeep, pageDeep, pageDeep, pageDeep, pageDeep, pageDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep
count, 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, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById
public List<AreaBO> listProvince()
IAreaService
listProvince
在接口中 IAreaService
public List<AreaBO> queryUserArea(Long userId)
IAreaService
queryUserArea
在接口中 IAreaService
userId
- 用户IDpublic boolean isCityExisted(String city)
IAreaService
isCityExisted
在接口中 IAreaService
city
- 地市public boolean isProvinceExisted(String province)
IAreaService
isProvinceExisted
在接口中 IAreaService
province
- 省public String getNameById(Long id)
IAreaService
getNameById
在接口中 IAreaService
id
- 区域IDpublic List<AreaBO> listCity(String province)
IAreaService
listCity
在接口中 IAreaService
province
- 省