|
@@ -1364,14 +1364,14 @@ public class QuestionFlowService {
|
|
|
difficult.put("key", difficultKey);
|
|
|
difficult.put("userNumber", 1);
|
|
|
difficult.put("userCorrect", userQuestion.getIsCorrect());
|
|
|
- difficult.put("totalNumber", relation.getTotalNumber());
|
|
|
- difficult.put("totalCorrect", relation.getTotalCorrect());
|
|
|
+ difficult.put("totalNumber", relation.getTotalNumber() + 1);
|
|
|
+ difficult.put("totalCorrect", relation.getTotalCorrect() + userQuestion.getIsCorrect());
|
|
|
difficultMap.put(difficultKey, difficult);
|
|
|
}else{
|
|
|
difficult.put("userNumber", difficult.getInteger("userNumber") + 1);
|
|
|
difficult.put("userCorrect", difficult.getInteger("userCorrect") + userQuestion.getIsCorrect());
|
|
|
- difficult.put("totalNumber", difficult.getInteger("totalNumber") + relation.getTotalNumber());
|
|
|
- difficult.put("totalCorrect", difficult.getInteger("totalCorrect") + relation.getTotalCorrect());
|
|
|
+ difficult.put("totalNumber", difficult.getInteger("totalNumber") + relation.getTotalNumber() + 1);
|
|
|
+ difficult.put("totalCorrect", difficult.getInteger("totalCorrect") + relation.getTotalCorrect() + userQuestion.getIsCorrect());
|
|
|
}
|
|
|
}
|
|
|
detail.put("pace", pace);
|
|
@@ -1722,14 +1722,14 @@ public class QuestionFlowService {
|
|
|
difficult.put("key", difficultKey);
|
|
|
difficult.put("userNumber", 1);
|
|
|
difficult.put("userCorrect", userQuestion.getIsCorrect());
|
|
|
- difficult.put("totalNumber", relation.getTotalNumber());
|
|
|
- difficult.put("totalCorrect", relation.getTotalCorrect());
|
|
|
+ difficult.put("totalNumber", relation.getTotalNumber() + 1);
|
|
|
+ difficult.put("totalCorrect", relation.getTotalCorrect() + userQuestion.getIsCorrect());
|
|
|
difficultTypeMap.put(difficultKey, difficult);
|
|
|
}else{
|
|
|
difficult.put("userNumber", difficult.getInteger("userNumber") + 1);
|
|
|
difficult.put("userCorrect", difficult.getInteger("userCorrect") + userQuestion.getIsCorrect());
|
|
|
- difficult.put("totalNumber", difficult.getInteger("totalNumber") + relation.getTotalNumber());
|
|
|
- difficult.put("totalCorrect", difficult.getInteger("totalCorrect") + relation.getTotalCorrect());
|
|
|
+ difficult.put("totalNumber", difficult.getInteger("totalNumber") + relation.getTotalNumber() + 1);
|
|
|
+ difficult.put("totalCorrect", difficult.getInteger("totalCorrect") + relation.getTotalCorrect() + userQuestion.getIsCorrect());
|
|
|
}
|
|
|
difficult = difficultSubjectMap.getJSONObject(difficultKey);
|
|
|
if (difficult == null){
|
|
@@ -1737,14 +1737,14 @@ public class QuestionFlowService {
|
|
|
difficult.put("key", difficultKey);
|
|
|
difficult.put("userNumber", 1);
|
|
|
difficult.put("userCorrect", userQuestion.getIsCorrect());
|
|
|
- difficult.put("totalNumber", relation.getTotalNumber());
|
|
|
- difficult.put("totalCorrect", relation.getTotalCorrect());
|
|
|
+ difficult.put("totalNumber", relation.getTotalNumber() + 1);
|
|
|
+ difficult.put("totalCorrect", relation.getTotalCorrect() + userQuestion.getIsCorrect());
|
|
|
difficultSubjectMap.put(difficultKey, difficult);
|
|
|
}else{
|
|
|
difficult.put("userNumber", difficult.getInteger("userNumber") + 1);
|
|
|
difficult.put("userCorrect", difficult.getInteger("userCorrect") + userQuestion.getIsCorrect());
|
|
|
- difficult.put("totalNumber", difficult.getInteger("totalNumber") + relation.getTotalNumber());
|
|
|
- difficult.put("totalCorrect", difficult.getInteger("totalCorrect") + relation.getTotalCorrect());
|
|
|
+ difficult.put("totalNumber", difficult.getInteger("totalNumber") + relation.getTotalNumber() + 1);
|
|
|
+ difficult.put("totalCorrect", difficult.getInteger("totalCorrect") + relation.getTotalCorrect() + userQuestion.getIsCorrect());
|
|
|
}
|
|
|
|
|
|
// 基础数据
|