|
@@ -468,9 +468,9 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/score/calculate", method = RequestMethod.POST)
|
|
|
@Transactional
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "{\"taskId\":0}", response = Result.class)})
|
|
|
- public Result scoreCalculate(@ApiParam(value = "批次ID", required = true) @RequestParam Long examId) {
|
|
|
+ public Result scoreCalculate(@ApiParam(value = "批次ID", required = true) @RequestParam Long id) {
|
|
|
//先查询考试相关信息
|
|
|
- TEExam teExam = teExamService.getById(examId);
|
|
|
+ TEExam teExam = teExamService.getById(id);
|
|
|
if (Objects.isNull(teExam)) {
|
|
|
throw new BusinessException(ExceptionResultEnum.EXAM_NO);
|
|
|
}
|
|
@@ -480,9 +480,9 @@ public class TEExamController {
|
|
|
TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
//往任务表里插一条数据
|
|
|
tbTaskHistory = new TBTaskHistory(TaskTypeEnum.CALCULATE_EXAM_SCORE, TaskStatusEnum.INIT, "重新算分", 0d, tbUser.getId());
|
|
|
- tbTaskHistory.setEntityId(examId);
|
|
|
+ tbTaskHistory.setEntityId(id);
|
|
|
taskHistoryService.save(tbTaskHistory);
|
|
|
- transMap.put("examId", examId);
|
|
|
+ transMap.put("examId", id);
|
|
|
transMap.put(SystemConstant.TASK_ID, tbTaskHistory.getId());
|
|
|
//mq发送消息start
|
|
|
MqDto mqDto = new MqDto(MqTopicEnum.THEMIS_TOPIC.getCode(), MqTagEnum.EXAM_SCORE_CALCULATE.name(), transMap, MqTagEnum.EXAM_SCORE_CALCULATE, String.valueOf(tbTaskHistory.getId()), tbUser.getName());
|