|
|
@@ -180,7 +180,7 @@ public class ShowFileServiceImpl implements IShowFileService {
|
|
|
ExcelUtil<ShowYdts> bdUtil = new ExcelUtil<>(ShowYdts.class);
|
|
|
List<ShowYdts> bdList;
|
|
|
try {
|
|
|
- bdList = bdUtil.importExcel(sheetName, wb);
|
|
|
+ bdList = bdUtil.importExcel(sheetName, wb, 1, 3);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return AjaxResult.error("文件读取失败");
|
|
|
@@ -194,7 +194,7 @@ public class ShowFileServiceImpl implements IShowFileService {
|
|
|
ExcelUtil<ShowGsd> dlUtil = new ExcelUtil<>(ShowGsd.class);
|
|
|
List<ShowGsd> dlList;
|
|
|
try {
|
|
|
- dlList = dlUtil.importExcel(sheetName, wb);
|
|
|
+ dlList = dlUtil.importExcel(sheetName, wb, 2, 4);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return AjaxResult.error("文件读取失败");
|
|
|
@@ -208,7 +208,7 @@ public class ShowFileServiceImpl implements IShowFileService {
|
|
|
ExcelUtil<ShowGsy> syUtil = new ExcelUtil<>(ShowGsy.class);
|
|
|
List<ShowGsy> syList;
|
|
|
try {
|
|
|
- syList = syUtil.importExcel(sheetName, wb);
|
|
|
+ syList = syUtil.importExcel(sheetName, wb, 1, 3);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return AjaxResult.error("文件读取失败");
|
|
|
@@ -259,7 +259,7 @@ public class ShowFileServiceImpl implements IShowFileService {
|
|
|
break;
|
|
|
case DL:
|
|
|
try {
|
|
|
- bdList = bdUtil.importExcel(sheetName, wb, 2);
|
|
|
+ bdList = bdUtil.importExcel(sheetName, wb, 1, 3);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return AjaxResult.error("文件读取失败");
|