Ver código fonte

适配达梦数据库

hexiao 1 ano atrás
pai
commit
069eb169a3

+ 3 - 0
base-framework/src/main/java/com/ozs/framework/config/DMSqlMybatisIntercepts.java

@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor;
 import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.NoArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.ibatis.executor.Executor;
 import org.apache.ibatis.executor.statement.StatementHandler;
 import org.apache.ibatis.mapping.BoundSql;
@@ -24,6 +25,7 @@ import java.util.List;
 @Data
 @NoArgsConstructor
 @AllArgsConstructor
+@Slf4j
 public class DMSqlMybatisIntercepts implements InnerInterceptor {
 
     private String dbname;
@@ -78,6 +80,7 @@ public class DMSqlMybatisIntercepts implements InnerInterceptor {
         }
         String s = builder.toString();
         String s1 = s.replaceAll("`", "");
+        log.info("处理过的sql:{}",s1);
         return s1;
     }
 }