|
@@ -23,6 +23,7 @@ import com.qmth.teachcloud.report.business.entity.*;
|
|
|
import com.qmth.teachcloud.report.business.enums.NumberTypeEnum;
|
|
|
import com.qmth.teachcloud.report.business.service.*;
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -722,7 +723,7 @@ public class AnalyzeDataGetAndEditServiceImpl implements AnalyzeDataGetAndEditSe
|
|
|
// 构建考生作答明细表(t_b_answer)正常考生才记录
|
|
|
// 客观题(选择)
|
|
|
if (status == 1) {
|
|
|
- if (!objectiveScoreDetailList.isEmpty()){
|
|
|
+ if (CollectionUtils.isNotEmpty(objectiveScoreDetailList)){
|
|
|
for (AnswerInfo objective : objectiveScoreDetailList) {
|
|
|
Long answerId = SystemConstant.getDbUuid();
|
|
|
TBAnswer tbAnswer = new TBAnswer();
|
|
@@ -738,7 +739,7 @@ public class AnalyzeDataGetAndEditServiceImpl implements AnalyzeDataGetAndEditSe
|
|
|
tbAnswerList.add(tbAnswer);
|
|
|
}
|
|
|
}
|
|
|
- if (!subjectiveScoreDetailList.isEmpty()){
|
|
|
+ if (CollectionUtils.isNotEmpty(subjectiveScoreDetailList)){
|
|
|
// 主观题
|
|
|
for (AnswerInfo subjective : subjectiveScoreDetailList) {
|
|
|
Long answerId = SystemConstant.getDbUuid();
|