diff --git a/src/main/java/xyz/zhouxy/plusone/commons/sql/MyBatisSql.java b/src/main/java/xyz/zhouxy/plusone/commons/sql/MyBatisSql.java index 73f680d..729d558 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/sql/MyBatisSql.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/sql/MyBatisSql.java @@ -26,14 +26,14 @@ public class MyBatisSql extends SQL { } public static String IN(String col, String paramName) { - return " " + col + " IN" + buildQuestionsList(col, paramName); + return " " + col + " IN" + buildForeach(col, paramName); } public static String NOT_IN(String col, String paramName) { - return col + " NOT IN" + buildQuestionsList(col, paramName); + return col + " NOT IN" + buildForeach(col, paramName); } - private static String buildQuestionsList(String col, String paramName) { + private static String buildForeach(String col, String paramName) { final String format = "