mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-02 20:02:49 +08:00
fix code
This commit is contained in:
parent
b3a9146d6f
commit
7a34e0c0d3
@ -2,6 +2,7 @@ package cn.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.map.TableMap;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
||||
import org.apache.poi.hssf.usermodel.HSSFPicture;
|
||||
@ -86,7 +87,7 @@ public class ExcelPicUtil {
|
||||
* @return 图片映射,键格式:行_列,值:{@link PictureData}
|
||||
*/
|
||||
private static Map<String, PictureData> getPicMapXlsx(XSSFWorkbook workbook, int sheetIndex) {
|
||||
final Map<String, PictureData> sheetIndexPicMap = new HashMap<>();
|
||||
final Map<String, PictureData> sheetIndexPicMap = new TableMap<>();
|
||||
final XSSFSheet sheet = workbook.getSheetAt(sheetIndex);
|
||||
XSSFDrawing drawing;
|
||||
for (POIXMLDocumentPart dr : sheet.getRelations()) {
|
||||
|
Loading…
Reference in New Issue
Block a user