|
|
@ -215,23 +215,27 @@ public class TeaGradeManageController {
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
@AnonymousAccess
|
|
|
|
@PostMapping("/getGradeReportCase")
|
|
|
|
@PostMapping("/getGradeReportCase")
|
|
|
|
@ApiOperation("考试模式--成绩报告案例题questionOriginal所属章节,contentOriginal为考核点数量") //TODO 案例题正确率字段暂无
|
|
|
|
@ApiOperation("考试模式--成绩报告案例题questionOriginal所属章节,contentOriginal为考核点数量,Sort为序号") //TODO 案例题正确率字段暂无
|
|
|
|
public ResultEntity<PageInfo<SysCaseQuestion>> getGradeReportCase(@RequestParam Integer index,
|
|
|
|
public ResultEntity<PageInfo<SysCaseQuestion>> getGradeReportCase(@RequestParam Integer index,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam String examManageId) {
|
|
|
|
@RequestParam String examManageId) {
|
|
|
|
TeaExamManageWithBLOBs teaExamManageWithBLOBs = teaExamManageMapper.selectByPrimaryKey(examManageId);
|
|
|
|
TeaExamManageWithBLOBs teaExamManageWithBLOBs = teaExamManageMapper.selectByPrimaryKey(examManageId);
|
|
|
|
String caseIdList = teaExamManageWithBLOBs.getCaseIdlist();
|
|
|
|
String caseIdList = teaExamManageWithBLOBs.getCaseIdlist();
|
|
|
|
List<String> list = Arrays.asList(caseIdList.split(","));
|
|
|
|
List<String> list = Arrays.asList(caseIdList.split(","));
|
|
|
|
PageHelper.startPage(index, size);
|
|
|
|
List<SysCaseQuestionStep> resultList = sysCaseQuestionStepMapper.getGradeReportCase(list);
|
|
|
|
List<SysCaseQuestion> resultList = sysCaseQuestionStepMapper.getGradeReportCase(list);
|
|
|
|
int i = 1;
|
|
|
|
PageInfo pageInfo = new PageInfo(resultList);
|
|
|
|
for (SysCaseQuestionStep sysCaseQuestionStep : resultList) {
|
|
|
|
|
|
|
|
sysCaseQuestionStep.setSort(i);
|
|
|
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PageInfo pageInfo = PageUtil.pageHelper(resultList, index, size);
|
|
|
|
return new ResultEntity(pageInfo);
|
|
|
|
return new ResultEntity(pageInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AnonymousAccess
|
|
|
|
@AnonymousAccess
|
|
|
|
@PostMapping("/getGradeReportObjective")
|
|
|
|
@PostMapping("/getGradeReportObjective")
|
|
|
|
@ApiOperation("考试模式--成绩报告客观题") //TODO 客观题正确率字段暂无
|
|
|
|
@ApiOperation("考试模式--成绩报告客观题ObjectiveId为序号") //TODO 客观题正确率字段暂无
|
|
|
|
public ResultEntity<PageInfo<SysCaseQuestion>> getGradeReportObjective(@RequestParam Integer index,
|
|
|
|
public ResultEntity<PageInfo<SysCaseQuestion>> getGradeReportObjective(@RequestParam Integer index,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam Integer size,
|
|
|
|
@RequestParam String examManageId) {
|
|
|
|
@RequestParam String examManageId) {
|
|
|
@ -239,7 +243,7 @@ public class TeaGradeManageController {
|
|
|
|
if (teaExamManageWithBLOBs == null) {
|
|
|
|
if (teaExamManageWithBLOBs == null) {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<String> list = new ArrayList();
|
|
|
|
List<String> list = new ArrayList<>();
|
|
|
|
if (StringUtils.isNotBlank(teaExamManageWithBLOBs.getSingleIdlist())) {
|
|
|
|
if (StringUtils.isNotBlank(teaExamManageWithBLOBs.getSingleIdlist())) {
|
|
|
|
String singleIdList = teaExamManageWithBLOBs.getSingleIdlist();
|
|
|
|
String singleIdList = teaExamManageWithBLOBs.getSingleIdlist();
|
|
|
|
String[] split = singleIdList.split(",");
|
|
|
|
String[] split = singleIdList.split(",");
|
|
|
@ -256,9 +260,16 @@ public class TeaGradeManageController {
|
|
|
|
list.addAll(Arrays.asList(split));
|
|
|
|
list.addAll(Arrays.asList(split));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
PageHelper.startPage(index, size);
|
|
|
|
List<SysObjectiveQuestion> resultList = sysObjectiveQuestionMapper.getGradeReportObjective(list);
|
|
|
|
List<SysCaseQuestion> resultList = sysObjectiveQuestionMapper.getGradeReportObjective(list);
|
|
|
|
if (!resultList.isEmpty()){
|
|
|
|
PageInfo pageInfo = new PageInfo(resultList);
|
|
|
|
int i =0;
|
|
|
|
|
|
|
|
for (SysObjectiveQuestion sysObjectiveQuestion : resultList) {
|
|
|
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
sysObjectiveQuestion.setObjectiveId(Integer.toString(i));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageInfo pageInfo = PageUtil.pageHelper(resultList, index, size);
|
|
|
|
return new ResultEntity(pageInfo);
|
|
|
|
return new ResultEntity(pageInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|