|
@@ -66,9 +66,9 @@ public class BasicBaseDao implements ApplicationContextAware, InitializingBean {
|
|
|
|
|
|
@Override
|
|
|
public void afterPropertiesSet() throws Exception {
|
|
|
- Map<String, CheckSqlProcess> beansOfType = this.applicationContext.getBeansOfType(CheckSqlProcess.class);
|
|
|
+ // Map<String, CheckSqlProcess> beansOfType = this.applicationContext.getBeansOfType(CheckSqlProcess.class);
|
|
|
Map<String, SQLEventHandler> SQLEventHandlerMap = this.applicationContext.getBeansOfType(SQLEventHandler.class);
|
|
|
- if (SQLEventHandlerMap != null && SQLEventHandlerMap.size() > 0) {
|
|
|
+ if (SQLEventHandlerMap.size() > 0) {
|
|
|
this.sqlEventHandlerList = new ArrayList<>();
|
|
|
SQLEventHandlerMap.forEach((K, V) -> {
|
|
|
this.sqlEventHandlerList.add(V);
|
|
@@ -76,7 +76,7 @@ public class BasicBaseDao implements ApplicationContextAware, InitializingBean {
|
|
|
}
|
|
|
|
|
|
Map<String, SQLPostProcess> sqlPostProcessMap = this.applicationContext.getBeansOfType(SQLPostProcess.class);
|
|
|
- if (sqlPostProcessMap != null && sqlPostProcessMap.size() > 0) {
|
|
|
+ if (sqlPostProcessMap.size() > 0) {
|
|
|
this.sqlPostProcessorList = new ArrayList<>();
|
|
|
sqlPostProcessMap.forEach((K, V) -> {
|
|
|
this.sqlPostProcessorList.add(V);
|