forked from plusone/plusone-commons
修改方法名。
parent
cc10f11b37
commit
6a66b51b8e
|
@ -26,14 +26,14 @@ public class MyBatisSql extends SQL<MyBatisSql> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String IN(String col, String paramName) {
|
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) {
|
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 = "<foreach" +
|
final String format = "<foreach" +
|
||||||
" item=\"%s\"" +
|
" item=\"%s\"" +
|
||||||
" index=\"index\"" +
|
" index=\"index\"" +
|
||||||
|
|
Loading…
Reference in New Issue