|
@@ -93,6 +93,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
GROUP BY e2.`paper_id`
|
|
GROUP BY e2.`paper_id`
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <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
|
|
|
|
|
+ FROM `learn_examinee` e
|
|
|
|
|
+ JOIN `learn_paper` p ON e.`paper_id` = p.`id`
|
|
|
|
|
+ WHERE e.student_id = #{studentId} and e.`paper_type` = '50' AND e.`state` >= 4
|
|
|
|
|
+ ORDER BY e.`end_time` DESC
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
<select id="selectLearnExamineeByExamineeId" parameterType="Long" resultMap="LearnExamineeResult">
|
|
<select id="selectLearnExamineeByExamineeId" parameterType="Long" resultMap="LearnExamineeResult">
|
|
|
<include refid="selectLearnExamineeVo"/>
|
|
<include refid="selectLearnExamineeVo"/>
|
|
|
where examinee_id = #{examineeId}
|
|
where examinee_id = #{examineeId}
|