|
@@ -5,6 +5,7 @@ import com.miaxis.common.exception.CustomException;
|
|
|
import com.miaxis.question.domain.QuestionInfo;
|
|
|
import com.miaxis.question.domain.QuestionInfoKtNew;
|
|
|
import com.miaxis.question.domain.TAppExamRule;
|
|
|
+import com.miaxis.question.domain.TAppExamRuleNew;
|
|
|
import com.miaxis.question.dto.*;
|
|
|
import com.miaxis.question.mapper.QuestionInfoKtNewMapper;
|
|
|
import com.miaxis.question.service.IQuestionInfoKtNewService;
|
|
@@ -64,12 +65,12 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
|
|
|
|
|
|
//全题库
|
|
|
List<QuestionInfoKtNew> allList = new ArrayList<QuestionInfoKtNew>();
|
|
|
- TAppExamRule tAppExamRule = new TAppExamRule();
|
|
|
- tAppExamRule.setKemu(qt.getSubject());
|
|
|
- tAppExamRule.setGs(cx);
|
|
|
- tAppExamRule.setAreacode(0);
|
|
|
+ TAppExamRuleNew tAppExamRuleNew = new TAppExamRuleNew();
|
|
|
+ tAppExamRuleNew.setKemu(qt.getSubject());
|
|
|
+ tAppExamRuleNew.setGs(cx);
|
|
|
+ tAppExamRuleNew.setAreacode(0);
|
|
|
|
|
|
- List<TAppExamRule> list = appExamRuleService.selectTAppExamRuleList(tAppExamRule);
|
|
|
+ List<TAppExamRuleNew> list = appExamRuleService.selectTAppExamRuleNewList(tAppExamRuleNew);
|
|
|
if (list.size() == 0) {
|
|
|
return allList;
|
|
|
}
|
|
@@ -81,7 +82,7 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
|
|
|
do {
|
|
|
shouldRetry = false;
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
- TAppExamRule er = list.get(i);
|
|
|
+ TAppExamRuleNew er = list.get(i);
|
|
|
int easyJudge = er.getJudgeCount(); //判断
|
|
|
int easyChoice = er.getChoiceCount(); //选择
|
|
|
int easyMultiple = er.getMultipleChoiceCount(); //多选
|
|
@@ -209,12 +210,12 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
|
|
|
|
|
|
//全题库
|
|
|
List<QuestionInfoKtNew> allList = new ArrayList<QuestionInfoKtNew>();
|
|
|
- TAppExamRule tAppExamRule = new TAppExamRule();
|
|
|
- tAppExamRule.setKemu(qt.getSubject());
|
|
|
- tAppExamRule.setGs(cx);
|
|
|
- tAppExamRule.setAreacode(0);
|
|
|
+ TAppExamRuleNew tAppExamRuleNew = new TAppExamRuleNew();
|
|
|
+ tAppExamRuleNew.setKemu(qt.getSubject());
|
|
|
+ tAppExamRuleNew.setGs(cx);
|
|
|
+ tAppExamRuleNew.setAreacode(0);
|
|
|
|
|
|
- List<TAppExamRule> list = appExamRuleService.selectTAppExamRuleList(tAppExamRule);
|
|
|
+ List<TAppExamRuleNew> list = appExamRuleService.selectTAppExamRuleNewList(tAppExamRuleNew);
|
|
|
if (list.size() == 0) {
|
|
|
return allList;
|
|
|
}
|
|
@@ -226,7 +227,7 @@ public class QuestionInfoKtNewServiceImpl extends ServiceImpl<QuestionInfoKtNewM
|
|
|
do {
|
|
|
shouldRetry = false;
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
- TAppExamRule er = list.get(i);
|
|
|
+ TAppExamRuleNew er = list.get(i);
|
|
|
int judge = er.getJudgeCount(); //判断
|
|
|
int choice = er.getChoiceCount(); //选择
|
|
|
int multiple = er.getMultipleChoiceCount(); //多选
|