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

pull/229/head
fatfish517 2020-11-24 10:45:19 +08:00 committed by Gitee
parent 30850c1fdf
commit ed0deeb230
1 changed files with 3 additions and 0 deletions

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);
}
}