|
@@ -16,8 +16,8 @@ import org.apache.poi.ss.util.CellRangeAddress;
|
|
|
|
|
|
public class ExcelRelationUtil {
|
|
|
|
|
|
- public static void ReadRel(String filepath, Map<String, Map<String, Integer>> relDic) throws Exception {
|
|
|
- Workbook workbook = WorkbookFactory.create(new File(filepath));
|
|
|
+ public static void ReadRel(String fileName, Map<String, Map<String, Integer>> relDic) throws Exception {
|
|
|
+ Workbook workbook = WorkbookFactory.create(FileUtil.file(fileName));
|
|
|
Sheet wSheet1 = workbook.getSheetAt(0);
|
|
|
List<CellRangeAddress> rangeList = new ArrayList<CellRangeAddress>();
|
|
|
for (int i = 0; i < wSheet1.getNumMergedRegions(); i++) {
|