|
|
|
@ -131,22 +131,22 @@ public class TopicController {
|
|
|
|
|
@PostMapping("/getObjectiveCountByChapterId")
|
|
|
|
|
@ApiOperation("根据章节查看题目类型数量/模拟认证题库通用")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
private ResultEntity<List<TopicDto>> getObjectiveCountByChapterId(@ApiParam("普通题库/金融智能/银行从业") @RequestParam String outLine) {
|
|
|
|
|
private ResultEntity<List<TopicDto>> getObjectiveCountByChapterId(@ApiParam("金融智能/银行从业") @RequestParam String outLine) {
|
|
|
|
|
List<TopicDto> list = new ArrayList<>();
|
|
|
|
|
if (outLine.equals("金融智能")) {
|
|
|
|
|
List<TopicDto> list1 = objectiveQuestionMapper.getObjectiveCountByChapterId("金融智能", "13");
|
|
|
|
|
List<TopicDto> list2 = objectiveQuestionMapper.getObjectiveCountByChapterId("金融智能", "14");
|
|
|
|
|
list.addAll(list2);
|
|
|
|
|
List<TopicDto> list1 = objectiveQuestionMapper.getObjectiveCountByChapterId("金融智能", "理论知识");
|
|
|
|
|
List<TopicDto> list2 = objectiveQuestionMapper.getObjectiveCountByChapterId("金融智能", "专业能力");
|
|
|
|
|
list.addAll(list1);
|
|
|
|
|
list.addAll(list2);
|
|
|
|
|
}
|
|
|
|
|
if (outLine.equals("银行从业")) {
|
|
|
|
|
List<TopicDto> list1 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "15");
|
|
|
|
|
List<TopicDto> list2 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "16");
|
|
|
|
|
List<TopicDto> list3 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "17");
|
|
|
|
|
List<TopicDto> list4 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "18");
|
|
|
|
|
List<TopicDto> list5 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "19");
|
|
|
|
|
list.addAll(list2);
|
|
|
|
|
List<TopicDto> list1 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "公共基础");
|
|
|
|
|
List<TopicDto> list2 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "个人理财");
|
|
|
|
|
List<TopicDto> list3 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "风险管理");
|
|
|
|
|
List<TopicDto> list4 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "公司信贷");
|
|
|
|
|
List<TopicDto> list5 = objectiveQuestionMapper.getObjectiveCountByChapterId("银行从业", "个人贷款");
|
|
|
|
|
list.addAll(list1);
|
|
|
|
|
list.addAll(list2);
|
|
|
|
|
list.addAll(list3);
|
|
|
|
|
list.addAll(list4);
|
|
|
|
|
list.addAll(list5);
|
|
|
|
@ -162,10 +162,10 @@ public class TopicController {
|
|
|
|
|
@RequestParam Integer size,
|
|
|
|
|
@ApiParam("0单选,1多选,2判断") @RequestParam(required = false) Integer type,
|
|
|
|
|
@ApiParam("普通题库/金融智能/银行从业") @RequestParam String outLine,
|
|
|
|
|
@ApiParam("理论知识/专业能力公共基础/个人理财/风险管理/公司信贷/个人贷款") @RequestParam(required = false) String subClass,
|
|
|
|
|
@ApiParam("理论知识/专业能力/公共基础/个人理财/风险管理/公司信贷/个人贷款") @RequestParam(required = false) String subClass,
|
|
|
|
|
@RequestParam(required = false) String content,
|
|
|
|
|
@RequestParam(required = false) String schoolId,
|
|
|
|
|
@RequestParam String chapterId) {
|
|
|
|
|
@RequestParam(required = false) String chapterId) {
|
|
|
|
|
PageHelper.startPage(index, size);
|
|
|
|
|
List<ObjectiveQuestionWithBLOBs> list = objectiveQuestionMapper.getObjectiveByType(type, outLine, subClass, content, schoolId, chapterId);
|
|
|
|
|
PageInfo pageInfo = new PageInfo(list);
|
|
|
|
|