update ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java.
This commit is contained in:
@@ -295,6 +295,9 @@ public class ExcelUtil<T>
|
|||||||
{
|
{
|
||||||
val = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator());
|
val = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator());
|
||||||
}
|
}
|
||||||
|
if (fieldType == boolean.class && (val == null||"".equals(val))) {
|
||||||
|
val = false;
|
||||||
|
}
|
||||||
ReflectUtils.invokeSetter(entity, propertyName, val);
|
ReflectUtils.invokeSetter(entity, propertyName, val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user