|
|
|
@ -55,11 +55,11 @@ public class EvaluationRulesServiceImpl extends ServiceImpl<EvaluationRulesDao, |
|
|
|
|
|
|
|
|
|
evaluationRulesVO.setTotalQuestionNum(questionsService.count(queryWrapper));//总题数
|
|
|
|
|
|
|
|
|
|
int totalSingleNum = questionsService.count(queryWrapper.eq("question_type_no", |
|
|
|
|
int totalSingleNum = questionsService.count(queryWrapper.eq("question_type", |
|
|
|
|
Constant.QuestionType.SINGLE_CHOICE.getType()));//单选题总数
|
|
|
|
|
int totalMultipleNum = questionsService.count(queryWrapper.eq("question_type_no", |
|
|
|
|
int totalMultipleNum = questionsService.count(queryWrapper.eq("question_type", |
|
|
|
|
Constant.QuestionType.MULTIPLE_CHOICE.getType()));//多选题总数
|
|
|
|
|
int totalJudgmentNum = questionsService.count(queryWrapper.eq("question_type_no", |
|
|
|
|
int totalJudgmentNum = questionsService.count(queryWrapper.eq("question_type", |
|
|
|
|
Constant.QuestionType.TRUE_OR_FALSE.getType()));//判断题总数
|
|
|
|
|
|
|
|
|
|
evaluationRulesVO.setTotalSingleNum(totalSingleNum); |
|
|
|
@ -88,19 +88,19 @@ public class EvaluationRulesServiceImpl extends ServiceImpl<EvaluationRulesDao, |
|
|
|
|
} else if (evaluationType.equals(Constant.RulesType.CUSTOMIZE.getType())) {//自定义
|
|
|
|
|
if (evaluationRules.getIsSingleEnable().equals(Constant.IsEnable.ENABLE.getType())) {//启用
|
|
|
|
|
int singleNum = evaluationRules.getSingleNum(); |
|
|
|
|
int totalSingleNum = questionsService.count(queryWrapper.eq("question_type_no", |
|
|
|
|
int totalSingleNum = questionsService.count(queryWrapper.eq("question_type", |
|
|
|
|
Constant.QuestionType.SINGLE_CHOICE.getType()));//单选题总数
|
|
|
|
|
numIncalid(singleNum, totalSingleNum); |
|
|
|
|
} |
|
|
|
|
if (evaluationRules.getIsMultipleEnable().equals(Constant.IsEnable.ENABLE.getType())) {//启用
|
|
|
|
|
int multipleNum = evaluationRules.getMultipleNum(); |
|
|
|
|
int totalMultipleNum = questionsService.count(queryWrapper.eq("question_type_no", |
|
|
|
|
int totalMultipleNum = questionsService.count(queryWrapper.eq("question_type", |
|
|
|
|
Constant.QuestionType.MULTIPLE_CHOICE.getType()));//多选题总数
|
|
|
|
|
numIncalid(multipleNum, totalMultipleNum); |
|
|
|
|
} |
|
|
|
|
if (evaluationRules.getIsJudgmentEnable().equals(Constant.IsEnable.ENABLE.getType())) {//启用
|
|
|
|
|
int judgmentNum = evaluationRules.getJudgmentNum(); |
|
|
|
|
int totalJudgmentNum = questionsService.count(queryWrapper.eq("question_type_no", |
|
|
|
|
int totalJudgmentNum = questionsService.count(queryWrapper.eq("question_type", |
|
|
|
|
Constant.QuestionType.TRUE_OR_FALSE.getType()));//判断题总数
|
|
|
|
|
numIncalid(judgmentNum, totalJudgmentNum); |
|
|
|
|
} |
|
|
|
|