|
@@ -38,8 +38,8 @@ public class ReadFileNameTest {
|
|
|
*/
|
|
|
@Test
|
|
|
public void test() {
|
|
|
- String folderPath = "H:/广东省"; // 替换为你的文件夹路径
|
|
|
- String excelFilePath = "H:/vip_exam_video.xlsx"; // 替换为你的Excel文件路径
|
|
|
+ String folderPath = "C:/江苏省"; // 替换为你的文件夹路径
|
|
|
+ String excelFilePath = "D:/vip_exam_video.xlsx"; // 替换为你的Excel文件路径
|
|
|
|
|
|
try {
|
|
|
Workbook workbook = new XSSFWorkbook();
|
|
@@ -88,7 +88,7 @@ public class ReadFileNameTest {
|
|
|
|
|
|
private void traverseFolders(File folder, Sheet sheet, int rowIndex) {
|
|
|
String province = folder.getName();
|
|
|
- String provinceId = "44";
|
|
|
+ String provinceId = "32";
|
|
|
String city = null;
|
|
|
String cityId = null;
|
|
|
String county = null;
|