Bläddra i källkod

监考接口修改

wangliang 4 år sedan
förälder
incheckning
6ac471b6dd

+ 3 - 2
themis-business/src/main/java/com/qmth/themis/business/cache/bean/ExamStudentAnswerCacheBean.java

@@ -1,5 +1,8 @@
 package com.qmth.themis.business.cache.bean;
 
+import com.alibaba.fastjson.JSONArray;
+import com.qmth.themis.business.util.JacksonUtil;
+
 import java.io.Serializable;
 
 public class ExamStudentAnswerCacheBean implements Serializable {
@@ -96,6 +99,4 @@ public class ExamStudentAnswerCacheBean implements Serializable {
 	public void setObjective(Boolean objective) {
 		this.objective = objective;
 	}
-
-	
 }

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

@@ -598,7 +598,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
         ExamStudentPaperStructCacheBean struct = (ExamStudentPaperStructCacheBean) redisUtil
                 .get(RedisKeyHelper.studentPaperStructKey(recordId));
         if (struct != null) {
-            ret.setStudentPaperStruct(JacksonUtil.parseJson(struct.getContent()));
+            ret.setStudentPaperStruct(struct.getContent());
         }
         Map<String, ExamStudentAnswerCacheBean> answers = redisUtil
                 .getHashEntries(RedisKeyHelper.examAnswerKey(recordId));