|
@@ -115,10 +115,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectStudentPractices" resultType="com.alibaba.fastjson2.JSONObject">
|
|
<select id="selectStudentPractices" resultType="com.alibaba.fastjson2.JSONObject">
|
|
|
- SELECT e.`examinee_id` examineeId, e.`end_time` endTime, SUBSTRING_INDEX(SUBSTRING_INDEX(p.`paperName`, '-', 2), '-', -1) paperName, LENGTH(SUBSTRING_INDEX(SUBSTRING_INDEX(p.`direct_key`, '_', 2), '_', -1)) > 0 AS directed
|
|
|
|
|
|
|
+ SELECT e.`examinee_id` examineeId, e.`end_time` endTime, SUBSTRING_INDEX(SUBSTRING_INDEX(p.`paperName`, '-', 2), '-', -1) paperName, LENGTH(SUBSTRING_INDEX(SUBSTRING_INDEX(p.`direct_key`, '_', 2), '_', -1)) > 0 AS directed, SUBSTRING_INDEX(p.`direct_key`, '_', -1) as questionType
|
|
|
FROM `learn_examinee` e
|
|
FROM `learn_examinee` e
|
|
|
JOIN `learn_paper` p ON e.`paper_id` = p.`id`
|
|
JOIN `learn_paper` p ON e.`paper_id` = p.`id`
|
|
|
WHERE e.student_id = #{studentId} and e.`paper_type` = #{paperType} AND e.`state` >= 4
|
|
WHERE e.student_id = #{studentId} and e.`paper_type` = #{paperType} AND e.`state` >= 4
|
|
|
|
|
+ and SUBSTRING_INDEX(p.`direct_key`, '_', -1) = #{questionType}
|
|
|
ORDER BY e.`end_time` DESC
|
|
ORDER BY e.`end_time` DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|