|
|
@ -257,8 +257,8 @@ public class ObjectiveApi {
|
|
|
|
@ApiOperation("本地excel导入试题")
|
|
|
|
@ApiOperation("本地excel导入试题")
|
|
|
|
@PostMapping("insertObjectiveByExcel")
|
|
|
|
@PostMapping("insertObjectiveByExcel")
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
Boolean importTopicByLocal(@RequestParam MultipartFile file,
|
|
|
|
Boolean importTopicByLocal(@RequestParam MultipartFile file,
|
|
|
|
@RequestParam String schoolId) throws IOException, InvalidFormatException {
|
|
|
|
@RequestParam String schoolId) throws IOException, InvalidFormatException {
|
|
|
|
if (file == null) {
|
|
|
|
if (file == null) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -428,10 +428,10 @@ public class ObjectiveApi {
|
|
|
|
@ApiOperation("根据客观题IDList批量查询客观题")
|
|
|
|
@ApiOperation("根据客观题IDList批量查询客观题")
|
|
|
|
@PostMapping("selectBatchByIdList")
|
|
|
|
@PostMapping("selectBatchByIdList")
|
|
|
|
private List<SysObjectiveQuestions> selectBatchByIdList(@RequestBody List<String> objectIdList) {
|
|
|
|
private List<SysObjectiveQuestions> selectBatchByIdList(@RequestBody List<String> objectIdList) {
|
|
|
|
SysObjectiveQuestionsExample example = new SysObjectiveQuestionsExample();
|
|
|
|
SysObjectiveQuestionsExample example = new SysObjectiveQuestionsExample();
|
|
|
|
example.createCriteria().andObjectiveIdIn(objectIdList);
|
|
|
|
example.createCriteria().andObjectiveIdIn(objectIdList);
|
|
|
|
List<SysObjectiveQuestions> sysObjectiveQuestions = sysObjectiveQuestionMapper.selectByExample(example);
|
|
|
|
List<SysObjectiveQuestions> sysObjectiveQuestions = sysObjectiveQuestionMapper.selectByExample(example);
|
|
|
|
return sysObjectiveQuestions;
|
|
|
|
return sysObjectiveQuestions;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -652,7 +652,6 @@ public class ObjectiveApi {
|
|
|
|
@ApiOperation("获取所选客观题数量及分数")
|
|
|
|
@ApiOperation("获取所选客观题数量及分数")
|
|
|
|
@PostMapping("getChooseObjCountAndSorce")
|
|
|
|
@PostMapping("getChooseObjCountAndSorce")
|
|
|
|
private Map<String, BigDecimal> getChooseObjCountAndSorce(@RequestBody List<String> objectIdList) {
|
|
|
|
private Map<String, BigDecimal> getChooseObjCountAndSorce(@RequestBody List<String> objectIdList) {
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, BigDecimal> chooseObjCountAndSorce = sysObjectiveQuestionMapper.getChooseObjCountAndSorce(objectIdList);
|
|
|
|
Map<String, BigDecimal> chooseObjCountAndSorce = sysObjectiveQuestionMapper.getChooseObjCountAndSorce(objectIdList);
|
|
|
|
return chooseObjCountAndSorce;
|
|
|
|
return chooseObjCountAndSorce;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -665,8 +664,9 @@ public class ObjectiveApi {
|
|
|
|
private List<SysObjectiveQuestionsDto> selectObjByType(@RequestParam String type,
|
|
|
|
private List<SysObjectiveQuestionsDto> selectObjByType(@RequestParam String type,
|
|
|
|
@RequestParam String schoolId,
|
|
|
|
@RequestParam String schoolId,
|
|
|
|
@RequestParam String systemOwner) {
|
|
|
|
@RequestParam String systemOwner) {
|
|
|
|
List<SysObjectiveQuestionsDto> sysObjectiveQuestionsDtos = sysObjectiveQuestionMapper.selectObjByType(type, schoolId);
|
|
|
|
SysOneCatalog sysOneCatalogs = getSysOneCatalogs(systemOwner);
|
|
|
|
|
|
|
|
String oneId = sysOneCatalogs.getOneId();
|
|
|
|
|
|
|
|
List<SysObjectiveQuestionsDto> sysObjectiveQuestionsDtos = sysObjectiveQuestionMapper.selectObjByType(type, schoolId, oneId);
|
|
|
|
return sysObjectiveQuestionsDtos;
|
|
|
|
return sysObjectiveQuestionsDtos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|