|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.sim.service.impl;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
import cn.ele6.catalyzer.ruoyi.vue.custom.Ele6RYBaseService;
|
|
@@ -95,18 +96,19 @@ public class RealExamCollectionService extends Ele6RYBaseService {
|
|
|
/**
|
|
|
* [教师][分页]查询考试集合列表
|
|
|
*
|
|
|
- * @param p
|
|
|
+ * @param q
|
|
|
* @return
|
|
|
*/
|
|
|
- public TableDataInfo listExamByTeacher(RealExamCollection p) {
|
|
|
+ public TableDataInfo listExamByTeacher(RealExamCollection q) {
|
|
|
startPage();
|
|
|
- p.setExamCollectionType(RealExamCollection.Type.EXAM);
|
|
|
- List<RealExamCollectionVo> list = new ArrayList<>();
|
|
|
- realExamCollectionMapper.selectRealExamCollectionList(p).forEach((RealExamCollection s) -> {
|
|
|
- RealExamCollectionVo t = new RealExamCollectionVo();
|
|
|
- BeanUtils.copyProperties(s, t);
|
|
|
- list.add(t);
|
|
|
- });
|
|
|
+ q.setExamCollectionType(RealExamCollection.Type.EXAM);
|
|
|
+ List<RealExamCollectionVo> list = Collections.emptyList();
|
|
|
+ realExamCollectionMapper.selectRealExamCollectionList(q)
|
|
|
+ .forEach((RealExamCollection s) -> {
|
|
|
+ RealExamCollectionVo t = new RealExamCollectionVo();
|
|
|
+ BeanUtils.copyProperties(s, t);
|
|
|
+ list.add(t);
|
|
|
+ });
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -119,7 +121,7 @@ public class RealExamCollectionService extends Ele6RYBaseService {
|
|
|
public TableDataInfo listExerciseByTeacher(RealExamCollection p) {
|
|
|
startPage();
|
|
|
p.setExamCollectionType(RealExamCollection.Type.EXERCISE);
|
|
|
- List<RealExamCollectionVo> list = new ArrayList<>();
|
|
|
+ List<RealExamCollectionVo> list = Collections.emptyList();
|
|
|
realExamCollectionMapper.selectRealExamCollectionList(p).forEach((RealExamCollection s) -> {
|
|
|
RealExamCollectionVo t = new RealExamCollectionVo();
|
|
|
BeanUtils.copyProperties(s, t);
|