|
@@ -68,7 +68,7 @@
|
|
|
LEFT JOIN t_f_custom_flow_entity fe ON fe.`code` = a.problem_no
|
|
|
LEFT JOIN t_f_flow_approve fa ON fa.flow_id = fe.flow_id
|
|
|
<where>
|
|
|
- and a.type != 'NO_PROBLEM'
|
|
|
+ and a.type != 'NO_PROBLEM' and fa.STATUS = 'FINISH'
|
|
|
<if test="serviceUnitId != null and serviceUnitId != ''">
|
|
|
and a.service_id = #{serviceUnitId}
|
|
|
</if>
|