|
@@ -92,6 +92,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/prepare", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result prepare(@RequestBody PrepareParamBean param) {
|
|
|
+ log.info("PrepareParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
String lockKey = SystemConstant.REDIS_LOCK_STUDENT_PREFIX + teStudent.getId();
|
|
|
Boolean lock = redisUtil.lock(lockKey, SystemConstant.REDIS_CACHE_TIME_OUT);
|
|
@@ -112,6 +113,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/start", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result start(@RequestBody ExamStartParamBean param) {
|
|
|
+ log.info("ExamStartParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
String lockKey = SystemConstant.REDIS_LOCK_STUDENT_PREFIX + teStudent.getId();
|
|
|
Boolean lock = redisUtil.lock(lockKey, SystemConstant.REDIS_CACHE_TIME_OUT);
|
|
@@ -153,6 +155,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/student_paper_struct/upload", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result studentPaperStruct(@RequestBody StudentPaperStructParamBean param) {
|
|
|
+ log.info("StudentPaperStructParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
if (param.getRecordId() == null) {
|
|
|
throw new BusinessException("考试记录id不能为空");
|
|
@@ -168,6 +171,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/answer/submit", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result answerSubmit(@RequestBody AnswerSubmitParamBean param) {
|
|
|
+ log.info("AnswerSubmitParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
if (param.getRecordId() == null) {
|
|
|
throw new BusinessException("考试记录id不能为空");
|
|
@@ -194,6 +198,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/audio_left_play_count/submit", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result audioLeftPlayCountSubmit(@RequestBody AudioLeftPlayCountSubmitParamBean param) {
|
|
|
+ log.info("AudioLeftPlayCountSubmitParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
if (param.getRecordId() == null) {
|
|
|
throw new BusinessException("考试记录id不能为空");
|
|
@@ -222,6 +227,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/resume", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result resume(@RequestBody ResumeParamBean param) {
|
|
|
+ log.info("ResumeParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
String lockKey = SystemConstant.REDIS_LOCK_STUDENT_PREFIX + teStudent.getId();
|
|
|
Boolean lock = redisUtil.lock(lockKey, SystemConstant.REDIS_CACHE_TIME_OUT);
|
|
@@ -242,6 +248,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/finish", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result finish(@RequestBody FinishParamBean param) {
|
|
|
+ log.info("FinishParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
TEStudentCacheDto teStudent = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
String lockKey = SystemConstant.REDIS_LOCK_STUDENT_PREFIX + teStudent.getId();
|
|
|
Boolean lock = redisUtil.lock(lockKey, SystemConstant.REDIS_CACHE_TIME_OUT);
|
|
@@ -278,6 +285,7 @@ public class TEExamController {
|
|
|
@RequestMapping(value = "/result", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷信息")})
|
|
|
public Result result(@RequestBody ResultParamBean param) {
|
|
|
+ log.info("ResultParamBean:{}",JacksonUtil.parseJson(param));
|
|
|
if (param.getRecordId() == null) {
|
|
|
throw new BusinessException("考试记录id不能为空");
|
|
|
}
|