| | |
| | | |
| | | |
| | | 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; |
| | |
| | | @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) |
| | |
| | | tExamReport.setDoTime(examPaperSubmitVM.getDoTime()); |
| | | tExamReport.setLangType(examPaperSubmitVM.getLangType()); |
| | | // 是否自动发送状态报告 |
| | | setAutoSendReportStatus(relatedParty, tExamReport); |
| | | //setAutoSendReportStatus(relatedParty, tExamReport); |
| | | BeanUtils.copyBeanProp(tExamReportQuery, tExamReport); |
| | | |
| | | tExamReportQuery.setProductId(null); |
| | |
| | | updateTExamReport(examPaperSubmitVM, tokenId, relatedParty, tExamReport, tExamReportList); |
| | | |
| | | // 调用泰国团队 |
| | | callThaiInteface(examPaperSubmitVM, tokenId, tExamReport, examPaperAnswerInfo); |
| | | //callThaiInteface(examPaperSubmitVM, tokenId, tExamReport, examPaperAnswerInfo); |
| | | return examPaperAnswerInfo; |
| | | } |
| | | |
| | |
| | | entTestMemberService.updateTestMemberStatus(TestMemberStatusEnum.answering, memberService.queryProdidByToken(tokenId).getMemberId()); |
| | | return RestResponse.ok(); |
| | | } |
| | | |
| | | } |