|
@@ -17,6 +17,10 @@
|
|
|
<result column="create_user" jdbcType="INTEGER" property="createUser" />
|
|
<result column="create_user" jdbcType="INTEGER" property="createUser" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="task_exam_id" jdbcType="INTEGER" property="taskExamId" />
|
|
<result column="task_exam_id" jdbcType="INTEGER" property="taskExamId" />
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, exam_paper_id, paper_name, paper_type, subject_id, system_score, user_score,
|
|
id, exam_paper_id, paper_name, paper_type, subject_id, system_score, user_score,
|
|
@@ -215,17 +219,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="studentPage" resultMap="BaseResultMap" parameterType="vip.xiaonuo.exam.viewmodel.student.exampaper.ExamPaperAnswerPageVM">
|
|
|
|
|
|
|
+ <select id="studentPage" resultType="vip.xiaonuo.exam.vo.ExamPaperAnswerVo" parameterType="vip.xiaonuo.exam.viewmodel.student.exampaper.ExamPaperAnswerPageVM">
|
|
|
SELECT
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
|
|
- FROM t_exam_paper_answer
|
|
|
|
|
|
|
+ a.id id,
|
|
|
|
|
+ a.exam_paper_id examPaperId,
|
|
|
|
|
+ a.paper_name paperName,
|
|
|
|
|
+ a.paper_type paperType,
|
|
|
|
|
+ a.system_score systemScore,
|
|
|
|
|
+ a.user_score userScore,
|
|
|
|
|
+ a.paper_score paperScore,
|
|
|
|
|
+ a.question_correct questionCorrect,
|
|
|
|
|
+ a.question_count questionCount,
|
|
|
|
|
+ a.do_time doTime,
|
|
|
|
|
+ a.status status,
|
|
|
|
|
+ a.create_user createUser,
|
|
|
|
|
+ a.create_time createTime,
|
|
|
|
|
+ su.NAME name,
|
|
|
|
|
+ su.GRADES_ID gradesId,
|
|
|
|
|
+ c.grades_name gradesName
|
|
|
|
|
+ FROM
|
|
|
|
|
+ t_exam_paper_answer a LEFT JOIN SYS_USER su ON a.create_user=su.ID
|
|
|
|
|
+ LEFT JOIN grades c ON su.GRADES_ID=c.grades_id
|
|
|
<where>
|
|
<where>
|
|
|
- and create_user in
|
|
|
|
|
|
|
+ and a.create_user in
|
|
|
<foreach item="item" collection="studentIds" open="(" separator="," close=")">
|
|
<foreach item="item" collection="studentIds" open="(" separator="," close=")">
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ and a.paper_type!=5
|
|
|
</where>
|
|
</where>
|
|
|
- ORDER BY create_time DESC
|
|
|
|
|
|
|
+ ORDER BY a.create_time DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|