|
@@ -23,6 +23,7 @@ import cn.com.qmth.examcloud.commons.api.response.SyncSpecialtyResp;
|
|
|
import cn.com.qmth.examcloud.commons.api.response.SyncStudentResp;
|
|
|
import cn.com.qmth.examcloud.commons.base.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
+import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseRelationRepo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamStudentRepo;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
@@ -45,6 +46,9 @@ public class HandleSyncCloudServiceProvider extends ControllerSupport
|
|
|
@Autowired
|
|
|
ExamStudentRepo examStudentRepo;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ExamCourseRelationRepo examCourseRelationRepo;
|
|
|
+
|
|
|
@ApiOperation(value = "同步课程")
|
|
|
@PostMapping("syncCourse")
|
|
|
@Override
|
|
@@ -67,7 +71,9 @@ public class HandleSyncCloudServiceProvider extends ControllerSupport
|
|
|
throw new StatusException("B-100004", "rootOrgId is null");
|
|
|
}
|
|
|
|
|
|
- examStudentRepo.updateCourse(courseName, courseLevel, rootOrgId, courseId);
|
|
|
+ examStudentRepo.updateCourse(courseName, courseLevel, courseId);
|
|
|
+
|
|
|
+ examCourseRelationRepo.updateCourse(courseName, courseLevel, courseId);
|
|
|
|
|
|
SyncCourseResp resp = new SyncCourseResp();
|
|
|
return resp;
|