From a538020ae3d1af171816187a16ebb0072ea68892 Mon Sep 17 00:00:00 2001 From: Andru <769883346@qq.com> Date: 星期五, 03 十一月 2023 18:31:11 +0800 Subject: [PATCH] 添加企业微信发送邮件方法 --- src/main/java/com/hx/util/StringUtils.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/hx/util/StringUtils.java b/src/main/java/com/hx/util/StringUtils.java index 0a43d73..76e38a8 100644 --- a/src/main/java/com/hx/util/StringUtils.java +++ b/src/main/java/com/hx/util/StringUtils.java @@ -228,6 +228,16 @@ return null == str || str.trim().length() == 0 || "undefined".equals(str); } + /**鍒ゆ柇绌�*/ + public static boolean isNull(String str) { + return null == str || str.trim().length() == 0 || "undefined".equals(str); + } + + /**鍒ゆ柇闈炵┖*/ + public static boolean noNull(String str) { + return null != str && str.trim().length() != 0 && !"undefined".equals(str); + } + /** * 鍒ゆ柇瀛楃鍐呭涓槸鍚﹀瓨鍦ㄤ竴涓负绌虹殑瀛楃锟�? * <p> @@ -348,4 +358,15 @@ return oriStr; } + /** + * 鍘婚櫎绌烘牸 + * @param info 淇℃伅 + * @return 杩斿洖 + */ + public static String trimBlank(String info){ + if (null != info){ + return info.trim(); + } + return null; + } } -- Gitblit v1.8.0