|
@@ -5,6 +5,7 @@ import java.util.ArrayList;
|
|
import java.util.LinkedList;
|
|
import java.util.LinkedList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
import org.apache.commons.lang.math.RandomUtils;
|
|
import org.apache.commons.lang.math.RandomUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
@@ -195,7 +196,7 @@ public class MarkStudent implements Serializable {
|
|
public MarkStudent(Long id, Long examId, Long basicStudentId, Long courseId,
|
|
public MarkStudent(Long id, Long examId, Long basicStudentId, Long courseId,
|
|
String paperNumber, String coursePaperId, String paperType,
|
|
String paperNumber, String coursePaperId, String paperType,
|
|
String studentCode, String packageCode, String examPlace,
|
|
String studentCode, String packageCode, String examPlace,
|
|
- String examRoom, Long examStartTime, Long examEndTime, Long createId) {
|
|
|
|
|
|
+ String examRoom, Long examStartTime, Long examEndTime, Long createId) {
|
|
this.id = id;
|
|
this.id = id;
|
|
this.examId = examId;
|
|
this.examId = examId;
|
|
this.basicStudentId = basicStudentId;
|
|
this.basicStudentId = basicStudentId;
|
|
@@ -553,21 +554,33 @@ public class MarkStudent implements Serializable {
|
|
|
|
|
|
public List<String> getAnswerList() {
|
|
public List<String> getAnswerList() {
|
|
List<String> list = new ArrayList<>();
|
|
List<String> list = new ArrayList<>();
|
|
- if(StringUtils.isNotBlank(answers)){
|
|
|
|
- try {
|
|
|
|
- list = JSON.parseArray(answers, String.class);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- String[] values = StringUtils.split(StringUtils.trimToNull(answers), ANSWER_SPLIT);
|
|
|
|
- if (values != null && values.length > 0) {
|
|
|
|
- for (String answer : values) {
|
|
|
|
- list.add(StringUtils.trim(answer));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(answers)) {
|
|
|
|
+ try {
|
|
|
|
+ list = JSON.parseArray(answers, String.class);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ String[] values = StringUtils.split(StringUtils.trimToNull(answers), ANSWER_SPLIT);
|
|
|
|
+ if (values != null && values.length > 0) {
|
|
|
|
+ for (String answer : values) {
|
|
|
|
+ list.add(StringUtils.trim(answer));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public List<String> getAnswerScoreList() {
|
|
|
|
+ List<String> scoreList = new ArrayList<>();
|
|
|
|
+ List<String> answerList = getAnswerList();
|
|
|
|
+ if (StringUtils.isNotBlank(objectiveScoreList) && CollectionUtils.isNotEmpty(answerList)) {
|
|
|
|
+ String[] answerScores = objectiveScoreList.split(";");
|
|
|
|
+ for (String answerScore : answerScores) {
|
|
|
|
+ scoreList.add(answerScore.split(":")[1]);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return scoreList;
|
|
|
|
+ }
|
|
|
|
+
|
|
public List<String> getSheetPathList() {
|
|
public List<String> getSheetPathList() {
|
|
List<String> list = new ArrayList<String>();
|
|
List<String> list = new ArrayList<String>();
|
|
String trimSheetPath = StringUtils.trimToNull(sheetPath);
|
|
String trimSheetPath = StringUtils.trimToNull(sheetPath);
|
|
@@ -674,6 +687,7 @@ public class MarkStudent implements Serializable {
|
|
public void setMarkPaperStatus(String markPaperStatus) {
|
|
public void setMarkPaperStatus(String markPaperStatus) {
|
|
this.markPaperStatus = markPaperStatus;
|
|
this.markPaperStatus = markPaperStatus;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Boolean getInvalid() {
|
|
public Boolean getInvalid() {
|
|
return invalid;
|
|
return invalid;
|
|
}
|
|
}
|