linzhijie
2021-03-26 af8d29a4affd04da30eba76b5a6ef96ece6264e1
src/main/java/com/ots/project/exam/restcontroller/ExamPaperAnswerController.java
@@ -2,6 +2,7 @@
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ots.common.enums.LangTypeEnum;
import com.ots.common.enums.TestMemberStatusEnum;
@@ -53,10 +54,21 @@
    @Autowired
    private IEntTestMemberService entTestMemberService;
    @Autowired
    private ITTextContentService textContentService;
    @Autowired
    private ExamPaperController examPaperController;
    @Autowired
    private TExamPaperServiceImpl examPaperService;
    @Autowired
    IEntDemographyInfoService entDemographyInfoService;
    @Autowired
    IEntTestPackageService entTestPackageService;
    @Autowired
    ITExamPaperService iTExamPaperService;
    private static final Logger logger = LoggerFactory.getLogger(Threads.class);
    // 答题提交
    @RequestMapping(value = "/answerSubmit/{tokenId}", method = RequestMethod.POST)
@@ -338,7 +350,7 @@
        tExamReport.setDoTime(examPaperSubmitVM.getDoTime());
        tExamReport.setLangType(examPaperSubmitVM.getLangType());
        // 是否自动发送状态报告
        setAutoSendReportStatus(relatedParty, tExamReport);
        //setAutoSendReportStatus(relatedParty, tExamReport);
        BeanUtils.copyBeanProp(tExamReportQuery, tExamReport);
        tExamReportQuery.setProductId(null);
@@ -357,6 +369,7 @@
        tExamReport.setTestId(relatedParty.getTestId());
        // finish
        tExamReport.setFinish(examPaperSubmitVM.getFinish());
        //更新用户答题状态
        setVerifyStatus(examPaperSubmitVM, tExamReport);
        // questionTemplateId
@@ -383,7 +396,7 @@
        updateTExamReport(examPaperSubmitVM, tokenId, relatedParty, tExamReport, tExamReportList);
        // 调用泰国团队
        callThaiInteface(examPaperSubmitVM, tokenId, tExamReport, examPaperAnswerInfo);
        //callThaiInteface(examPaperSubmitVM, tokenId, tExamReport, examPaperAnswerInfo);
        return examPaperAnswerInfo;
    }
@@ -502,4 +515,5 @@
        entTestMemberService.updateTestMemberStatus(TestMemberStatusEnum.answering, memberService.queryProdidByToken(tokenId).getMemberId());
        return RestResponse.ok();
    }
}