|
|
|
@ -424,7 +424,7 @@ public class LcJudgmentPointServiceImpl extends ServiceImpl<LcJudgmentPointMappe |
|
|
|
|
//无操作记录,记录每题分数返回
|
|
|
|
|
if (operationRules.isEmpty()){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println("无操作记录,记录每题分数返回=====for11111111111开始"); |
|
|
|
|
for (LcJudgmentRule judgmentRule : lcJudgmentRules) { |
|
|
|
|
LcRuleRecord lcRuleRecord = new LcRuleRecord(); |
|
|
|
|
lcRuleRecord.setRuleId(judgmentRule.getId()); |
|
|
|
@ -450,6 +450,7 @@ public class LcJudgmentPointServiceImpl extends ServiceImpl<LcJudgmentPointMappe |
|
|
|
|
} |
|
|
|
|
lcRuleRecordList.add(lcRuleRecord); |
|
|
|
|
} |
|
|
|
|
System.out.println("无操作记录,记录每题分数返回=====for11111111111结束"); |
|
|
|
|
//没做直接错
|
|
|
|
|
scoreInfos.add(new ScoreInfo(lcId, 0.0, false, judgmentScore, flag)); |
|
|
|
|
}else { |
|
|
|
@ -465,7 +466,7 @@ public class LcJudgmentPointServiceImpl extends ServiceImpl<LcJudgmentPointMappe |
|
|
|
|
//存储不同规则之间的与或
|
|
|
|
|
ArrayList<Boolean> booleanList = new ArrayList<>(); |
|
|
|
|
ArrayList<Integer> logicList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
System.out.println("有操作记录=====for2222222222222开始"); |
|
|
|
|
for (LcJudgmentRule judgmentRule : lcJudgmentRules) { |
|
|
|
|
|
|
|
|
|
boolean aBoolean = false; |
|
|
|
@ -590,6 +591,7 @@ public class LcJudgmentPointServiceImpl extends ServiceImpl<LcJudgmentPointMappe |
|
|
|
|
//添加操作记录
|
|
|
|
|
lcRuleRecordList.add(lcRuleRecord); |
|
|
|
|
} |
|
|
|
|
System.out.println("有操作记录=====for2222222222222结束"); |
|
|
|
|
// 逻辑运算 判断逻辑是否正确,正确则计分
|
|
|
|
|
boolean logicRight = ArithmeticUtil.logic(booleanList, logicList); |
|
|
|
|
// 判断逻辑是否正确,正确则计分
|
|
|
|
@ -601,9 +603,11 @@ public class LcJudgmentPointServiceImpl extends ServiceImpl<LcJudgmentPointMappe |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
System.out.println("准备保存操作记录-------"+lcRuleRecordList); |
|
|
|
|
//批量插入
|
|
|
|
|
batchInsertRuleRecord(lcRuleRecordList); |
|
|
|
|
scoreDetails.setScoreInfos(scoreInfos); |
|
|
|
|
System.out.println("scoreDetails收集完成-------"+scoreDetails); |
|
|
|
|
return scoreDetails; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|