mirror of https://gitee.com/y_project/RuoYi.git
!229 update ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java.
Merge pull request !229 from fatfish517/N/Apull/229/MERGE
commit
c7262e4c3e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue