|
@@ -5,6 +5,7 @@ import org.apache.commons.lang.StringUtils;
|
|
import cn.com.qmth.stmms.biz.exam.model.ExamQuestion;
|
|
import cn.com.qmth.stmms.biz.exam.model.ExamQuestion;
|
|
import cn.com.qmth.stmms.biz.exam.model.ExamSubject;
|
|
import cn.com.qmth.stmms.biz.exam.model.ExamSubject;
|
|
import cn.com.qmth.stmms.common.annotation.ExcelField;
|
|
import cn.com.qmth.stmms.common.annotation.ExcelField;
|
|
|
|
+import cn.com.qmth.stmms.common.enums.QuestionType;
|
|
|
|
|
|
public class ObjectiveQuestionDTO implements QuestionDTO {
|
|
public class ObjectiveQuestionDTO implements QuestionDTO {
|
|
|
|
|
|
@@ -34,8 +35,8 @@ public class ObjectiveQuestionDTO implements QuestionDTO {
|
|
@ExcelField(title = "小题满分", align = 2, sort = 80)
|
|
@ExcelField(title = "小题满分", align = 2, sort = 80)
|
|
private Double totalScore;
|
|
private Double totalScore;
|
|
|
|
|
|
- @ExcelField(title = "题型(1-单选,2-多选,3-判断)", align = 2, sort = 90)
|
|
|
|
- private Integer question;
|
|
|
|
|
|
+ @ExcelField(title = "题型(1-单选,2-多选,3-判断)", align = 2, sort = 90, type = 2)
|
|
|
|
+ private Integer type;
|
|
|
|
|
|
public ObjectiveQuestionDTO() {
|
|
public ObjectiveQuestionDTO() {
|
|
|
|
|
|
@@ -67,6 +68,7 @@ public class ObjectiveQuestionDTO implements QuestionDTO {
|
|
question.setAnswer(StringUtils.trimToNull(answer));
|
|
question.setAnswer(StringUtils.trimToNull(answer));
|
|
question.setTotalScore(totalScore);
|
|
question.setTotalScore(totalScore);
|
|
question.setIntervalScore(1d);
|
|
question.setIntervalScore(1d);
|
|
|
|
+ question.setType(QuestionType.findByValue(type));
|
|
return question;
|
|
return question;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -134,12 +136,12 @@ public class ObjectiveQuestionDTO implements QuestionDTO {
|
|
this.paperType = paperType;
|
|
this.paperType = paperType;
|
|
}
|
|
}
|
|
|
|
|
|
- public Integer getQuestion() {
|
|
|
|
- return question;
|
|
|
|
|
|
+ public Integer getType() {
|
|
|
|
+ return type;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setQuestion(Integer question) {
|
|
|
|
- this.question = question;
|
|
|
|
|
|
+ public void setType(Integer type) {
|
|
|
|
+ this.type = type;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|