|
@@ -11,7 +11,9 @@ import cn.com.qmth.examcloud.commons.api.HandleSyncCloudService;
|
|
|
import cn.com.qmth.examcloud.commons.api.request.*;
|
|
|
import cn.com.qmth.examcloud.commons.api.response.*;
|
|
|
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.service.PrintingProjectService;
|
|
|
+import cn.com.qmth.examcloud.core.print.service.bean.OrgExamInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -43,7 +45,11 @@ public class PrintingSyncCloudServiceProvider extends ControllerSupport implemen
|
|
|
@ApiOperation(value = "同步考试")
|
|
|
@PostMapping("syncExam")
|
|
|
public SyncExamResp syncExam(@RequestBody SyncExamReq req) {
|
|
|
- //printingProjectService.syncPrintingProjectOrgName(req.getExamId(), req.getExamName());
|
|
|
+ //printingProjectService.syncPrintingProjectOrgName(req.getExamId(), req.getName());
|
|
|
+ if (ExamType.isTradition(req.getExamType())) {
|
|
|
+ //OrgExamInfo info = new OrgExamInfo(req.getRootOrgId(), req.getRootOrgName(), req.getExamId(), req.getName());
|
|
|
+ //printingProjectService.syncPrintingProject(info);
|
|
|
+ }
|
|
|
return new SyncExamResp();
|
|
|
}
|
|
|
|