WANG 5 年之前
父節點
當前提交
cb18f6a075

+ 9 - 1
examcloud-core-examwork-service/src/main/java/cn/com/qmth/examcloud/core/examwork/service/impl/ExamStudentServiceImpl.java

@@ -247,7 +247,15 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 
 		if (StringUtils.isNotBlank(studentCode)) {
 			List<String> studentCodeList = studentInfo.getStudentCodeList();
-			if (!studentCodeList.contains(studentCode)) {
+			boolean containIgnoreCase = false;
+			for (String cur : studentCodeList) {
+				if (cur.equalsIgnoreCase(studentCode)) {
+					containIgnoreCase = true;
+					studentCode = cur;
+					break;
+				}
+			}
+			if (!containIgnoreCase) {
 				throw new StatusException("100063", "学号未绑定到身份证");
 			}
 		} else {