REQ-2135: rename elements to precise names
This commit is contained in:
parent
89c0f282df
commit
5dbc08a3c4
@ -14,8 +14,8 @@ import cn.axzo.msg.center.message.domain.param.MessageGroupNodeStatisticParam;
|
||||
import cn.axzo.msg.center.message.service.group.GroupTemplateService;
|
||||
import cn.axzo.msg.center.message.service.group.NodeWrapper;
|
||||
import cn.axzo.msg.center.message.service.impl.PendingMessageNewServiceImpl;
|
||||
import cn.axzo.msg.center.message.service.todo.mybatis.CollectSQLInterceptor;
|
||||
import cn.axzo.msg.center.message.service.todo.pagequery.PageQuerySort;
|
||||
import cn.axzo.msg.center.message.service.todo.mybatis.SQLCollectInterceptor;
|
||||
import cn.axzo.msg.center.message.service.todo.queryanalyze.SimpleAnalyzer;
|
||||
import cn.axzo.msg.center.service.enums.PendingMessageRoleCategoryEnum;
|
||||
import cn.axzo.msg.center.service.enums.PendingMessageStateEnum;
|
||||
@ -163,11 +163,11 @@ public class TodoRangeQueryService {
|
||||
private AnalysisPage<PendingRecordAdapter> queryAndAnalysis(
|
||||
Object analyzeItem, Supplier<AnalysisPage<PendingRecordAdapter>> pageQuery) {
|
||||
if (analyzeItem != null)
|
||||
SQLCollectInterceptor.enableCollectSQL();
|
||||
CollectSQLInterceptor.enableCollectSQL();
|
||||
try {
|
||||
Ref<String> execSQL = Ref.create();
|
||||
AnalysisPage<PendingRecordAdapter> result = pageQuery.get();
|
||||
execSQL.set(SQLCollectInterceptor.getSQL().orElse(null));
|
||||
execSQL.set(CollectSQLInterceptor.getSQL().orElse(null));
|
||||
// !! analysis
|
||||
result.addAnalysis("analyzeItem", analyzeItem);
|
||||
result.addAnalysis("query", execSQL::get);
|
||||
@ -178,7 +178,7 @@ public class TodoRangeQueryService {
|
||||
});
|
||||
return result;
|
||||
} finally {
|
||||
SQLCollectInterceptor.disableCollectSQL();
|
||||
CollectSQLInterceptor.disableCollectSQL();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ import java.util.Optional;
|
||||
@Intercepts(value = {
|
||||
@Signature(type = StatementHandler.class, method = "parameterize", args = {Statement.class})
|
||||
})
|
||||
public class SQLCollectInterceptor implements Interceptor {
|
||||
public class CollectSQLInterceptor implements Interceptor {
|
||||
|
||||
private static final ThreadLocal<SQLInfo> LOCAL = new ThreadLocal<>();
|
||||
|
||||
@ -12,8 +12,8 @@ import org.springframework.context.annotation.Configuration;
|
||||
public class SqlInterceptorConfig {
|
||||
|
||||
@Bean
|
||||
SQLCollectInterceptor sqlCollectInterceptor() {
|
||||
return new SQLCollectInterceptor();
|
||||
CollectSQLInterceptor sqlCollectInterceptor() {
|
||||
return new CollectSQLInterceptor();
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Loading…
Reference in New Issue
Block a user