!229 update ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java.

Merge pull request !229 from fatfish517/N/A
This commit is contained in:
若依
2020-11-28 11:27:07 +08:00
committed by Gitee

View File

@@ -295,6 +295,9 @@ public class ExcelUtil<T>
{
val = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator());
}
if (fieldType == boolean.class && (val == null||"".equals(val))) {
val = false;
}
ReflectUtils.invokeSetter(entity, propertyName, val);
}
}