|
@@ -5,19 +5,24 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.xycxedu.dto.AddExamPlanDto;
|
|
|
import com.xjrsoft.module.xycxedu.dto.ExamPlanPageDto;
|
|
|
+import com.xjrsoft.module.xycxedu.dto.ExamStatisticsPageDto;
|
|
|
import com.xjrsoft.module.xycxedu.dto.UpdateExamPlanDto;
|
|
|
import com.xjrsoft.module.xycxedu.entity.ExamPlan;
|
|
|
import com.xjrsoft.module.xycxedu.entity.XycxeduExamList;
|
|
|
import com.xjrsoft.module.xycxedu.service.IExamPlanService;
|
|
|
+import com.xjrsoft.module.xycxedu.service.IExamSubjectScoreService;
|
|
|
import com.xjrsoft.module.xycxedu.service.IXycxeduExamListService;
|
|
|
import com.xjrsoft.module.xycxedu.vo.ExamPlanPageVo;
|
|
|
import com.xjrsoft.module.xycxedu.vo.ExamPlanVo;
|
|
|
+import com.xjrsoft.module.xycxedu.vo.ExamStatisticsPageVo;
|
|
|
+import com.xjrsoft.module.xycxedu.vo.ExamSubjectScorePageVo;
|
|
|
import com.xjrsoft.module.xycxedu.vo.XycxeduExamListVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -30,10 +35,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
-import java.io.IOException;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -53,7 +56,7 @@ public class ExamPlanController {
|
|
|
|
|
|
private final IExamPlanService examPlanService;
|
|
|
private final IXycxeduExamListService examListService;
|
|
|
-
|
|
|
+ private final IExamSubjectScoreService scoreService;
|
|
|
@GetMapping(value = "/page")
|
|
|
@ApiOperation(value="考试计划维护列表(分页)")
|
|
|
@SaCheckPermission("examplan:detail")
|
|
@@ -122,4 +125,13 @@ public class ExamPlanController {
|
|
|
List<XycxeduExamListVo> listVos = BeanUtil.copyToList(list, XycxeduExamListVo.class);
|
|
|
return RT.ok(listVos);
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping(value = "/exam-statistics")
|
|
|
+ @ApiOperation(value="考试记录(分页)")
|
|
|
+ @SaCheckPermission("examplan:detail")
|
|
|
+ public RT<PageOutput<ExamStatisticsPageVo>> page(@Valid ExamStatisticsPageDto dto){
|
|
|
+ Page<ExamStatisticsPageVo> page = scoreService.getStatisticsPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
+ PageOutput<ExamStatisticsPageVo> pageOutput = ConventPage.getPageOutput(page, ExamStatisticsPageVo.class);
|
|
|
+ return RT.ok(pageOutput);
|
|
|
+ }
|
|
|
}
|