|
@@ -12,10 +12,7 @@ import cn.com.qmth.examcloud.commons.api.request.*;
|
|
import cn.com.qmth.examcloud.commons.api.response.*;
|
|
import cn.com.qmth.examcloud.commons.api.response.*;
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
import cn.com.qmth.examcloud.core.print.enums.ExamType;
|
|
import cn.com.qmth.examcloud.core.print.enums.ExamType;
|
|
-import cn.com.qmth.examcloud.core.print.service.CoursePaperService;
|
|
|
|
-import cn.com.qmth.examcloud.core.print.service.CourseStatisticService;
|
|
|
|
-import cn.com.qmth.examcloud.core.print.service.ExamStructureService;
|
|
|
|
-import cn.com.qmth.examcloud.core.print.service.PrintingProjectService;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.print.service.*;
|
|
import cn.com.qmth.examcloud.core.print.service.bean.common.ExamInfo;
|
|
import cn.com.qmth.examcloud.core.print.service.bean.common.ExamInfo;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -38,6 +35,8 @@ public class SyncCloudServiceProvider extends ControllerSupport implements Handl
|
|
@Autowired
|
|
@Autowired
|
|
private ExamStructureService examStructureService;
|
|
private ExamStructureService examStructureService;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ private ExamQuestionStructureService examQuestionStructureService;
|
|
|
|
+ @Autowired
|
|
private CoursePaperService coursePaperService;
|
|
private CoursePaperService coursePaperService;
|
|
@Autowired
|
|
@Autowired
|
|
private CourseStatisticService courseStatisticService;
|
|
private CourseStatisticService courseStatisticService;
|
|
@@ -95,6 +94,8 @@ public class SyncCloudServiceProvider extends ControllerSupport implements Handl
|
|
if (StringUtils.isNotBlank(req.getName())) {
|
|
if (StringUtils.isNotBlank(req.getName())) {
|
|
coursePaperService.syncCourseNameByCourseId(req.getId(), req.getName());
|
|
coursePaperService.syncCourseNameByCourseId(req.getId(), req.getName());
|
|
courseStatisticService.syncCourseNameByCourseId(req.getId(), req.getName());
|
|
courseStatisticService.syncCourseNameByCourseId(req.getId(), req.getName());
|
|
|
|
+ examQuestionStructureService.syncObjectiveCourseNameByCourseId(req.getId(), req.getName());
|
|
|
|
+ examQuestionStructureService.syncSubjectiveCourseNameByCourseId(req.getId(), req.getName());
|
|
}
|
|
}
|
|
return new SyncCourseResp();
|
|
return new SyncCourseResp();
|
|
}
|
|
}
|
|
@@ -107,6 +108,9 @@ public class SyncCloudServiceProvider extends ControllerSupport implements Handl
|
|
return new SyncSpecialtyResp();
|
|
return new SyncSpecialtyResp();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 同步用户
|
|
|
|
+ */
|
|
@PostMapping("syncUser")
|
|
@PostMapping("syncUser")
|
|
public SyncUserResp syncUser(SyncUserReq req) {
|
|
public SyncUserResp syncUser(SyncUserReq req) {
|
|
if (StringUtils.isNotBlank(req.getName())) {
|
|
if (StringUtils.isNotBlank(req.getName())) {
|