Skip to content

Commit

Permalink
build: v4.1.8 release (^.^)YYa!!
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Aug 20, 2024
1 parent 8483333 commit 421a8ef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Jboot 是一个基于 JFinal、Dubbo、Seata、Sentinel、ShardingSphere、Nacos
<dependency>
<groupId>io.jboot</groupId>
<artifactId>jboot</artifactId>
<version>4.1.7</version>
<version>4.1.8</version>
</dependency>
```

Expand Down
5 changes: 5 additions & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
jboot v4.1.8 2024-08-20:
修复:紧急修复上个版本合并的 JbootModel 造成的问题



jboot v4.1.7 2024-08-18:
优化:JbootAopFactory.java 构造方法访问权限修改为 protected 方便继承扩展,感谢 @macaque
优化:cache 带有dataLoader的方法中日志会打印多次问题,感谢 @macaque
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.jboot</groupId>
<artifactId>jboot</artifactId>
<version>4.1.7</version>
<version>4.1.8</version>
<packaging>jar</packaging>

<name>jboot</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/jboot/JbootConsts.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
public class JbootConsts {

public static String VERSION = "4.1.7";
public static String VERSION = "4.1.8";


public static final String ATTR_CONTEXT_PATH = "CPATH";
Expand Down
14 changes: 1 addition & 13 deletions src/main/java/io/jboot/db/model/JbootModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -765,24 +765,12 @@ public List<M> findListByColumns(Columns columns, String orderBy, Integer count)
}

public List<M> findListByColumns(Columns columns, String orderBy, Integer count, String loadColumns) {
return findListByColumns(columns, orderBy,0, count, loadColumns);
}

public List<M> findListByColumns(Columns columns, String orderBy,Integer start, Integer count, String loadColumns) {
processColumns(columns, "findList");
loadColumns = getLoadColumns(loadColumns);
String limitStr = buildLimitStr(start, count);
String sql = _getDialect().forFindByColumns(alias, joins, _getTableName(), loadColumns, columns.getList(), orderBy, limitStr);
String sql = _getDialect().forFindByColumns(alias, joins, _getTableName(), loadColumns, columns.getList(), orderBy, count);
return columns.isEmpty() ? find(sql) : find(sql, columns.getValueArray());
}

protected String buildLimitStr(Integer start, Integer count) {
StringBuilder sb = new StringBuilder();
sb.append(start).append(",").append(count);
return sb.toString();
}


//方便在某些场景下,对 columns 进行二次加工
protected void processColumns(Columns columns, String action) {
}
Expand Down

0 comments on commit 421a8ef

Please sign in to comment.