导入考题修改列名截取

This commit is contained in:
wuchunlei
2024-09-10 15:47:00 +08:00
parent 471fdcace6
commit 868390b85e

View File

@@ -50,7 +50,7 @@ public class ClassExamController {
while (it.hasNext()) { while (it.hasNext()) {
Map.Entry<String, String> entry = it.next(); Map.Entry<String, String> entry = it.next();
String pos = entry.getKey(); String pos = entry.getKey();
String rowNo = pos.substring(1); String rowNo = pos.replaceAll("[a-zA-Z]", "");
count = Integer.parseInt(rowNo); count = Integer.parseInt(rowNo);
// System.out.println(pos + ";" + entry.getValue()); // System.out.println(pos + ";" + entry.getValue());
} }