|
@@ -70,13 +70,14 @@
|
|
|
join {DBNAME}.bpm_execute_node_middle benm on bep.task_key = benm.task_process_key
|
|
|
join {DBNAME}.${planTableName} as plan on plan.${planID} = bep.task_plan_key
|
|
|
where
|
|
|
- FIND_IN_SET(#{userId}, benm.task_execute_user_no) > 0
|
|
|
+ ( FIND_IN_SET(#{userId}, benm.task_execute_user_no) > 0
|
|
|
<if test="taskRealRoleList != null and taskRealRoleList.size() > 0">
|
|
|
OR
|
|
|
<foreach collection="taskRealRoleList" item="role" separator=" OR ">
|
|
|
FIND_IN_SET(#{role}, benm.task_real_role) > 0
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ )
|
|
|
<if test="taskProcessState != null">and bep.task_process_state = #{taskProcessState}</if>
|
|
|
<if test="taskName != null and taskName != ''">
|
|
|
and CONCAT(
|