Skip to content

Commit

Permalink
升级版本号,默认不打印SQL日志
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Oct 30, 2024
1 parent 54785f5 commit 3d9dcdd
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
MiniDao
=======
当前最新版本: 1.10.3 (发布日期:2024-10-23
当前最新版本: 1.10.4 (发布日期:2024-10-30

[![AUR](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
[![](https://img.shields.io/badge/Author-北京国炬软件-orange.svg)](http://jeecg.com/aboutusIndex)
[![](https://img.shields.io/badge/Blog-官方博客-blue.svg)](https://jeecg.blog.csdn.net)
[![](https://img.shields.io/badge/version-1.10.3-brightgreen.svg)](https://github.com/zhangdaiscott/jeecg-boot)
[![](https://img.shields.io/badge/version-1.10.4-brightgreen.svg)](https://github.com/zhangdaiscott/jeecg-boot)
[![GitHub stars](https://img.shields.io/github/stars/zhangdaiscott/jeecg-boot.svg?style=social&label=Stars)](https://github.com/zhangdaiscott/jeecg-boot)
[![GitHub forks](https://img.shields.io/github/forks/zhangdaiscott/jeecg-boot.svg?style=social&label=Fork)](https://github.com/zhangdaiscott/jeecg-boot)

Expand Down Expand Up @@ -44,7 +44,7 @@ MiniDao 是一款轻量级JAVA持久层框架,基于 SpringJdbc + freemarker
<dependency>
<groupId>org.jeecgframework</groupId>
<artifactId>minidao-pe</artifactId>
<version>1.10.3</version>
<version>1.10.4</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions minidao-pe-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jeecgframework</groupId>
<artifactId>minidao-pe-example</artifactId>
<version>1.10.3</version>
<version>1.10.4</version>
<packaging>jar</packaging>
<url>http://www.jeecg.com</url>
<parent>
<groupId>org.jeecgframework</groupId>
<artifactId>minidao-parent</artifactId>
<version>1.10.3</version>
<version>1.10.4</version>
</parent>

<properties>
<minidao.version>1.10.3</minidao.version>
<minidao.version>1.10.4</minidao.version>
<junit.version>4.13.1</junit.version>
<springframework.version>5.3.31</springframework.version>
<!-- 数据库驱动 -->
Expand Down
2 changes: 1 addition & 1 deletion minidao-pe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.jeecgframework</groupId>
<artifactId>minidao-pe</artifactId>
<version>1.10.3</version>
<version>1.10.4</version>
<packaging>jar</packaging>

<name>minidao-pe</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,24 @@ private Object getReturnMinidaoResult(MiniDaoPage pageSetting, Method method, St
if (returnType.isAssignableFrom(MiniDaoPage.class)) {
if (paramMap != null) {
String countsql = MiniDaoUtil.getCountSql(executeSql);
logger.info("page smart countsql===> "+countsql);
if (showSql) {
logger.info("page smart countsql===> "+countsql);
}
pageSetting.setTotal(namedParameterJdbcTemplate.queryForObject(countsql, paramMap, Integer.class));
} else {
String countsql = MiniDaoUtil.getCountSql(executeSql);
logger.info("page countsql===> "+countsql);
if (showSql) {
logger.info("page countsql===> "+countsql);
}
pageSetting.setTotal(jdbcTemplate.queryForObject(countsql, Integer.class));
}
}
//判断方言,获取分页sql
if (pageAutoDialect.getDelegate()!=null) {
executeSql = pageAutoDialect.getDelegate().getPageSql(executeSql,pageSetting);
logger.info("page executeSql===> "+executeSql);
if (showSql) {
logger.info("page executeSql===> "+executeSql);
}
}
//executeSql = MiniDaoUtil.createPageSql(dbType, executeSql, page, rows);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static String getDbType(DataSource dataSource){
String dbUrl = getUrl(dataSource);
String dbType = getDbType(dbUrl);
long endTime=System.currentTimeMillis();
logger.info("获取DB类型:"+ dbType+ ",耗时:"+ (endTime-startTime) +"ms");
logger.debug("获取DB类型:"+ dbType+ ",耗时:"+ (endTime-startTime) +"ms");
return dbType;
}

Expand Down Expand Up @@ -290,7 +290,7 @@ public static boolean isJSqlParserAvailable() {
private static boolean checkJSqlParserAvailability() {
try {
Class.forName("net.sf.jsqlparser.statement.select.SelectBody");
logger.info("【Sql Parser】 The environment supports jsqlparser engine");
logger.debug("【Sql Parser】 The environment supports jsqlparser engine");
return true;
} catch (ClassNotFoundException e) {
logger.warn("【Sql Parser】 The environment does not support jsqlparser engine");
Expand Down
4 changes: 2 additions & 2 deletions minidao-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jeecgframework</groupId>
<artifactId>minidao-spring-boot-starter</artifactId>
<version>1.10.3</version>
<version>1.10.4</version>
<packaging>jar</packaging>

<parent>
Expand Down Expand Up @@ -33,7 +33,7 @@

<properties>
<!-- minidao -->
<minidao.version>1.10.3</minidao.version>
<minidao.version>1.10.4</minidao.version>
<druid.version>1.2.22</druid.version>
<mysql-connector-java.version>8.0.27</mysql-connector-java.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jeecgframework</groupId>
<artifactId>minidao-parent</artifactId>
<version>1.10.3</version>
<version>1.10.4</version>
<packaging>pom</packaging>

<!-- 项目属性 -->
Expand Down

0 comments on commit 3d9dcdd

Please sign in to comment.