|
@@ -5,65 +5,107 @@
|
|
|
<mapper namespace="com.zkqy.execution.produce.dispersed.mapper.BpmExecuteNodeLogMapper">
|
|
|
|
|
|
<resultMap type="com.zkqy.execution.produce.dispersed.entity.BpmExecuteNodeLog" id="BpmExecuteNodeLogResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="taskParentNodeKey" column="task_parent_node_key" />
|
|
|
- <result property="taskProcessKey" column="task_process_key" />
|
|
|
- <result property="taskNodeKey" column="task_node_key" />
|
|
|
- <result property="taskNodeName" column="task_node_name" />
|
|
|
- <result property="taskNodeFormKey" column="task_node_form_key" />
|
|
|
- <result property="taskNodeFormType" column="task_node_form_type" />
|
|
|
- <result property="taskNodeType" column="task_node_type" />
|
|
|
- <result property="taskNodeExecuteType" column="task_node_execute_type" />
|
|
|
- <result property="taskNodeBefore" column="task_node_before" />
|
|
|
- <result property="taskNodeAfter" column="task_node_after" />
|
|
|
- <result property="taskNodeRolePermission" column="task_node_role_permission" />
|
|
|
- <result property="taskRemark" column="task_remark" />
|
|
|
- <result property="taskNodeNumber" column="task_node_number" />
|
|
|
- <result property="taskNodeWeight" column="task_node_weight" />
|
|
|
- <result property="taskNodeState" column="task_node_state" />
|
|
|
- <result property="taskNodeOtherState" column="task_node_other_state" />
|
|
|
- <result property="taskPriority" column="task_priority" />
|
|
|
- <result property="task1" column="task1" />
|
|
|
- <result property="task2" column="task2" />
|
|
|
- <result property="task3" column="task3" />
|
|
|
- <result property="task4" column="task4" />
|
|
|
- <result property="task5" column="task5" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- <result property="createById" column="create_by_id" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="taskParentNodeKey" column="task_parent_node_key"/>
|
|
|
+ <result property="taskProcessKey" column="task_process_key"/>
|
|
|
+ <result property="taskNodeKey" column="task_node_key"/>
|
|
|
+ <result property="taskNodeName" column="task_node_name"/>
|
|
|
+ <result property="taskNodeFormKey" column="task_node_form_key"/>
|
|
|
+ <result property="taskNodeFormType" column="task_node_form_type"/>
|
|
|
+ <result property="taskNodeType" column="task_node_type"/>
|
|
|
+ <result property="taskNodeExecuteType" column="task_node_execute_type"/>
|
|
|
+ <result property="taskNodeBefore" column="task_node_before"/>
|
|
|
+ <result property="taskNodeAfter" column="task_node_after"/>
|
|
|
+ <result property="taskNodeRolePermission" column="task_node_role_permission"/>
|
|
|
+ <result property="taskRemark" column="task_remark"/>
|
|
|
+ <result property="taskNodeNumber" column="task_node_number"/>
|
|
|
+ <result property="taskNodeWeight" column="task_node_weight"/>
|
|
|
+ <result property="taskNodeState" column="task_node_state"/>
|
|
|
+ <result property="taskNodeOtherState" column="task_node_other_state"/>
|
|
|
+ <result property="taskPriority" column="task_priority"/>
|
|
|
+ <result property="task1" column="task1"/>
|
|
|
+ <result property="task2" column="task2"/>
|
|
|
+ <result property="task3" column="task3"/>
|
|
|
+ <result property="task4" column="task4"/>
|
|
|
+ <result property="task5" column="task5"/>
|
|
|
+ <result property="delFlag" column="del_flag"/>
|
|
|
+ <result property="createById" column="create_by_id"/>
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBpmExecuteNodeLogVo">
|
|
|
- select id, task_parent_node_key, task_process_key, task_node_key, task_node_name, task_node_form_key, task_node_form_type, task_node_type, task_node_execute_type, task_node_before, task_node_after, task_node_role_permission, task_remark, task_node_number, task_node_weight, task_node_state, task_node_other_state, task_priority, task1, task2, task3, task4, task5, del_flag, create_by_id, create_by, create_time from bpm_execute_node_log
|
|
|
+ select id,
|
|
|
+ task_parent_node_key,
|
|
|
+ task_process_key,
|
|
|
+ task_node_key,
|
|
|
+ task_node_name,
|
|
|
+ task_node_form_key,
|
|
|
+ task_node_form_type,
|
|
|
+ task_node_type,
|
|
|
+ task_node_execute_type,
|
|
|
+ task_node_before,
|
|
|
+ task_node_after,
|
|
|
+ task_node_role_permission,
|
|
|
+ task_remark,
|
|
|
+ task_node_number,
|
|
|
+ task_node_weight,
|
|
|
+ task_node_state,
|
|
|
+ task_node_other_state,
|
|
|
+ task_priority,
|
|
|
+ task1,
|
|
|
+ task2,
|
|
|
+ task3,
|
|
|
+ task4,
|
|
|
+ task5,
|
|
|
+ del_flag,
|
|
|
+ create_by_id,
|
|
|
+ create_by,
|
|
|
+ create_time
|
|
|
+ from bpm_execute_node_log
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectBpmExecuteNodeLogList" parameterType="com.zkqy.execution.produce.dispersed.entity.BpmExecuteNodeLog" resultMap="BpmExecuteNodeLogResult">
|
|
|
+ <select id="selectBpmExecuteNodeLogList"
|
|
|
+ parameterType="com.zkqy.execution.produce.dispersed.entity.BpmExecuteNodeLog"
|
|
|
+ resultMap="BpmExecuteNodeLogResult">
|
|
|
<include refid="selectBpmExecuteNodeLogVo"/>
|
|
|
<where>
|
|
|
- <if test="taskParentNodeKey != null and taskParentNodeKey != ''"> and task_parent_node_key = #{taskParentNodeKey}</if>
|
|
|
- <if test="taskProcessKey != null and taskProcessKey != ''"> and task_process_key = #{taskProcessKey}</if>
|
|
|
- <if test="taskNodeKey != null and taskNodeKey != ''"> and task_node_key = #{taskNodeKey}</if>
|
|
|
- <if test="taskNodeName != null and taskNodeName != ''"> and task_node_name like concat('%', #{taskNodeName}, '%')</if>
|
|
|
- <if test="taskNodeFormKey != null and taskNodeFormKey != ''"> and task_node_form_key = #{taskNodeFormKey}</if>
|
|
|
- <if test="taskNodeFormType != null and taskNodeFormType != ''"> and task_node_form_type = #{taskNodeFormType}</if>
|
|
|
- <if test="taskNodeType != null and taskNodeType != ''"> and task_node_type = #{taskNodeType}</if>
|
|
|
- <if test="taskNodeExecuteType != null and taskNodeExecuteType != ''"> and task_node_execute_type = #{taskNodeExecuteType}</if>
|
|
|
- <if test="taskNodeBefore != null and taskNodeBefore != ''"> and task_node_before = #{taskNodeBefore}</if>
|
|
|
- <if test="taskNodeAfter != null and taskNodeAfter != ''"> and task_node_after = #{taskNodeAfter}</if>
|
|
|
- <if test="taskNodeRolePermission != null and taskNodeRolePermission != ''"> and task_node_role_permission = #{taskNodeRolePermission}</if>
|
|
|
- <if test="taskRemark != null and taskRemark != ''"> and task_remark = #{taskRemark}</if>
|
|
|
- <if test="taskNodeNumber != null and taskNodeNumber != ''"> and task_node_number = #{taskNodeNumber}</if>
|
|
|
- <if test="taskNodeWeight != null and taskNodeWeight != ''"> and task_node_weight = #{taskNodeWeight}</if>
|
|
|
- <if test="taskNodeState != null and taskNodeState != ''"> and task_node_state = #{taskNodeState}</if>
|
|
|
- <if test="taskNodeOtherState != null and taskNodeOtherState != ''"> and task_node_other_state = #{taskNodeOtherState}</if>
|
|
|
- <if test="taskPriority != null and taskPriority != ''"> and task_priority = #{taskPriority}</if>
|
|
|
- <if test="task1 != null and task1 != ''"> and task1 = #{task1}</if>
|
|
|
- <if test="task2 != null and task2 != ''"> and task2 = #{task2}</if>
|
|
|
- <if test="task3 != null and task3 != ''"> and task3 = #{task3}</if>
|
|
|
- <if test="task4 != null and task4 != ''"> and task4 = #{task4}</if>
|
|
|
- <if test="task5 != null and task5 != ''"> and task5 = #{task5}</if>
|
|
|
- <if test="createById != null and createById != ''"> and create_by_id = #{createById}</if>
|
|
|
+ <if test="taskParentNodeKey != null and taskParentNodeKey != ''">and task_parent_node_key =
|
|
|
+ #{taskParentNodeKey}
|
|
|
+ </if>
|
|
|
+ <if test="taskProcessKey != null and taskProcessKey != ''">and task_process_key = #{taskProcessKey}</if>
|
|
|
+ <if test="taskNodeKey != null and taskNodeKey != ''">and task_node_key = #{taskNodeKey}</if>
|
|
|
+ <if test="taskNodeName != null and taskNodeName != ''">and task_node_name like concat('%', #{taskNodeName},
|
|
|
+ '%')
|
|
|
+ </if>
|
|
|
+ <if test="taskNodeFormKey != null and taskNodeFormKey != ''">and task_node_form_key = #{taskNodeFormKey}
|
|
|
+ </if>
|
|
|
+ <if test="taskNodeFormType != null and taskNodeFormType != ''">and task_node_form_type =
|
|
|
+ #{taskNodeFormType}
|
|
|
+ </if>
|
|
|
+ <if test="taskNodeType != null and taskNodeType != ''">and task_node_type = #{taskNodeType}</if>
|
|
|
+ <if test="taskNodeExecuteType != null and taskNodeExecuteType != ''">and task_node_execute_type =
|
|
|
+ #{taskNodeExecuteType}
|
|
|
+ </if>
|
|
|
+ <if test="taskNodeBefore != null and taskNodeBefore != ''">and task_node_before = #{taskNodeBefore}</if>
|
|
|
+ <if test="taskNodeAfter != null and taskNodeAfter != ''">and task_node_after = #{taskNodeAfter}</if>
|
|
|
+ <if test="taskNodeRolePermission != null and taskNodeRolePermission != ''">and task_node_role_permission =
|
|
|
+ #{taskNodeRolePermission}
|
|
|
+ </if>
|
|
|
+ <if test="taskRemark != null and taskRemark != ''">and task_remark = #{taskRemark}</if>
|
|
|
+ <if test="taskNodeNumber != null and taskNodeNumber != ''">and task_node_number = #{taskNodeNumber}</if>
|
|
|
+ <if test="taskNodeWeight != null and taskNodeWeight != ''">and task_node_weight = #{taskNodeWeight}</if>
|
|
|
+ <if test="taskNodeState != null and taskNodeState != ''">and task_node_state = #{taskNodeState}</if>
|
|
|
+ <if test="taskNodeOtherState != null and taskNodeOtherState != ''">and task_node_other_state =
|
|
|
+ #{taskNodeOtherState}
|
|
|
+ </if>
|
|
|
+ <if test="taskPriority != null and taskPriority != ''">and task_priority = #{taskPriority}</if>
|
|
|
+ <if test="task1 != null and task1 != ''">and task1 = #{task1}</if>
|
|
|
+ <if test="task2 != null and task2 != ''">and task2 = #{task2}</if>
|
|
|
+ <if test="task3 != null and task3 != ''">and task3 = #{task3}</if>
|
|
|
+ <if test="task4 != null and task4 != ''">and task4 = #{task4}</if>
|
|
|
+ <if test="task5 != null and task5 != ''">and task5 = #{task5}</if>
|
|
|
+ <if test="createById != null and createById != ''">and create_by_id = #{createById}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -72,7 +114,21 @@
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertBpmExecuteNodeLog" parameterType="com.zkqy.execution.produce.dispersed.entity.BpmExecuteNodeLog" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ <select id="selectBpmExecuteProcessNodeListLog"
|
|
|
+ resultMap="BpmExecuteNodeLogResult">
|
|
|
+ SELECT *
|
|
|
+ FROM bpm_execute_node_log
|
|
|
+ WHERE task_process_key IN
|
|
|
+ <foreach collection="taskProcessList" item="task" open="(" separator="," close=")">
|
|
|
+ #{task}
|
|
|
+ </foreach>
|
|
|
+ GROUP BY task_process_key, task_node_key, task_node_name
|
|
|
+ ORDER BY task_process_key, MIN(id)
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="insertBpmExecuteNodeLog" parameterType="com.zkqy.execution.produce.dispersed.entity.BpmExecuteNodeLog"
|
|
|
+ useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into bpm_execute_node_log
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="taskParentNodeKey != null">task_parent_node_key,</if>
|
|
@@ -166,7 +222,9 @@
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteBpmExecuteNodeLogById" parameterType="Long">
|
|
|
- delete from bpm_execute_node_log where id = #{id}
|
|
|
+ delete
|
|
|
+ from bpm_execute_node_log
|
|
|
+ where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteBpmExecuteNodeLogByIds" parameterType="String">
|