|
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.questions.base.Constants;
|
|
import org.springframework.data.annotation.Transient;
|
|
import org.springframework.data.annotation.Transient;
|
|
|
|
|
|
import cn.com.qmth.examcloud.core.questions.base.question.enums.QuesStructType;
|
|
import cn.com.qmth.examcloud.core.questions.base.question.enums.QuesStructType;
|
|
@@ -386,6 +387,9 @@ public class Question extends MongoBaseEntity {
|
|
}
|
|
}
|
|
|
|
|
|
public Double getDifficultyDegree() {
|
|
public Double getDifficultyDegree() {
|
|
|
|
+ if(difficultyDegree == null){
|
|
|
|
+ difficultyDegree = Constants.DEFAULT_DIFFICULTY_DEGREE;
|
|
|
|
+ }
|
|
return difficultyDegree;
|
|
return difficultyDegree;
|
|
}
|
|
}
|
|
|
|
|