mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix csv bug
This commit is contained in:
@@ -683,7 +683,7 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
*
|
||||
* @param lastColumn 合并到的最后一个列号
|
||||
* @param content 合并单元格后的内容
|
||||
* @param isSetHeaderStyle 是否为合并后的单元格设置默认标题样式
|
||||
* @param isSetHeaderStyle 是否为合并后的单元格设置默认标题样式,只提取边框样式
|
||||
* @return this
|
||||
* @since 4.0.10
|
||||
*/
|
||||
@@ -710,7 +710,7 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
* @param firstColumn 起始列,0开始
|
||||
* @param lastColumn 结束列,0开始
|
||||
* @param content 合并单元格后的内容
|
||||
* @param isSetHeaderStyle 是否为合并后的单元格设置默认标题样式
|
||||
* @param isSetHeaderStyle 是否为合并后的单元格设置默认标题样式,只提取边框样式
|
||||
* @return this
|
||||
* @since 4.0.10
|
||||
*/
|
||||
|
@@ -498,4 +498,13 @@ public class ExcelWriteTest {
|
||||
writer.write(rows);
|
||||
writer.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void formatTest(){
|
||||
final ExcelWriter writer = ExcelUtil.getWriter("d:/test/formatTest.xlsx");
|
||||
final CellStyle cellStyle = writer.createCellStyle(0, 0);
|
||||
cellStyle.setDataFormat(writer.getWorkbook().createDataFormat().getFormat("yyyy-mm-dd"));
|
||||
writer.close();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user