From ac6445390cd799b5e885ddaaa8df677883d5e116 Mon Sep 17 00:00:00 2001 From: yulichang <570810310@qq.com> Date: Thu, 2 Mar 2023 16:35:33 +0800 Subject: [PATCH] fix https://gitee.com/best_handsome/mybatis-plus-join/issues/I6J2YN --- .../main/java/com/github/yulichang/method/SelectJoinCount.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybatis-plus-join-core/src/main/java/com/github/yulichang/method/SelectJoinCount.java b/mybatis-plus-join-core/src/main/java/com/github/yulichang/method/SelectJoinCount.java index 94ba80e..a7481b5 100644 --- a/mybatis-plus-join-core/src/main/java/com/github/yulichang/method/SelectJoinCount.java +++ b/mybatis-plus-join-core/src/main/java/com/github/yulichang/method/SelectJoinCount.java @@ -28,6 +28,6 @@ public class SelectJoinCount extends MPJAbstractMethod { String sql = String.format(sqlMethod.getSql(), sqlFirst(), sqlCount(), tableInfo.getTableName(), sqlAlias(), sqlFrom(), sqlWhereEntityWrapper(true, tableInfo), sqlComment()); SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass); - return this.addSelectMappedStatementForOther(mapperClass, sqlMethod.getMethod(), sqlSource, Integer.class); + return this.addSelectMappedStatementForOther(mapperClass, sqlMethod.getMethod(), sqlSource, Long.class); } }