Skip to content

5.6.4 强化分页场景下totalCount跟pageNo、pageSize、rowSize的逻辑校正

Compare
Choose a tag to compare
@chenrenfei chenrenfei released this 03 Apr 10:43
· 225 commits to 5.6 since this release

1、因存在count缓存、pageNo越界、查询count和查询记录的时间差等场景,导致totalCount跟pageNo、pageSize、rowSize的逻辑值差异,比如:totalCount=8,pageNo=2,rowSize=1,pageSize=10,应校正totalCount=11

<!-- 其他非spring框架可以基于sagacity-sqltoy 进行扩展 -->
<dependency>
	<groupId>com.sagframe</groupId>
	<artifactId>sagacity-sqltoy</artifactId>
        <!-- jdk8 对应的版本号为:5.6.4.jre8 -->
	<version>5.6.4</version>
</dependency>

<!-- 纯粹springboot项目只需引入sagacity-sqltoy-spring-starter依赖即可  -->
<dependency>
	<groupId>com.sagframe</groupId>
	<artifactId>sagacity-sqltoy-spring-starter</artifactId>
        <!-- jdk8 对应的版本号为:5.6.4.jre8 -->
	<version>5.6.4</version>
</dependency>

<!-- solon 插件  -->
<dependency>
	<groupId>com.sagframe</groupId>
	<artifactId>sagacity-sqltoy-solon-plugin</artifactId>
        <!-- jdk8 对应的版本号为:5.6.4.jre8 -->
	<version>5.6.4</version>
</dependency>