|
@@ -1,118 +1,91 @@
|
|
|
-package com.qmth.cqb.paper.dto;
|
|
|
-
|
|
|
-import java.io.Serializable;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
-
|
|
|
-import com.qmth.cqb.question.model.Question;
|
|
|
-
|
|
|
-import cn.com.qmth.examcloud.common.dto.question.enums.QuesStructType;
|
|
|
-
|
|
|
-/**
|
|
|
- * 试卷小题导出dto Created by songyue on 17/3/15.
|
|
|
- */
|
|
|
-public class PaperDetailUnitExp implements Serializable {
|
|
|
-
|
|
|
- private static final long serialVersionUID = 6507445685386413261L;
|
|
|
-
|
|
|
- private String id;
|
|
|
-
|
|
|
- private Integer number;// 小题序号
|
|
|
-
|
|
|
- private Double score;// 小题分数
|
|
|
-
|
|
|
- private QuesStructType questionType;// 小题类型
|
|
|
-
|
|
|
- private Question question;// 关联试题
|
|
|
-
|
|
|
- private String quesId;// 关联试题Id
|
|
|
-
|
|
|
- private String subScores;// 对应套题的情况下,各子题的分数分布
|
|
|
-
|
|
|
- private List<Double> subScoreList;
|
|
|
-
|
|
|
- public static long getSerialVersionUID() {
|
|
|
- return serialVersionUID;
|
|
|
- }
|
|
|
-
|
|
|
- public String getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(String id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getNumber() {
|
|
|
- return number;
|
|
|
- }
|
|
|
-
|
|
|
- public void setNumber(Integer number) {
|
|
|
- this.number = number;
|
|
|
- }
|
|
|
-
|
|
|
- public Double getScore() {
|
|
|
- return score;
|
|
|
- }
|
|
|
-
|
|
|
- public void setScore(Double score) {
|
|
|
- this.score = score;
|
|
|
- }
|
|
|
-
|
|
|
- public QuesStructType getQuestionType() {
|
|
|
- return questionType;
|
|
|
- }
|
|
|
-
|
|
|
- public void setQuestionType(QuesStructType questionType) {
|
|
|
- this.questionType = questionType;
|
|
|
- }
|
|
|
-
|
|
|
- public Question getQuestion() {
|
|
|
- return question;
|
|
|
- }
|
|
|
-
|
|
|
- public void setQuestion(Question question) {
|
|
|
- this.question = question;
|
|
|
- }
|
|
|
-
|
|
|
- public String getQuesId() {
|
|
|
- return quesId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setQuesId(String quesId) {
|
|
|
- this.quesId = quesId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getSubScores() {
|
|
|
- return subScores;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSubScores(String subScores) {
|
|
|
- this.subScores = subScores;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSubScoreList(List<Double> subScoreList) {
|
|
|
- if (getSubScoreList() != null && getSubScoreList().size() > 0) {
|
|
|
- this.subScoreList = getSubScoreList();
|
|
|
- } else {
|
|
|
- this.subScoreList = null;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public List<Double> getSubScoreList() {
|
|
|
- List<Double> list = new ArrayList<>();
|
|
|
- String[] values = StringUtils.split(StringUtils.trimToEmpty(this.subScores), ",");
|
|
|
- for (String value : values) {
|
|
|
- try {
|
|
|
- list.add(Double.valueOf(value));
|
|
|
- } catch (Exception e) {
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- return list;
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
+package com.qmth.cqb.paper.dto;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import com.qmth.cqb.question.model.Question;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.common.dto.question.enums.QuesStructType;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 试卷小题导出dto Created by songyue on 17/3/15.
|
|
|
+ */
|
|
|
+public class PaperDetailUnitExp implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 6507445685386413261L;
|
|
|
+
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ private Integer number;// 小题序号
|
|
|
+
|
|
|
+ private Double score;// 小题分数
|
|
|
+
|
|
|
+ private QuesStructType questionType;// 小题类型
|
|
|
+
|
|
|
+ private Question question;// 关联试题
|
|
|
+
|
|
|
+ private String quesId;// 关联试题Id
|
|
|
+
|
|
|
+ private List<Double> subScoreList;// 对应套题的情况下,各子题的分数分布
|
|
|
+
|
|
|
+ public static long getSerialVersionUID() {
|
|
|
+ return serialVersionUID;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getNumber() {
|
|
|
+ return number;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNumber(Integer number) {
|
|
|
+ this.number = number;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getScore() {
|
|
|
+ return score;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setScore(Double score) {
|
|
|
+ this.score = score;
|
|
|
+ }
|
|
|
+
|
|
|
+ public QuesStructType getQuestionType() {
|
|
|
+ return questionType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setQuestionType(QuesStructType questionType) {
|
|
|
+ this.questionType = questionType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Question getQuestion() {
|
|
|
+ return question;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setQuestion(Question question) {
|
|
|
+ this.question = question;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getQuesId() {
|
|
|
+ return quesId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setQuesId(String quesId) {
|
|
|
+ this.quesId = quesId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<Double> getSubScoreList() {
|
|
|
+ return subScoreList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSubScoreList(List<Double> subScoreList) {
|
|
|
+ this.subScoreList = subScoreList;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|