lideyin 5 éve
szülő
commit
13e7f45771

+ 3 - 0
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/ExamScoreDataCloudServiceProvider.java

@@ -310,6 +310,9 @@ public class ExamScoreDataCloudServiceProvider extends ControllerSupport impleme
         for(ExamRecordEntity examRecord:examRecordList){
         	ExamRecordDataEntity examRecordData = examRecordDataRepo.findByExamRecordId(examRecord.getId());
         	ExamScoreEntity examScore = examScoreRepo.findByExamRecordDataId(examRecordData.getId());
+        	if (examScore==null){
+				throw  new StatusException("100001","该考生未交卷");
+			}
         	
         	ScoreDataBean scoreDataBean = new ScoreDataBean();
         	scoreDataBean.setExamRecordDataId(examRecordData.getId());