提交 e2f93e60 编写于 作者: S serge-rider

#3178 XLS export fix (NULL values)

上级 86667be1
......@@ -402,9 +402,9 @@ public class DataExporterXLSX extends StreamExporterAbstract {
}
sb.append(buffer, 0, count);
}
if (sb.length() > 0) {
cell.setCellValue(sb.toString());
}
cell.setCellValue(sb.toString());
} finally {
ContentUtils.close(reader);
}
......@@ -460,6 +460,8 @@ public class DataExporterXLSX extends StreamExporterAbstract {
if (DBUtils.isNullValue(row[i])) {
if (!CommonUtils.isEmpty(nullString)) {
cell.setCellValue(nullString);
} else {
cell.setCellValue("");
}
} else if (row[i] instanceof DBDContent) {
DBDContent content = (DBDContent) row[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册