Commit 9ea3d0e1 authored by hongguangwu's avatar hongguangwu

&& !"".equals(obj)

parent d989b9de
...@@ -59,7 +59,7 @@ public class Common { ...@@ -59,7 +59,7 @@ public class Common {
* @author: fxj * @author: fxj
*/ */
public static boolean isEmpty(Object obj) { public static boolean isEmpty(Object obj) {
return null == obj; return null == obj || "".equals(obj);
} }
public static boolean isNotNull(Object obj) { public static boolean isNotNull(Object obj) {
......
...@@ -146,7 +146,7 @@ public class SalaryAccountUtil implements Serializable { ...@@ -146,7 +146,7 @@ public class SalaryAccountUtil implements Serializable {
scs = entry.getValue(); scs = entry.getValue();
if (Common.isNotNull(cellValueObj) && scs != null) { if (Common.isNotNull(cellValueObj) && scs != null) {
cellValueStr = getStringValByObject(cellValueObj); cellValueStr = getStringValByObject(cellValueObj);
if (Common.isEmpty(cellValueStr)) { if (!StringUtils.isNotBlank(cellValueStr)) {
errorFlag = false; errorFlag = false;
error = "第" + (i + 2) + "行:" + entry.getKey() + "列_不识别对象类型"; error = "第" + (i + 2) + "行:" + entry.getKey() + "列_不识别对象类型";
errorList.add(new ErrorMessage((i + 2), error)); errorList.add(new ErrorMessage((i + 2), error));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment