|
@@ -434,7 +434,8 @@
|
|
|
LEFT JOIN t_f_flow_approve_log tffal ON
|
|
|
a.flow_id = tffal.flow_id
|
|
|
<where>
|
|
|
- a.enable = true and a.review = true and a.status in ('STAGE','FINISH') and a.review_status is not null
|
|
|
+ a.enable = true and a.review = true
|
|
|
+ and EXISTS (select distinct t.PROC_INST_ID_ from ACT_HI_TASKINST t where t.PROC_INST_ID_ = a.flow_id)
|
|
|
<if test="schoolId != null and schoolId != ''">
|
|
|
and a.school_id = #{schoolId}
|
|
|
</if>
|