@Service public class ConTreeNodeServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<ConTreeNodeMapperX,ConTreeNodeDO> implements IConTreeNodeService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
树节点数据 服务实现类
| Constructor and Description |
|---|
ConTreeNodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc. |
boolean |
isValidNode(String treeCode,
Integer nodeId)
判断节点是否合法
|
List<ConTreeNodeDO> |
listNodes(String treeCode,
Integer rootNodeId,
String nodeName,
boolean recursion)
获取rootNodeId的子节点
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
closeSqlSession, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getMap, getObj, getOne, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, 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, updateByIdpublic boolean isValidNode(String treeCode, Integer nodeId)
isValidNode in interface IConTreeNodeServicetreeCode - 树编码nodeId - 节点idpublic List<ConTreeNodeDO> listNodes(String treeCode, Integer rootNodeId, String nodeName, boolean recursion)
listNodes in interface IConTreeNodeServicetreeCode - 树编码rootNodeId - 父节点nodeName - 节点名称recursion - 是否递归查找public void afterPropertiesSet()
throws Exception
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - in the event of misconfiguration (such as failure to set an
essential property) or if initialization fails for any other reasonpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
Invoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and
MessageSourceAware, if applicable.
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the ApplicationContext object to be used by this objectorg.springframework.context.ApplicationContextException - in case of context initialization errorsorg.springframework.beans.BeansException - if thrown by application context methodsBeanInitializationExceptionCopyright © 2020. All rights reserved.