|
@@ -61,9 +61,10 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
- <!--benm.task_process_key-->
|
|
|
+ <!--benm.task_process_key 管道展示 -->
|
|
|
<select id="selectBpmExecuteProcessListLog" resultMap="retMap">
|
|
|
select
|
|
|
+ plan.${planName} as task_plan_name,
|
|
|
bep.*
|
|
|
from {DBNAME}.bpm_execute_process bep
|
|
|
join {DBNAME}.bpm_execute_node_middle benm on bep.task_key = benm.task_process_key
|
|
@@ -76,24 +77,18 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
|
|
|
- <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 test="taskName != null and taskName != ''">
|
|
|
+ and CONCAT(
|
|
|
+ IFNULL( bep.task_key, '' ),
|
|
|
+ IFNULL( bep.task_name, '' ),
|
|
|
+ IFNULL( bep.task_node_key, '' ),
|
|
|
+ IFNULL( bep.task_node_next_key, '' ),
|
|
|
+ IFNULL( bep.task_process_key, '' ),
|
|
|
+ IFNULL( bep.task_process_note, '' ),
|
|
|
+ IFNULL( plan.${planName}, '' ),
|
|
|
+ IFNULL( task_process_type, '' )) LIKE concat('%', #{taskName}, '%')
|
|
|
</if>
|
|
|
+
|
|
|
GROUP BY benm.task_process_key
|
|
|
</select>
|
|
|
|
|
@@ -250,17 +245,16 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
)
|
|
|
- <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 =
|
|
|
- #{executeProcessTaskNodeNextKey}
|
|
|
- </if>
|
|
|
- <if test="taskProcessKey != null and taskProcessKey != ''">and bep.task_process_key = #{taskProcessKey}</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 test="taskName != null and taskName != ''">
|
|
|
+ and CONCAT(
|
|
|
+ IFNULL( bep.task_key, '' ),
|
|
|
+ IFNULL( bep.task_name, '' ),
|
|
|
+ IFNULL( bep.task_node_key, '' ),
|
|
|
+ IFNULL( bep.task_node_next_key, '' ),
|
|
|
+ IFNULL( bep.task_process_key, '' ),
|
|
|
+ IFNULL( bep.task_process_note, '' ),
|
|
|
+ IFNULL( plan.${planName}, '' ),
|
|
|
+ IFNULL( task_process_type, '' )) LIKE concat('%', #{taskName}, '%')
|
|
|
</if>
|
|
|
order by ben.create_time desc
|
|
|
</select>
|
|
@@ -325,16 +319,16 @@
|
|
|
join {DBNAME}.${planTableName} as plan on
|
|
|
plan.${planID} = bep.task_plan_key
|
|
|
where bep.task_process_state = 3
|
|
|
- <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 =
|
|
|
- #{executeProcessTaskNodeNextKey}
|
|
|
- </if>
|
|
|
- <if test="taskProcessKey != null and taskProcessKey != ''">and bep.task_process_key = #{taskProcessKey}</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 test="taskName != null and taskName != ''">
|
|
|
+ and CONCAT(
|
|
|
+ IFNULL( bep.task_key, '' ),
|
|
|
+ IFNULL( bep.task_name, '' ),
|
|
|
+ IFNULL( bep.task_node_key, '' ),
|
|
|
+ IFNULL( bep.task_node_next_key, '' ),
|
|
|
+ IFNULL( bep.task_process_key, '' ),
|
|
|
+ IFNULL( bep.task_process_note, '' ),
|
|
|
+ IFNULL( plan.${planName}, '' ),
|
|
|
+ IFNULL( task_process_type, '' )) LIKE concat('%', #{taskName}, '%')
|
|
|
</if>
|
|
|
order by ben.create_time desc
|
|
|
</select>
|