소스 검색

fix:修复管道展示查询条件OR问题

韩帛霖 1 년 전
부모
커밋
9cdba1f66f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      zkqy-process-execution/src/main/resources/mapper/bpm/dispersed/BpmExecuteProcessMapper.xml

+ 2 - 1
zkqy-process-execution/src/main/resources/mapper/bpm/dispersed/BpmExecuteProcessMapper.xml

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