xiatian 2 gadi atpakaļ
vecāks
revīzija
9264658b4e

+ 2 - 1
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/ExamRecordForMarkingCloudServiceProvider.java

@@ -10,6 +10,7 @@ import java.util.stream.Collectors;
 
 import javax.persistence.criteria.Predicate;
 
+import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.domain.Page;
@@ -233,7 +234,7 @@ public class ExamRecordForMarkingCloudServiceProvider extends ControllerSupport
 			List<ExamRecordForMarkingEntity> examRecordForMarkingList = examRecordForMarkingService
 					.queryValidExamRecordInfoByStuIds(examId, courseId, stuIdList, req.getBatchNum());
 
-			if (null == examRecordForMarkingList) {
+			if (CollectionUtils.isEmpty(examRecordForMarkingList)) {
 				resp.setExamRecordForMarkingBeanList(null);
 				return resp;
 			}