From 868390b85e01b7d094caf45fb21b2e793f9aa270 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Tue, 10 Sep 2024 15:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=80=83=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=88=97=E5=90=8D=E6=88=AA=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peanut/modules/common/controller/ClassExamController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/peanut/modules/common/controller/ClassExamController.java b/src/main/java/com/peanut/modules/common/controller/ClassExamController.java index b2e03539..08bb0e3b 100644 --- a/src/main/java/com/peanut/modules/common/controller/ClassExamController.java +++ b/src/main/java/com/peanut/modules/common/controller/ClassExamController.java @@ -50,7 +50,7 @@ public class ClassExamController { while (it.hasNext()) { Map.Entry entry = it.next(); String pos = entry.getKey(); - String rowNo = pos.substring(1); + String rowNo = pos.replaceAll("[a-zA-Z]", ""); count = Integer.parseInt(rowNo); // System.out.println(pos + ";" + entry.getValue()); }