Commit 15f3822a authored by Quxl's avatar Quxl

x

parent c5b29911
...@@ -103,12 +103,7 @@ public class ExcelUtil { ...@@ -103,12 +103,7 @@ public class ExcelUtil {
if(type == Date.class) { if(type == Date.class) {
cell.setCellValue(DateUtil.format((Date)obj)); cell.setCellValue(DateUtil.format((Date)obj));
} else { } else {
HSSFCellStyle cellStyle = cell.getCellStyle(); cell.setCellStyle(bodyStyle);
if(cellStyle == null) {
cellStyle = bodyStyle;
}
cellStyle.setWrapText(true);
cell.setCellStyle(cellStyle);
cell.setCellValue(new HSSFRichTextString(String.valueOf(obj))); cell.setCellValue(new HSSFRichTextString(String.valueOf(obj)));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment