|
@@ -0,0 +1,76 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.ruoyi.execution.produce.dispersed.mapper.BpmExecuteNodeFormMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.ruoyi.execution.produce.dispersed.entity.BpmExecuteNodeForm" id="BpmExecuteNodeFormResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="taskNFKey" column="task_n_f_key" />
|
|
|
+ <result property="taskProcessKey" column="task_process_key" />
|
|
|
+ <result property="taskNodeKey" column="task_node_key" />
|
|
|
+ <result property="taskFormKey" column="task_form_key" />
|
|
|
+ <result property="taskTemplateType" column="task_template_type" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectBpmExecuteNodeFormVo">
|
|
|
+ select id, task_n_f_key, task_process_key, task_node_key, task_form_key, task_template_type from bpm_execute_node_form
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectBpmExecuteNodeFormList" parameterType="com.ruoyi.execution.produce.dispersed.entity.BpmExecuteNodeForm" resultMap="BpmExecuteNodeFormResult">
|
|
|
+ <include refid="selectBpmExecuteNodeFormVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="taskNFKey != null and taskNFKey != ''"> and task_n_f_key = #{taskNFKey}</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="taskFormKey != null and taskFormKey != ''"> and task_form_key = #{taskFormKey}</if>
|
|
|
+ <if test="taskTemplateType != null and taskTemplateType != ''"> and task_template_type = #{taskTemplateType}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectBpmExecuteNodeFormById" parameterType="Long" resultMap="BpmExecuteNodeFormResult">
|
|
|
+ <include refid="selectBpmExecuteNodeFormVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertBpmExecuteNodeForm" parameterType="com.ruoyi.execution.produce.dispersed.entity.BpmExecuteNodeForm" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into bpm_execute_node_form
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="taskNFKey != null">task_n_f_key,</if>
|
|
|
+ <if test="taskProcessKey != null">task_process_key,</if>
|
|
|
+ <if test="taskNodeKey != null">task_node_key,</if>
|
|
|
+ <if test="taskFormKey != null">task_form_key,</if>
|
|
|
+ <if test="taskTemplateType != null">task_template_type,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="taskNFKey != null">#{taskNFKey},</if>
|
|
|
+ <if test="taskProcessKey != null">#{taskProcessKey},</if>
|
|
|
+ <if test="taskNodeKey != null">#{taskNodeKey},</if>
|
|
|
+ <if test="taskFormKey != null">#{taskFormKey},</if>
|
|
|
+ <if test="taskTemplateType != null">#{taskTemplateType},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateBpmExecuteNodeForm" parameterType="com.ruoyi.execution.produce.dispersed.entity.BpmExecuteNodeForm">
|
|
|
+ update bpm_execute_node_form
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="taskNFKey != null">task_n_f_key = #{taskNFKey},</if>
|
|
|
+ <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
+ <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
+ <if test="taskFormKey != null">task_form_key = #{taskFormKey},</if>
|
|
|
+ <if test="taskTemplateType != null">task_template_type = #{taskTemplateType},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteBpmExecuteNodeFormById" parameterType="Long">
|
|
|
+ delete from bpm_execute_node_form where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteBpmExecuteNodeFormByIds" parameterType="String">
|
|
|
+ delete from bpm_execute_node_form where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|