diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml
index a74e36f8..2c3ce1db 100644
--- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml
+++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml
@@ -21,8 +21,32 @@
and fa.startComName like concat('%', #{startComName}, '%') and fa.startProId = #{startProId} and fa.startProName like concat('%', #{startProName}, '%')
- and fa.finishTime is null
- and fa.finishTime is not null
+
+ and fa.category = '1'
+ and fa.category in ('2','3','4','5','6','8')
+
+
+ and bus.sub_dept_group in
+
+ #{groupId}
+
+
+
+ AND (fa.ASSIGNEE_ = #{assigneeId}
+ OR (
+ fa.ASSIGNEE_ IS NULL
+ AND (
+ fa.USER_ID_ = #{assigneeId}
+ OR (
+ fa.GROUP_ID_ IN
+
+ #{roleId}
+
+ )
+ )
+ )
+ )
+
order by fa.createTime desc
@@ -54,12 +78,16 @@