|
@@ -28,11 +28,7 @@ import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.Set;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 获取考生作答明细
|
|
|
|
- *
|
|
|
|
- * @author WANGWEI
|
|
|
|
- * @date 2019年7月11日
|
|
|
|
- * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
|
|
|
|
+ * 导出 - 考生得分明细
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
public class GetStduentAnswerDetailService {
|
|
public class GetStduentAnswerDetailService {
|
|
@@ -137,18 +133,15 @@ public class GetStduentAnswerDetailService {
|
|
}
|
|
}
|
|
|
|
|
|
if (null == questionType) {
|
|
if (null == questionType) {
|
|
- throw new RuntimeException(
|
|
|
|
- "questionType is null. examRecordDataId=" + cur + "; order=" + order);
|
|
|
|
|
|
+ throw new RuntimeException("questionType is null. examRecordDataId=" + cur + "; order=" + order);
|
|
}
|
|
}
|
|
|
|
|
|
if (null == studentScore) {
|
|
if (null == studentScore) {
|
|
// 无作答时,0分
|
|
// 无作答时,0分
|
|
if (StringUtils.isBlank(studentAnswer)) {
|
|
if (StringUtils.isBlank(studentAnswer)) {
|
|
studentScore = 0D;
|
|
studentScore = 0D;
|
|
- }
|
|
|
|
- // 计算分数
|
|
|
|
- else {
|
|
|
|
-
|
|
|
|
|
|
+ } else {
|
|
|
|
+ // 计算分数
|
|
if (null == questionScore) {
|
|
if (null == questionScore) {
|
|
throw new RuntimeException("questionScore is null. examRecordDataId="
|
|
throw new RuntimeException("questionScore is null. examRecordDataId="
|
|
+ cur + ";courseCode=" + courseCode + ";order=" + order);
|
|
+ cur + ";courseCode=" + courseCode + ";order=" + order);
|
|
@@ -172,7 +165,6 @@ public class GetStduentAnswerDetailService {
|
|
studentScore = 0D;
|
|
studentScore = 0D;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
// 主观题
|
|
// 主观题
|
|
else if (questionType.equals("FILL_UP") || questionType.equals("ESSAY")) {
|
|
else if (questionType.equals("FILL_UP") || questionType.equals("ESSAY")) {
|
|
@@ -183,7 +175,6 @@ public class GetStduentAnswerDetailService {
|
|
+ questionType + "; examRecordDataId=" + cur + ";courseCode="
|
|
+ questionType + "; examRecordDataId=" + cur + ";courseCode="
|
|
+ courseCode + ";order=" + order);
|
|
+ courseCode + ";order=" + order);
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -235,8 +226,7 @@ public class GetStduentAnswerDetailService {
|
|
String ids = StringUtils.join(examRecordDataIdSet, ",");
|
|
String ids = StringUtils.join(examRecordDataIdSet, ",");
|
|
sql4QueryExamStudentInfo = sql4QueryExamStudentInfo.replace("$$", ids);
|
|
sql4QueryExamStudentInfo = sql4QueryExamStudentInfo.replace("$$", ids);
|
|
|
|
|
|
- List<Map<String, Object>> studentInfoList = jdbcTemplate
|
|
|
|
- .queryForList(sql4QueryExamStudentInfo);
|
|
|
|
|
|
+ List<Map<String, Object>> studentInfoList = jdbcTemplate.queryForList(sql4QueryExamStudentInfo);
|
|
|
|
|
|
for (Map<String, Object> curStudent : studentInfoList) {
|
|
for (Map<String, Object> curStudent : studentInfoList) {
|
|
System.out.println(JsonUtil.toJson(curStudent));
|
|
System.out.println(JsonUtil.toJson(curStudent));
|