|
@@ -53,7 +53,7 @@ import cn.com.qmth.examcloud.core.examwork.dao.ExamPropertyRepo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamRepo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamStudentRepo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.CourseGroupEntity;
|
|
|
-import cn.com.qmth.examcloud.core.examwork.dao.entity.CourseGroupRelation;
|
|
|
+import cn.com.qmth.examcloud.core.examwork.dao.entity.CourseGroupRelationEntity;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamEntity;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamOrgEntity;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamPropertyEntity;
|
|
@@ -436,10 +436,10 @@ public class ExamController extends ControllerSupport {
|
|
|
List<Long> courseIdList = Lists.newArrayList();
|
|
|
bean.setCourseIdList(courseIdList);
|
|
|
|
|
|
- List<CourseGroupRelation> relationList = courseGroupRelationRepo
|
|
|
+ List<CourseGroupRelationEntity> relationList = courseGroupRelationRepo
|
|
|
.findAllByGroupId(bean.getId());
|
|
|
|
|
|
- for (CourseGroupRelation cur : relationList) {
|
|
|
+ for (CourseGroupRelationEntity cur : relationList) {
|
|
|
courseIdList.add(cur.getCourseId());
|
|
|
}
|
|
|
|
|
@@ -454,11 +454,11 @@ public class ExamController extends ControllerSupport {
|
|
|
public List<CourseGroupBean> queryCourseGroupList(@PathVariable Long examId,
|
|
|
@PathVariable Long courseId) {
|
|
|
|
|
|
- List<CourseGroupRelation> relationList = courseGroupRelationRepo
|
|
|
+ List<CourseGroupRelationEntity> relationList = courseGroupRelationRepo
|
|
|
.findAllByCourseIdAndExamId(courseId, examId);
|
|
|
|
|
|
List<Long> groupIdList = Lists.newArrayList();
|
|
|
- for (CourseGroupRelation cur : relationList) {
|
|
|
+ for (CourseGroupRelationEntity cur : relationList) {
|
|
|
Long groupId = cur.getGroupId();
|
|
|
groupIdList.add(groupId);
|
|
|
}
|
|
@@ -482,10 +482,10 @@ public class ExamController extends ControllerSupport {
|
|
|
List<Long> courseIdList = Lists.newArrayList();
|
|
|
bean.setCourseIdList(courseIdList);
|
|
|
|
|
|
- List<CourseGroupRelation> curRelationList = courseGroupRelationRepo
|
|
|
+ List<CourseGroupRelationEntity> curRelationList = courseGroupRelationRepo
|
|
|
.findAllByGroupId(bean.getId());
|
|
|
|
|
|
- for (CourseGroupRelation cur : curRelationList) {
|
|
|
+ for (CourseGroupRelationEntity cur : curRelationList) {
|
|
|
courseIdList.add(cur.getCourseId());
|
|
|
}
|
|
|
}
|
|
@@ -511,12 +511,12 @@ public class ExamController extends ControllerSupport {
|
|
|
courseGroupRepo.save(courseGroup);
|
|
|
List<Long> courseIdList = courseGroupBean.getCourseIdList();
|
|
|
|
|
|
- List<CourseGroupRelation> relationList = Lists.newArrayList();
|
|
|
+ List<CourseGroupRelationEntity> relationList = Lists.newArrayList();
|
|
|
|
|
|
courseGroupRelationRepo.deleteByGroupId(courseGroup.getId());
|
|
|
|
|
|
for (Long cur : courseIdList) {
|
|
|
- CourseGroupRelation relation = new CourseGroupRelation();
|
|
|
+ CourseGroupRelationEntity relation = new CourseGroupRelationEntity();
|
|
|
relation.setCourseId(cur);
|
|
|
relation.setExamId(courseGroupBean.getExamId());
|
|
|
relation.setGroupId(courseGroup.getId());
|