|
@@ -134,11 +134,11 @@ public class ScanStudentController extends BaseController {
|
|
if(markStudent != null ){
|
|
if(markStudent != null ){
|
|
throw new ParameterException("考生已存在");
|
|
throw new ParameterException("考生已存在");
|
|
}
|
|
}
|
|
- BasicExamStudent basicExamStudent = basicExamStudentService.findByExamIdAndCoursePaperIdAndStudentCode(examId,coursePaperId,studentCode);
|
|
|
|
|
|
+ MarkPaper markPaper = markPaperService.getByExamIdAndCoursePaperId(examId, coursePaperId);
|
|
|
|
+ BasicExamStudent basicExamStudent = basicExamStudentService.findByExamIdAndCourseIdAndStudentCode(examId,markPaper.getCourseId(),studentCode);
|
|
if(basicExamStudent != null ){
|
|
if(basicExamStudent != null ){
|
|
throw new ParameterException("基础考生已存在");
|
|
throw new ParameterException("基础考生已存在");
|
|
}
|
|
}
|
|
- MarkPaper markPaper = markPaperService.getByExamIdAndCoursePaperId(examId, coursePaperId);
|
|
|
|
BasicExam basicExam = basicExamService.getById(examId);
|
|
BasicExam basicExam = basicExamService.getById(examId);
|
|
basicExamStudent = new BasicExamStudent();
|
|
basicExamStudent = new BasicExamStudent();
|
|
basicExamStudent.setId(SystemConstant.getDbUuid());
|
|
basicExamStudent.setId(SystemConstant.getDbUuid());
|
|
@@ -148,7 +148,7 @@ public class ScanStudentController extends BaseController {
|
|
basicExamStudent.setCourseId(markPaper.getCourseId());
|
|
basicExamStudent.setCourseId(markPaper.getCourseId());
|
|
basicExamStudent.setCourseCode(markPaper.getCourseCode());
|
|
basicExamStudent.setCourseCode(markPaper.getCourseCode());
|
|
basicExamStudent.setCourseName(markPaper.getCourseName());
|
|
basicExamStudent.setCourseName(markPaper.getCourseName());
|
|
- basicExamStudent.setCoursePaperId(coursePaperId);
|
|
|
|
|
|
+// basicExamStudent.setCoursePaperId(coursePaperId);
|
|
basicExamStudent.setPaperNumber(markPaper.getPaperNumber());
|
|
basicExamStudent.setPaperNumber(markPaper.getPaperNumber());
|
|
basicExamStudent.setPaperType(paperType);
|
|
basicExamStudent.setPaperType(paperType);
|
|
basicExamStudent.setStudentCode(studentCode);
|
|
basicExamStudent.setStudentCode(studentCode);
|