feat: There is no way the, Es

This commit is contained in:
super_liu
2022-06-08 11:40:47 +08:00
parent 5911efd8d6
commit 1735f95b4a
10 changed files with 60 additions and 11 deletions
@@ -1,5 +1,6 @@
package com.adc.da.utils.util;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellType;
@@ -18,6 +19,16 @@ public class Utils {
return MessageFormat.format(value, paras);
}
public static boolean isJson(String string) {
try {
JSONObject.parseObject(string);
return true;
} catch (Exception e) {
return false;
}
}
//判断row是否为空 空返回true
public static boolean isRowEmpty(Row row) {
if (null == row) {