|
|
|
@ -13,7 +13,7 @@ public interface ExamRecordMapper extends BaseMapper<ExamRecordEntity> { |
|
|
|
* SQL 解释:$[index].userAnswer 对应 JSON 数组中第 index 个对象的字段 |
|
|
|
*/ |
|
|
|
@Update("UPDATE evaluator_exam_record SET " + |
|
|
|
"answer_snapshot = JSON_SET(paper_snapshot, '$[${idx}].userAnswer', #{answer}), " + |
|
|
|
"answer_snapshot = JSON_SET(answer_snapshot, '$[${idx}].userAnswer', #{answer}), " + |
|
|
|
"update_time = NOW() " + |
|
|
|
"WHERE id = #{recordId}") |
|
|
|
int updateAnswerIncremental(@Param("recordId") Long recordId, |
|
|
|
|