public interface CountMsId
构建当前查询对应的 count 方法 id 返回的 msId 会先判断是否存在自定义的方法,存在就直接使用 如果不存在,会根据当前的 msId 创建 MappedStatement
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongenCountMsId(org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, String countSuffix) 构建当前查询对应的 count 方法 id
-
Field Details
-
DEFAULT
默认实现
-
-
Method Details
-
genCountMsId
String genCountMsId(org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, String countSuffix) 构建当前查询对应的 count 方法 id- Parameters:
ms- 查询对应的 MappedStatementparameter- 方法参数boundSql- 查询SQLcountSuffix- 配置的 count 后缀- Returns:
- count 查询丢的 msId
-