@Service public class SysDepartmentServiceImpl extends BaseServiceImpl<SysDepartmentMapper,SysDepartment> implements SysDepartmentService
部门 服务实现类
| Constructor and Description |
|---|
SysDepartmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteSysDepartment(Long id)
删除
|
SysDepartmentTreeVo |
findChildren(SysDepartmentTreeVo tree,
List<SysDepartmentTreeVo> list)
递归获取树形结果列表
|
List<SysDepartment> |
getAllDepartmentList()
获取所有可用的部门列表
|
List<SysDepartmentTreeVo> |
getAllDepartmentTree()
获取所有可用的部门树形列表
|
SysDepartmentQueryVo |
getSysDepartmentById(Serializable id)
根据ID获取查询对象
|
Paging<SysDepartmentQueryVo> |
getSysDepartmentPageList(SysDepartmentQueryParam sysDepartmentQueryParam)
获取分页对象
|
boolean |
isEnableSysDepartment(Long id)
根据id校验部门是否存在并且已启用
|
boolean |
saveSysDepartment(SysDepartment sysDepartment)
保存
|
boolean |
updateSysDepartment(SysDepartment sysDepartment)
修改
|
setPageParam, setPageParamcloseSqlSession, count, currentModelClass, getBaseMapper, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, 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@Transactional(rollbackFor=java.lang.Exception.class) public boolean saveSysDepartment(SysDepartment sysDepartment) throws Exception
SysDepartmentServicesaveSysDepartment in interface SysDepartmentServiceException@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateSysDepartment(SysDepartment sysDepartment) throws Exception
SysDepartmentServiceupdateSysDepartment in interface SysDepartmentServiceException@Transactional(rollbackFor=java.lang.Exception.class) public boolean deleteSysDepartment(Long id) throws Exception
SysDepartmentServicedeleteSysDepartment in interface SysDepartmentServiceExceptionpublic SysDepartmentQueryVo getSysDepartmentById(Serializable id) throws Exception
SysDepartmentServicegetSysDepartmentById in interface SysDepartmentServiceExceptionpublic Paging<SysDepartmentQueryVo> getSysDepartmentPageList(SysDepartmentQueryParam sysDepartmentQueryParam) throws Exception
SysDepartmentServicegetSysDepartmentPageList in interface SysDepartmentServiceExceptionpublic boolean isEnableSysDepartment(Long id) throws Exception
SysDepartmentServiceisEnableSysDepartment in interface SysDepartmentServiceExceptionpublic List<SysDepartment> getAllDepartmentList()
SysDepartmentServicegetAllDepartmentList in interface SysDepartmentServicepublic List<SysDepartmentTreeVo> getAllDepartmentTree()
SysDepartmentServicegetAllDepartmentTree in interface SysDepartmentServicepublic SysDepartmentTreeVo findChildren(SysDepartmentTreeVo tree, List<SysDepartmentTreeVo> list)
tree - list - Copyright © 2019. All rights reserved.