修复任务更新主键校验与会话查询SQL参数化

This commit is contained in:
2026-04-12 13:06:11 +08:00
parent c696397d83
commit 43747f785c
2 changed files with 14 additions and 3 deletions
@@ -26,6 +26,8 @@
from study_sessions ss
left join tasks t on ss.task_num = t.task_num and ss.session_state != 'ENDED' and ss.deleted = 0
where t.deleted = 0
and t.task_num = ${task_num}
and t.task_num = #{task_num}
order by ss.last_modified_time desc, ss.created_time desc
limit 1
</select>
</mapper>