wangwei 7 лет назад
Родитель
Сommit
7dd6e85ff1

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

@@ -171,6 +171,7 @@ public class ExamStudentImportServiceImpl implements ExamStudentImportService {
 
 		ExamStudentInfo info = new ExamStudentInfo();
 		info.setCourseId(Long.parseLong(examStudent.getCourseId()));
+		info.setCourseName("fuck2");
 		info.setExamId(examStudent.getExamId());
 		info.setIdentityNumber(examStudent.getIdentityNumber());
 		info.setPaperType(examStudent.getPaperType());

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

@@ -900,7 +900,7 @@ public class ExamStudentServiceImpl implements ExamStudentService {
 	public ExamStudentInfo saveExamStudent(ExamStudentInfo examStudentInfo) {
 		String paperType = examStudentInfo.getPaperType();
 		if (StringUtils.isBlank(paperType)) {
-			paperType = "A";
+			paperType = "X";
 		} else if (!paperType.matches("[A-Z]")) {
 			throw new StatusException("E-100020", "paperType must be one of A-Z");
 		}