Ver código fonte

入库审核已审核修改

wangliang 3 anos atrás
pai
commit
94a78009e1

+ 2 - 1
distributed-print-business/src/main/resources/mapper/ExamTaskMapper.xml

@@ -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>