|
@@ -879,7 +879,8 @@
|
|
|
LEFT JOIN exam_task_detail det ON
|
|
|
det.exam_task_id = et.id
|
|
|
where
|
|
|
- art.ASSIGNEE_ = cast(#{userId} as char)
|
|
|
+ et.enable = true
|
|
|
+ and art.ASSIGNEE_ = cast(#{userId} as char)
|
|
|
and et.school_id = #{schoolId}
|
|
|
UNION all
|
|
|
select
|
|
@@ -935,7 +936,8 @@
|
|
|
LEFT JOIN exam_task_detail det ON
|
|
|
det.exam_task_id = et.id
|
|
|
where
|
|
|
- art.ASSIGNEE_ is null
|
|
|
+ et.enable = true
|
|
|
+ and art.ASSIGNEE_ is null
|
|
|
and ari.USER_ID_ = cast(#{userId} as char)
|
|
|
and ari.TYPE_ = 'candidate'
|
|
|
and et.school_id = #{schoolId}
|