REQ-3284: 查询数量过大告警

This commit is contained in:
yanglin 2024-11-29 10:47:22 +08:00
parent 5d26dcb614
commit 7ac2bc9042
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ package cn.axzo.msg.center.message.service.todo.mybatis;
import cn.axzo.msg.center.inside.notices.config.DiagnosisProps;
import cn.axzo.msg.center.inside.notices.config.PendingMessageBizConfig;
import cn.axzo.msg.center.message.service.todo.mybatis.rowcountwarn.ResultCountInterceptor;
import cn.axzo.msg.center.message.service.todo.mybatis.rowcountwarn.RowCountInterceptor;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@ -21,9 +21,9 @@ public class SqlInterceptorConfig {
}
@Bean
ResultCountInterceptor resultCountInterceptor(DiagnosisProps props,
ListableBeanFactory beanFactory) {
return new ResultCountInterceptor(props, beanFactory);
RowCountInterceptor resultCountInterceptor(DiagnosisProps props,
ListableBeanFactory beanFactory) {
return new RowCountInterceptor(props, beanFactory);
}
@Bean

View File

@ -21,7 +21,7 @@ import java.sql.Statement;
args = {Connection.class, Integer.class})
})
@RequiredArgsConstructor
public class ResultCountInterceptor implements Interceptor {
public class RowCountInterceptor implements Interceptor {
private final DiagnosisProps props;
private final ListableBeanFactory beanFactory;