Преглед на файлове

新增index按照时间分片

chenweida преди 6 години
родител
ревизия
45380b7968
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      admin/admin-client-starter/src/main/java/com/yihu/admin/client/advice/SQLTimeAdvice.java

+ 1 - 3
admin/admin-client-starter/src/main/java/com/yihu/admin/client/advice/SQLTimeAdvice.java

@ -42,9 +42,7 @@ public class SQLTimeAdvice {
    @Around("execution(* org.springframework.jdbc.core.JdbcTemplate.batchUpdate*(..)) " +
            "|| execution(* org.springframework.jdbc.core.JdbcTemplate.query*(..)) " +
            "|| execution(* org.springframework.jdbc.core.JdbcTemplate.execute*(..)) " +
            "|| this(org.springframework.data.repository.Repository) " +
            "|| this(org.springframework.data.jpa.repository.JpaSpecificationExecutor)")
            "|| execution(* org.springframework.jdbc.core.JdbcTemplate.execute*(..)) " )
    public Object process(ProceedingJoinPoint point) throws Throwable {
        if (!adminClientProperties.getSql()) {
            return point.proceed();