public class CustomFunction extends Object implements org.ssssssss.magicapi.core.config.MagicFunction
MagicFunction| 构造器和说明 |
|---|
CustomFunction() |
@Function @Comment(value="\u53d6\u5f53\u524d\u65f6\u95f4") public static Date now()
@Function @Comment(value="\u65e5\u671f\u683c\u5f0f\u5316") public static String date_format(@Comment(value="\u76ee\u6807\u65e5\u671f") Date target)
target - 目标日期时间对象@Function @Comment(value="\u65e5\u671f\u683c\u5f0f\u5316") public static String date_format(@Comment(value="\u76ee\u6807\u65e5\u671f") Date target, @Comment(value="\u683c\u5f0f") String pattern)
target - 目标日期时间对象pattern - 日期时间格式模式@Function @Comment(value="\u5224\u65ad\u503c\u662f\u5426\u4e3a\u7a7a") public static Object ifnull(@Comment(value="\u76ee\u6807\u503c") Object target, @Comment(value="\u4e3a\u7a7a\u7684\u503c") Object trueValue, @Comment(value="\u4e0d\u4e3a\u7a7a\u7684\u503c") Object falseValue)
target - 目标值trueValue - 目标值为空时返回的值falseValue - 目标值不为空时返回的值Copyright © 2026. All rights reserved.