src/main/java/com/lf/server/helper/StringHelper.java
@@ -35,7 +35,7 @@ /** * 格式化当前系统日期 4 */ public static final SimpleDateFormat YMD_HM_FORMAT = new SimpleDateFormat("yyyyMMdd_HHmm"); public static final SimpleDateFormat YMDHMS2_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss"); /** * 判断字符串,是否为整数 @@ -121,6 +121,13 @@ } /** * 获取 like 字符串-2 */ public static String getLikeStr2(String str) { return StringHelper.isEmpty(str) ? "%" : "%" + str.trim() + "%"; } /** * 首字母大写 */ public static String firstCharToUpperCase(String str) {