|
@@ -7,69 +7,80 @@
|
|
|
|
|
|
package cn.com.qmth.examcloud.core.print.entity;
|
|
|
|
|
|
+import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
+import javax.persistence.Index;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
/**
|
|
|
- * 客观题数据--用于Excel导出
|
|
|
+ * 客观题信息(用于Excel导出)
|
|
|
*/
|
|
|
@Entity
|
|
|
-@Table(name = "ec_prt_objective_question_structure")
|
|
|
+@Table(name = "ec_prt_objective_question_structure", indexes = {
|
|
|
+ @Index(name = "INDEX_PRT_OBJECTIVE_QUESTION_01", columnList = "examId")})
|
|
|
public class ObjectiveQuestionStructure extends IdEntity {
|
|
|
/**
|
|
|
* 考试ID
|
|
|
*/
|
|
|
private Long examId;
|
|
|
/**
|
|
|
- * 试卷id
|
|
|
+ * 试卷ID
|
|
|
*/
|
|
|
+ @Column(length = 50)
|
|
|
private String paperId;
|
|
|
/**
|
|
|
* 课程代码
|
|
|
*/
|
|
|
//@ExcelProperty(name = "课程代码", index = 0)
|
|
|
- private String courseNo;
|
|
|
+ @Column(length = 50)
|
|
|
+ private String courseCode;
|
|
|
/**
|
|
|
* 课程名称
|
|
|
*/
|
|
|
//@ExcelProperty(name = "课程名称", index = 1)
|
|
|
+ @Column(length = 50)
|
|
|
private String courseName;
|
|
|
/**
|
|
|
* 试卷名称
|
|
|
*/
|
|
|
//@ExcelProperty(name = "试卷名称", index = 2)
|
|
|
+ @Column(length = 50)
|
|
|
private String paperName;
|
|
|
/**
|
|
|
- * 试卷类型
|
|
|
+ * 试卷类型(如:A、B)
|
|
|
*/
|
|
|
//@ExcelProperty(name = "试卷类型", index = 3)
|
|
|
+ @Column(length = 50)
|
|
|
private String paperType;
|
|
|
- /**
|
|
|
- * 大题号
|
|
|
- */
|
|
|
- //@ExcelProperty(name = "大题号", index = 4)
|
|
|
- private Integer bigQuestionNo;
|
|
|
- /**
|
|
|
- * 小题号
|
|
|
- */
|
|
|
- //@ExcelProperty(name = "小题号", index = 5)
|
|
|
- private Integer smallQuestionNo;
|
|
|
/**
|
|
|
* 题目类型
|
|
|
- * See QuesStructType.java
|
|
|
+ *
|
|
|
+ * @See QuesStructType.java
|
|
|
*/
|
|
|
//@ExcelProperty(name = "题目类型", index = 6)
|
|
|
+ @Column(length = 50)
|
|
|
private String questionType;
|
|
|
/**
|
|
|
* 标准答案
|
|
|
*/
|
|
|
//@ExcelProperty(name = "标准答案", index = 7)
|
|
|
+ @Column(length = 50)
|
|
|
private String answer;
|
|
|
+ /**
|
|
|
+ * 大题号
|
|
|
+ */
|
|
|
+ //@ExcelProperty(name = "大题号", index = 4)
|
|
|
+ private Integer sectionNum;
|
|
|
+ /**
|
|
|
+ * 小题号
|
|
|
+ */
|
|
|
+ //@ExcelProperty(name = "小题号", index = 5)
|
|
|
+ private Integer unitNum;
|
|
|
/**
|
|
|
* 小题分数
|
|
|
*/
|
|
|
//@ExcelProperty(name = "小题分数", index = 8)
|
|
|
- private Double smallQuestionScore;
|
|
|
+ private Double unitScore;
|
|
|
|
|
|
public Long getExamId() {
|
|
|
return examId;
|
|
@@ -87,12 +98,12 @@ public class ObjectiveQuestionStructure extends IdEntity {
|
|
|
this.paperId = paperId;
|
|
|
}
|
|
|
|
|
|
- public String getCourseNo() {
|
|
|
- return courseNo;
|
|
|
+ public String getCourseCode() {
|
|
|
+ return courseCode;
|
|
|
}
|
|
|
|
|
|
- public void setCourseNo(String courseNo) {
|
|
|
- this.courseNo = courseNo;
|
|
|
+ public void setCourseCode(String courseCode) {
|
|
|
+ this.courseCode = courseCode;
|
|
|
}
|
|
|
|
|
|
public String getCourseName() {
|
|
@@ -119,22 +130,6 @@ public class ObjectiveQuestionStructure extends IdEntity {
|
|
|
this.paperType = paperType;
|
|
|
}
|
|
|
|
|
|
- public Integer getBigQuestionNo() {
|
|
|
- return bigQuestionNo;
|
|
|
- }
|
|
|
-
|
|
|
- public void setBigQuestionNo(Integer bigQuestionNo) {
|
|
|
- this.bigQuestionNo = bigQuestionNo;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getSmallQuestionNo() {
|
|
|
- return smallQuestionNo;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSmallQuestionNo(Integer smallQuestionNo) {
|
|
|
- this.smallQuestionNo = smallQuestionNo;
|
|
|
- }
|
|
|
-
|
|
|
public String getQuestionType() {
|
|
|
return questionType;
|
|
|
}
|
|
@@ -151,12 +146,28 @@ public class ObjectiveQuestionStructure extends IdEntity {
|
|
|
this.answer = answer;
|
|
|
}
|
|
|
|
|
|
- public Double getSmallQuestionScore() {
|
|
|
- return smallQuestionScore;
|
|
|
+ public Integer getSectionNum() {
|
|
|
+ return sectionNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSectionNum(Integer sectionNum) {
|
|
|
+ this.sectionNum = sectionNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getUnitNum() {
|
|
|
+ return unitNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUnitNum(Integer unitNum) {
|
|
|
+ this.unitNum = unitNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getUnitScore() {
|
|
|
+ return unitScore;
|
|
|
}
|
|
|
|
|
|
- public void setSmallQuestionScore(Double smallQuestionScore) {
|
|
|
- this.smallQuestionScore = smallQuestionScore;
|
|
|
+ public void setUnitScore(Double unitScore) {
|
|
|
+ this.unitScore = unitScore;
|
|
|
}
|
|
|
|
|
|
}
|