mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-08 06:37:58 +08:00
fix mergeRegion
This commit is contained in:
parent
fb46196782
commit
cb761ffea2
@ -26,6 +26,7 @@
|
|||||||
* 【core 】 解决ListUtil计算总量可能的int溢出问题(pr#1150@Github)
|
* 【core 】 解决ListUtil计算总量可能的int溢出问题(pr#1150@Github)
|
||||||
* 【json 】 解决JSON中转换为double小数精度丢失问题(pr#192@Gitee)
|
* 【json 】 解决JSON中转换为double小数精度丢失问题(pr#192@Gitee)
|
||||||
* 【core 】 修复CaseInsensitiveMap的remove等方法并没有忽略大小写的问题(pr#1163@Gitee)
|
* 【core 】 修复CaseInsensitiveMap的remove等方法并没有忽略大小写的问题(pr#1163@Gitee)
|
||||||
|
* 【poi 】 修复合并单元格值读取错误的问题
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ public class CellUtil {
|
|||||||
cellType = cell.getCellTypeEnum();
|
cellType = cell.getCellTypeEnum();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CellType.BLANK == cellType){
|
if(CellType.BLANK == cellType || CellUtil.isMergedRegion(cell)){
|
||||||
// 空白单元格可能为合并单元格
|
// 空白单元格可能为合并单元格
|
||||||
cell = getMergedRegionCell(cell);
|
cell = getMergedRegionCell(cell);
|
||||||
cellType = cell.getCellTypeEnum();
|
cellType = cell.getCellTypeEnum();
|
||||||
|
@ -215,9 +215,12 @@ public class ExcelReadTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore
|
||||||
public void readTest() {
|
public void readTest() {
|
||||||
final ExcelReader reader = ExcelUtil.getReader("d:/test/人员体检信息表.xlsx");
|
final ExcelReader reader = ExcelUtil.getReader("d:/test/人员体检信息表.xlsx");
|
||||||
final List<List<Object>> read = reader.read();
|
final List<List<Object>> read = reader.read(2);
|
||||||
// Console.log(read);
|
for (List<Object> list : read) {
|
||||||
|
Console.log(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user