MCPcopy Index your code
hub / github.com/Tencent/APIJSON / function

Method function

APIJSONORM/src/main/java/apijson/SQL.java:260–266  ·  view source on GitHub ↗

函数 @param column if (StringUtil.isEmpty(column, true) || column.contains(",")) -> column = null; @return " " + fun + "(" + #column(String) + ") ";

(String fun, String column)

Source from the content-addressed store, hash-verified

258 * @return " " + fun + "(" + {@link #column(String)} + ") ";
259 */
260 public static String function(String fun, String column) {
261 // 支持 fun(col1,col2..)
262 // if (StringUtil.isEmpty(column, true) || column.contains(",")) {
263 // column = null; //解决 count(id,name) 这种多个字段导致的SQL异常
264 // }
265 return " " + fun + "(" + column(column) + ") ";
266 }
267 /**有别名的函数
268 * @param column
269 * @return {@link #function(String, String)} + {@link #AS} + fun;

Callers 1

functionAsMethod · 0.95

Calls 1

columnMethod · 0.95

Tested by

no test coverage detected