|
@@ -545,7 +545,7 @@ public class TEExamController {
|
|
|
|
|
|
@ApiOperation(value = "云阅卷成绩同步")
|
|
@ApiOperation(value = "云阅卷成绩同步")
|
|
@ApiResponses({@ApiResponse(code = 200, message = "成绩同步信息", response = Result.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "成绩同步信息", response = Result.class)})
|
|
- @RequestMapping(value = "/score/sync", method = RequestMethod.POST)
|
|
|
|
|
|
+ @RequestMapping(value = "/cloud_mark/score/sync", method = RequestMethod.POST)
|
|
public Result scoreSync(@ApiParam(value = "考试ID", required = true) @RequestParam String examId,
|
|
public Result scoreSync(@ApiParam(value = "考试ID", required = true) @RequestParam String examId,
|
|
@ApiParam(value = "云阅卷考试id", required = true) @RequestParam String yunMarkExamId,
|
|
@ApiParam(value = "云阅卷考试id", required = true) @RequestParam String yunMarkExamId,
|
|
@ApiParam(value = "accessKey", required = false) @RequestParam(required = false) String accessKey,
|
|
@ApiParam(value = "accessKey", required = false) @RequestParam(required = false) String accessKey,
|
|
@@ -589,6 +589,13 @@ public class TEExamController {
|
|
tbTaskHistory.setExamId(Long.parseLong(examId));
|
|
tbTaskHistory.setExamId(Long.parseLong(examId));
|
|
taskHistoryService.save(tbTaskHistory);
|
|
taskHistoryService.save(tbTaskHistory);
|
|
|
|
|
|
|
|
+ TBOrg tbOrg = cacheService.addOrgCache(examCacheBean.getOrgId());
|
|
|
|
+ if (Objects.isNull(accessKey) || Objects.equals(accessKey.trim(), "")) {
|
|
|
|
+ accessKey = tbOrg.getAccessKey();
|
|
|
|
+ }
|
|
|
|
+ if (Objects.isNull(accessSecret) || Objects.equals(accessSecret.trim(), "")) {
|
|
|
|
+ accessSecret = tbOrg.getAccessSecret();
|
|
|
|
+ }
|
|
transMap.put("tbTaskHistory", tbTaskHistory);
|
|
transMap.put("tbTaskHistory", tbTaskHistory);
|
|
transMap.put(SystemConstant.CREATE_ID, tbUser.getId());
|
|
transMap.put(SystemConstant.CREATE_ID, tbUser.getId());
|
|
transMap.put(SystemConstant.ORG_ID, tbUser.getOrgId());
|
|
transMap.put(SystemConstant.ORG_ID, tbUser.getOrgId());
|