|
@@ -225,6 +225,17 @@
|
|
|
<if test="query.questionFilled != null">
|
|
|
and t.question_filled=#{query.questionFilled}
|
|
|
</if>
|
|
|
+ <if test="dpr != null">
|
|
|
+ <if test="dpr.requestUserId != null">
|
|
|
+ AND t.create_id = #{dpr.requestUserId}
|
|
|
+ </if>
|
|
|
+ <if test="dpr.orgIdSet != null and dpr.orgIdSet != '' and dpr.orgIdSet.size > 0">
|
|
|
+ AND su.org_id IN
|
|
|
+ <foreach collection="dpr.orgIdSet" item="item" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
</sql>
|
|
|
<select id="queryPage"
|
|
|
resultType="com.qmth.teachcloud.mark.bean.scananswer.AnswerQueryVo">
|
|
@@ -232,6 +243,7 @@
|
|
|
from mark_student t
|
|
|
left join scan_answer_card c on t.exam_id=c.exam_id and t.card_number=c.number
|
|
|
left join mark_paper s on s.course_paper_id=t.course_paper_id and s.exam_id=t.exam_id
|
|
|
+ left join sys_user su on t.create_id = su.id
|
|
|
<include refid="queryWhereAndOrder"/>
|
|
|
order by t.id
|
|
|
</select>
|
|
@@ -240,6 +252,7 @@
|
|
|
t.id
|
|
|
from mark_student t
|
|
|
left join mark_paper s on s.course_paper_id=t.course_paper_id and s.exam_id=t.exam_id
|
|
|
+ left join sys_user su on t.create_id = su.id
|
|
|
<include refid="queryWhereAndOrder"/>
|
|
|
order by t.id
|
|
|
</select>
|
|
@@ -403,8 +416,16 @@
|
|
|
<if test="markStudent.incomplete != null">
|
|
|
and ms.incomplete = #{markStudent.incomplete}
|
|
|
</if>
|
|
|
- <if test="markStudent.scanStatus != null">
|
|
|
- and ms.scan_status = #{markStudent.scanStatus}
|
|
|
+ <if test="dpr != null">
|
|
|
+ <if test="dpr.requestUserId != null">
|
|
|
+ AND ms.create_id = #{dpr.requestUserId}
|
|
|
+ </if>
|
|
|
+ <if test="dpr.orgIdSet != null and dpr.orgIdSet != '' and dpr.orgIdSet.size > 0">
|
|
|
+ AND su.org_id IN
|
|
|
+ <foreach collection="dpr.orgIdSet" item="item" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|