|
@@ -1,5 +1,6 @@
|
|
package com.qxgmat.data.dao.entity;
|
|
package com.qxgmat.data.dao.entity;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import javax.persistence.*;
|
|
import javax.persistence.*;
|
|
@@ -12,10 +13,10 @@ public class Question implements Serializable {
|
|
private Integer id;
|
|
private Integer id;
|
|
|
|
|
|
|
|
|
|
- * 模块:examination, exercise,sentence
|
|
+ * 关键词,逗号分隔
|
|
*/
|
|
*/
|
|
- @Column(name = "`module`")
|
|
+ @Column(name = "`keyword`")
|
|
- private Integer module;
|
|
+ private String[] keyword;
|
|
|
|
|
|
|
|
|
|
* 题型
|
|
* 题型
|
|
@@ -35,14 +36,20 @@ public class Question implements Serializable {
|
|
@Column(name = "`difficult`")
|
|
@Column(name = "`difficult`")
|
|
private String difficult;
|
|
private String difficult;
|
|
|
|
|
|
|
|
+
|
|
|
|
+ * 系统答案:json
|
|
|
|
+ */
|
|
|
|
+ @Column(name = "`answer`")
|
|
|
|
+ private JSONObject answer;
|
|
|
|
+
|
|
@Column(name = "`question_time`")
|
|
@Column(name = "`question_time`")
|
|
private Date questionTime;
|
|
private Date questionTime;
|
|
|
|
|
|
@Column(name = "`qx_time`")
|
|
@Column(name = "`qx_time`")
|
|
private Date qxTime;
|
|
private Date qxTime;
|
|
|
|
|
|
- @Column(name = "`offical_time`")
|
|
+ @Column(name = "`official_time`")
|
|
- private Date officalTime;
|
|
+ private Date officialTime;
|
|
|
|
|
|
@Column(name = "`association_time`")
|
|
@Column(name = "`association_time`")
|
|
private Date associationTime;
|
|
private Date associationTime;
|
|
@@ -65,11 +72,23 @@ public class Question implements Serializable {
|
|
@Column(name = "`total_correct`")
|
|
@Column(name = "`total_correct`")
|
|
private Integer totalCorrect;
|
|
private Integer totalCorrect;
|
|
|
|
|
|
|
|
+ @Column(name = "`create_time`")
|
|
|
|
+ private Date createTime;
|
|
|
|
+
|
|
|
|
+ @Column(name = "`update_time`")
|
|
|
|
+ private Date updateTime;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * 样式:json
|
|
|
|
+ */
|
|
|
|
+ @Column(name = "`style`")
|
|
|
|
+ private String style;
|
|
|
|
+
|
|
@Column(name = "`qx_content`")
|
|
@Column(name = "`qx_content`")
|
|
private String qxContent;
|
|
private String qxContent;
|
|
|
|
|
|
- @Column(name = "`offical_content`")
|
|
+ @Column(name = "`official_content`")
|
|
- private String officalContent;
|
|
+ private String officialContent;
|
|
|
|
|
|
@Column(name = "`association_content`")
|
|
@Column(name = "`association_content`")
|
|
private String associationContent;
|
|
private String associationContent;
|
|
@@ -91,21 +110,21 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * 获取模块:examination, exercise,sentence
|
|
+ * 获取关键词,逗号分隔
|
|
*
|
|
*
|
|
- * @return module - 模块:examination, exercise,sentence
|
|
+ * @return keyword - 关键词,逗号分隔
|
|
*/
|
|
*/
|
|
- public Integer getModule() {
|
|
+ public String[] getKeyword() {
|
|
- return module;
|
|
+ return keyword;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * 设置模块:examination, exercise,sentence
|
|
+ * 设置关键词,逗号分隔
|
|
*
|
|
*
|
|
- * @param module 模块:examination, exercise,sentence
|
|
+ * @param keyword 关键词,逗号分隔
|
|
*/
|
|
*/
|
|
- public void setModule(Integer module) {
|
|
+ public void setKeyword(String[] keyword) {
|
|
- this.module = module;
|
|
+ this.keyword = keyword;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -163,6 +182,24 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ * 获取系统答案:json
|
|
|
|
+ *
|
|
|
|
+ * @return answer - 系统答案:json
|
|
|
|
+ */
|
|
|
|
+ public JSONObject getAnswer() {
|
|
|
|
+ return answer;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * 设置系统答案:json
|
|
|
|
+ *
|
|
|
|
+ * @param answer 系统答案:json
|
|
|
|
+ */
|
|
|
|
+ public void setAnswer(JSONObject answer) {
|
|
|
|
+ this.answer = answer;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
* @return question_time
|
|
* @return question_time
|
|
*/
|
|
*/
|
|
public Date getQuestionTime() {
|
|
public Date getQuestionTime() {
|
|
@@ -191,17 +228,17 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * @return offical_time
|
|
+ * @return official_time
|
|
*/
|
|
*/
|
|
- public Date getOfficalTime() {
|
|
+ public Date getOfficialTime() {
|
|
- return officalTime;
|
|
+ return officialTime;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * @param officalTime
|
|
+ * @param officialTime
|
|
*/
|
|
*/
|
|
- public void setOfficalTime(Date officalTime) {
|
|
+ public void setOfficialTime(Date officialTime) {
|
|
- this.officalTime = officalTime;
|
|
+ this.officialTime = officialTime;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -273,6 +310,52 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ * @return create_time
|
|
|
|
+ */
|
|
|
|
+ public Date getCreateTime() {
|
|
|
|
+ return createTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * @param createTime
|
|
|
|
+ */
|
|
|
|
+ public void setCreateTime(Date createTime) {
|
|
|
|
+ this.createTime = createTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * @return update_time
|
|
|
|
+ */
|
|
|
|
+ public Date getUpdateTime() {
|
|
|
|
+ return updateTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * @param updateTime
|
|
|
|
+ */
|
|
|
|
+ public void setUpdateTime(Date updateTime) {
|
|
|
|
+ this.updateTime = updateTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * 获取样式:json
|
|
|
|
+ *
|
|
|
|
+ * @return style - 样式:json
|
|
|
|
+ */
|
|
|
|
+ public String getStyle() {
|
|
|
|
+ return style;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * 设置样式:json
|
|
|
|
+ *
|
|
|
|
+ * @param style 样式:json
|
|
|
|
+ */
|
|
|
|
+ public void setStyle(String style) {
|
|
|
|
+ this.style = style;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
* @return qx_content
|
|
* @return qx_content
|
|
*/
|
|
*/
|
|
public String getQxContent() {
|
|
public String getQxContent() {
|
|
@@ -287,17 +370,17 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * @return offical_content
|
|
+ * @return official_content
|
|
*/
|
|
*/
|
|
- public String getOfficalContent() {
|
|
+ public String getOfficialContent() {
|
|
- return officalContent;
|
|
+ return officialContent;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * @param officalContent
|
|
+ * @param officialContent
|
|
*/
|
|
*/
|
|
- public void setOfficalContent(String officalContent) {
|
|
+ public void setOfficialContent(String officialContent) {
|
|
- this.officalContent = officalContent;
|
|
+ this.officialContent = officialContent;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -321,19 +404,23 @@ public class Question implements Serializable {
|
|
sb.append(" [");
|
|
sb.append(" [");
|
|
sb.append("Hash = ").append(hashCode());
|
|
sb.append("Hash = ").append(hashCode());
|
|
sb.append(", id=").append(id);
|
|
sb.append(", id=").append(id);
|
|
- sb.append(", module=").append(module);
|
|
+ sb.append(", keyword=").append(keyword);
|
|
sb.append(", type=").append(type);
|
|
sb.append(", type=").append(type);
|
|
sb.append(", place=").append(place);
|
|
sb.append(", place=").append(place);
|
|
sb.append(", difficult=").append(difficult);
|
|
sb.append(", difficult=").append(difficult);
|
|
|
|
+ sb.append(", answer=").append(answer);
|
|
sb.append(", questionTime=").append(questionTime);
|
|
sb.append(", questionTime=").append(questionTime);
|
|
sb.append(", qxTime=").append(qxTime);
|
|
sb.append(", qxTime=").append(qxTime);
|
|
- sb.append(", officalTime=").append(officalTime);
|
|
+ sb.append(", officialTime=").append(officialTime);
|
|
sb.append(", associationTime=").append(associationTime);
|
|
sb.append(", associationTime=").append(associationTime);
|
|
sb.append(", totalTime=").append(totalTime);
|
|
sb.append(", totalTime=").append(totalTime);
|
|
sb.append(", totalNumber=").append(totalNumber);
|
|
sb.append(", totalNumber=").append(totalNumber);
|
|
sb.append(", totalCorrect=").append(totalCorrect);
|
|
sb.append(", totalCorrect=").append(totalCorrect);
|
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
|
+ sb.append(", updateTime=").append(updateTime);
|
|
|
|
+ sb.append(", style=").append(style);
|
|
sb.append(", qxContent=").append(qxContent);
|
|
sb.append(", qxContent=").append(qxContent);
|
|
- sb.append(", officalContent=").append(officalContent);
|
|
+ sb.append(", officialContent=").append(officialContent);
|
|
sb.append(", associationContent=").append(associationContent);
|
|
sb.append(", associationContent=").append(associationContent);
|
|
sb.append("]");
|
|
sb.append("]");
|
|
return sb.toString();
|
|
return sb.toString();
|
|
@@ -359,12 +446,12 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * 设置模块:examination, exercise,sentence
|
|
+ * 设置关键词,逗号分隔
|
|
*
|
|
*
|
|
- * @param module 模块:examination, exercise,sentence
|
|
+ * @param keyword 关键词,逗号分隔
|
|
*/
|
|
*/
|
|
- public Builder module(Integer module) {
|
|
+ public Builder keyword(String[] keyword) {
|
|
- obj.setModule(module);
|
|
+ obj.setKeyword(keyword);
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -399,6 +486,16 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ * 设置系统答案:json
|
|
|
|
+ *
|
|
|
|
+ * @param answer 系统答案:json
|
|
|
|
+ */
|
|
|
|
+ public Builder answer(JSONObject answer) {
|
|
|
|
+ obj.setAnswer(answer);
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
* @param questionTime
|
|
* @param questionTime
|
|
*/
|
|
*/
|
|
public Builder questionTime(Date questionTime) {
|
|
public Builder questionTime(Date questionTime) {
|
|
@@ -415,10 +512,10 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * @param officalTime
|
|
+ * @param officialTime
|
|
*/
|
|
*/
|
|
- public Builder officalTime(Date officalTime) {
|
|
+ public Builder officialTime(Date officialTime) {
|
|
- obj.setOfficalTime(officalTime);
|
|
+ obj.setOfficialTime(officialTime);
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -461,6 +558,32 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ * @param createTime
|
|
|
|
+ */
|
|
|
|
+ public Builder createTime(Date createTime) {
|
|
|
|
+ obj.setCreateTime(createTime);
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * @param updateTime
|
|
|
|
+ */
|
|
|
|
+ public Builder updateTime(Date updateTime) {
|
|
|
|
+ obj.setUpdateTime(updateTime);
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ * 设置样式:json
|
|
|
|
+ *
|
|
|
|
+ * @param style 样式:json
|
|
|
|
+ */
|
|
|
|
+ public Builder style(String style) {
|
|
|
|
+ obj.setStyle(style);
|
|
|
|
+ return this;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
* @param qxContent
|
|
* @param qxContent
|
|
*/
|
|
*/
|
|
public Builder qxContent(String qxContent) {
|
|
public Builder qxContent(String qxContent) {
|
|
@@ -469,10 +592,10 @@ public class Question implements Serializable {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- * @param officalContent
|
|
+ * @param officialContent
|
|
*/
|
|
*/
|
|
- public Builder officalContent(String officalContent) {
|
|
+ public Builder officialContent(String officialContent) {
|
|
- obj.setOfficalContent(officalContent);
|
|
+ obj.setOfficialContent(officialContent);
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|