|
@@ -1,5 +1,6 @@
|
|
|
package com.yaoxiang.diagnosis.entity;
|
|
|
|
|
|
+import com.yaoxiang.diagnosis.config.Constants;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import javax.persistence.*;
|
|
@@ -54,10 +55,18 @@ public class SpecialKnowledge {
|
|
|
|
|
|
@Transient
|
|
|
@ApiModelProperty("掌握率")
|
|
|
- private Double master;
|
|
|
+ private Double master = 100.0;
|
|
|
@Transient
|
|
|
@ApiModelProperty("掌握情况")
|
|
|
- private Double masterStatus;
|
|
|
+ private String masterStatus = Constants.SPECIAL_KNOWLEDGE_MASTER;
|
|
|
+
|
|
|
+ @Transient
|
|
|
+ @ApiModelProperty("该知识点拥有的题目数量")
|
|
|
+ private Integer questionNum;
|
|
|
+
|
|
|
+ @Transient
|
|
|
+ @ApiModelProperty("该知识点答对的数量")
|
|
|
+ private Integer collectNum;
|
|
|
|
|
|
@Transient
|
|
|
private SpecialKnowledge parent;
|
|
@@ -161,14 +170,30 @@ public class SpecialKnowledge {
|
|
|
this.master = master;
|
|
|
}
|
|
|
|
|
|
- public Double getMasterStatus() {
|
|
|
+ public String getMasterStatus() {
|
|
|
return masterStatus;
|
|
|
}
|
|
|
|
|
|
- public void setMasterStatus(Double masterStatus) {
|
|
|
+ public void setMasterStatus(String masterStatus) {
|
|
|
this.masterStatus = masterStatus;
|
|
|
}
|
|
|
|
|
|
+ public Integer getQuestionNum() {
|
|
|
+ return questionNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setQuestionNum(Integer questionNum) {
|
|
|
+ this.questionNum = questionNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getCollectNum() {
|
|
|
+ return collectNum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCollectNum(Integer collectNum) {
|
|
|
+ this.collectNum = collectNum;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
return "SpecialKnowledge{" +
|