|
|
|
@ -100,15 +100,16 @@ public class A14 {
|
|
|
|
|
System.out.println("正在查询县区:" + cityName + "\t" + areaName);
|
|
|
|
|
List<String> list = getXq(areaName);
|
|
|
|
|
Thread.sleep(1400);
|
|
|
|
|
System.out.println(list);
|
|
|
|
|
if (!list.isEmpty()) {
|
|
|
|
|
Cell cell2 = row.getCell(2);
|
|
|
|
|
if (cell2 == null) cell2 = row.createCell(2);
|
|
|
|
|
cell2.setCellValue(list.getFirst());
|
|
|
|
|
}
|
|
|
|
|
if (list.size() > 1) {
|
|
|
|
|
Cell cell3 = row.getCell(3);
|
|
|
|
|
if (cell3 == null) cell3 = row.createCell(3);
|
|
|
|
|
cell3.setCellValue(list.get(1));
|
|
|
|
|
cell3.setCellValue(list.getFirst());
|
|
|
|
|
}
|
|
|
|
|
if (list.size() > 1) {
|
|
|
|
|
Cell cell4 = row.getCell(4);
|
|
|
|
|
if (cell4 == null) cell4 = row.createCell(4);
|
|
|
|
|
cell4.setCellValue(list.get(1));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|