|
@@ -9,6 +9,8 @@ import cn.com.qmth.stmms.biz.file.service.FileService;
|
|
|
import cn.com.qmth.stmms.common.annotation.Logging;
|
|
|
import cn.com.qmth.stmms.common.enums.CheckType;
|
|
|
import cn.com.qmth.stmms.common.enums.LogType;
|
|
|
+
|
|
|
+import org.apache.commons.lang.StringEscapeUtils;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -80,6 +82,7 @@ public class CheckStudentController extends BaseExamController {
|
|
|
@ResponseBody
|
|
|
public Object save(HttpServletRequest request, @RequestParam Integer studentId, @RequestParam String answers) {
|
|
|
ExamStudent student = studentService.findById(studentId);
|
|
|
+ answers = StringEscapeUtils.unescapeHtml(StringUtils.trimToNull(answers));
|
|
|
CheckStudent cs = checkStudentService.findByStudentId(studentId);
|
|
|
if (student != null && cs != null) {
|
|
|
student.setAnswers(answers);
|