|
@@ -65,8 +65,8 @@
|
|
|
<select id="selectBpmExecuteProcessListLog" resultMap="retMap">
|
|
|
select
|
|
|
bep.*
|
|
|
- from {DBNAME}.bpm_execute_node_middle benm
|
|
|
- join {DBNAME}.bpm_execute_process bep on bep.task_key = benm.task_process_key
|
|
|
+ from {DBNAME}.bpm_execute_process bep
|
|
|
+ join {DBNAME}.bpm_execute_node_middle benm on bep.task_key = benm.task_process_key
|
|
|
where
|
|
|
FIND_IN_SET(#{userId}, benm.task_execute_user_no) > 0
|
|
|
<if test="taskRealRoleList != null and taskRealRoleList.size() > 0">
|
|
@@ -75,26 +75,25 @@
|
|
|
FIND_IN_SET(#{role}, benm.task_real_role) > 0
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <where>
|
|
|
- <if test="taskKey != null and taskKey != ''">and bep.task_key = #{taskKey}</if>
|
|
|
- <if test="taskName != null and taskName != ''">and bep.task_name like concat('%', #{taskName}, '%')</if>
|
|
|
- <if test="taskNodeKey != null and taskNodeKey != ''">and bep.task_node_key = #{taskNodeKey}</if>
|
|
|
- <if test="taskNodeNextKey != null and taskNodeNextKey != ''">and bep.task_node_next_key =
|
|
|
- #{taskNodeNextKey}
|
|
|
- </if>
|
|
|
- <if test="taskProcessKey != null and taskProcessKey != ''">and bep.task_process_key = #{taskProcessKey}
|
|
|
- </if>
|
|
|
- <if test="taskProcessXmlContent != null and taskProcessXmlContent != ''">and bep.task_process_xml_content =
|
|
|
- #{taskProcessXmlContent}
|
|
|
- </if>
|
|
|
- <if test="taskProcessState != null ">and bep.task_process_state = #{taskProcessState}</if>
|
|
|
- <if test="taskProcessNote != null and taskProcessNote != ''">and bep.task_process_note =
|
|
|
- #{taskProcessNote}
|
|
|
- </if>
|
|
|
- <if test="taskProcessType != null and taskProcessType != ''">and bep.task_process_type =
|
|
|
- #{taskProcessType}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
+
|
|
|
+ <if test="taskKey != null and taskKey != ''">and bep.task_key = #{taskKey}</if>
|
|
|
+ <if test="taskName != null and taskName != ''">and bep.task_name like concat('%', #{taskName}, '%')</if>
|
|
|
+ <if test="taskNodeKey != null and taskNodeKey != ''">and bep.task_node_key = #{taskNodeKey}</if>
|
|
|
+ <if test="taskNodeNextKey != null and taskNodeNextKey != ''">and bep.task_node_next_key =
|
|
|
+ #{taskNodeNextKey}
|
|
|
+ </if>
|
|
|
+ <if test="taskProcessKey != null and taskProcessKey != ''">and bep.task_process_key = #{taskProcessKey}
|
|
|
+ </if>
|
|
|
+ <if test="taskProcessXmlContent != null and taskProcessXmlContent != ''">and bep.task_process_xml_content =
|
|
|
+ #{taskProcessXmlContent}
|
|
|
+ </if>
|
|
|
+ <if test="taskProcessState != null ">and bep.task_process_state = #{taskProcessState}</if>
|
|
|
+ <if test="taskProcessNote != null and taskProcessNote != ''">and bep.task_process_note =
|
|
|
+ #{taskProcessNote}
|
|
|
+ </if>
|
|
|
+ <if test="taskProcessType != null and taskProcessType != ''">and bep.task_process_type =
|
|
|
+ #{taskProcessType}
|
|
|
+ </if>
|
|
|
GROUP BY benm.task_process_key
|
|
|
</select>
|
|
|
|