This commit is contained in:
yulichang 2023-03-17 11:34:11 +08:00
parent bf56112b05
commit 740c19511c
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.2</version> <version>3.5.3.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>

View File

@ -60,7 +60,7 @@ public class MybatisPlusConfig {
System.out.println("==============================================="); System.out.println("===============================================");
} else { } else {
System.err.println("执行sql: " + SqlSourceBuilder.removeExtraWhitespaces(sql)); System.err.println("执行sql: " + SqlSourceBuilder.removeExtraWhitespaces(sql));
sqlList.forEach(i -> System.err.println("预期sql: " + i)); sqlList.forEach(i -> System.err.println("预期sql: " + SqlSourceBuilder.removeExtraWhitespaces(i)));
throw new RuntimeException("sql error"); throw new RuntimeException("sql error");
} }
} }
@ -85,7 +85,7 @@ public class MybatisPlusConfig {
System.out.println("==============================================="); System.out.println("===============================================");
} else { } else {
System.err.println("执行sql: " + SqlSourceBuilder.removeExtraWhitespaces(sql)); System.err.println("执行sql: " + SqlSourceBuilder.removeExtraWhitespaces(sql));
sqlList.forEach(i -> System.err.println("预期sql: " + i)); sqlList.forEach(i -> System.err.println("预期sql: " + SqlSourceBuilder.removeExtraWhitespaces(i)));
throw new RuntimeException("sql error"); throw new RuntimeException("sql error");
} }
} }