mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
4a0a977397
commit
c5472f839b
@ -63,8 +63,8 @@ public class StyleSet implements Serializable {
|
||||
|
||||
// 默认数字格式
|
||||
cellStyleForNumber = StyleUtil.cloneCellStyle(workbook, this.cellStyle);
|
||||
// 2表示:0.00
|
||||
cellStyleForNumber.setDataFormat((short) 2);
|
||||
// 0表示:General
|
||||
cellStyleForNumber.setDataFormat((short) 0);
|
||||
|
||||
// 默认日期格式
|
||||
this.cellStyleForDate = StyleUtil.cloneCellStyle(workbook, this.cellStyle);
|
||||
|
@ -820,6 +820,19 @@ public class ExcelWriteTest {
|
||||
writer.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
//@Ignore
|
||||
public void writeDoubleTest(){
|
||||
// https://gitee.com/dromara/hutool/issues/I5PI5C
|
||||
final String path = "d:/test/doubleTest.xlsx";
|
||||
FileUtil.del(path);
|
||||
|
||||
final ExcelWriter writer = ExcelUtil.getWriter(path);
|
||||
writer.disableDefaultStyle();
|
||||
writer.writeRow(ListUtil.view(0.427d));
|
||||
writer.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void issueI466ZZTest(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user