From 8a16116027464d17e800cd070d256aff59350b7d Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Mon, 16 Nov 2020 15:50:32 +0800
Subject: [PATCH] 更改监测因子趋势图M

---
 src/main/java/com/moral/common/util/StringUtils.java |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/moral/common/util/StringUtils.java b/src/main/java/com/moral/common/util/StringUtils.java
index 80635bf..7205248 100644
--- a/src/main/java/com/moral/common/util/StringUtils.java
+++ b/src/main/java/com/moral/common/util/StringUtils.java
@@ -1,11 +1,25 @@
 package com.moral.common.util;
 
+import com.mysql.jdbc.TimeUtil;
+
+import javax.validation.constraints.NotNull;
+
+import java.math.BigDecimal;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import org.apache.commons.lang3.Conversion;
+
+/**
+ *
+ * ������������: string ���������
+ * @author: fengxiang
+ * @date: 2018/7/30 10:53
+ */
 public class StringUtils {
 	public static final char UNDERLINE = '_';
+	public static final String NULL = "null";
 
     /**
      * ������������������������������������������������������
@@ -44,7 +58,7 @@
         return sb.toString();
     }
 	public static boolean isNullOrEmpty(String toTest) {
-		return toTest == null || toTest.length() == 0;
+		return toTest == null || toTest.length() == 0 || NULL.equals(toTest);
 	}
 	public static Object stringToObject4Type(Class<?> type,String value) throws Exception{
 		Object result = value;
@@ -134,11 +148,12 @@
 	}
 	public static boolean isNumericZidai(String str) {
 		for (int i = 0; i < str.length(); i++) {
-			System.out.println(str.charAt(i));
+			//System.out.println(str.charAt(i));
 			if (!Character.isDigit(str.charAt(i))) {
 				return false;
 			}
 		}
 		return true;
 	}
+
 }

--
Gitblit v1.8.0