|
@@ -0,0 +1,103 @@
|
|
|
+<?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.system.mapper.BpmProcessConfigurationMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.ruoyi.system.entity.BpmProcessConfiguration" id="BpmProcessConfigurationResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="nodeKey" column="node_key" />
|
|
|
+ <result property="nodeFormKey" column="node_form_key" />
|
|
|
+ <result property="nodeProcessKey" column="node_process_key" />
|
|
|
+ <result property="nodeType" column="node_type" />
|
|
|
+ <result property="nodeBefor" column="node_befor" />
|
|
|
+ <result property="nodeAfter" column="node_after" />
|
|
|
+ <result property="nodeRolePermission" column="node_role_permission" />
|
|
|
+ <result property="spare1" column="spare1" />
|
|
|
+ <result property="spare2" column="spare2" />
|
|
|
+ <result property="spare3" column="spare3" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectBpmProcessConfigurationVo">
|
|
|
+ select id, node_key, node_form_key, node_process_key, node_type, node_befor, node_after, node_role_permission, spare1, spare2, spare3, del_flag, create_by, create_time, update_by, update_time, remark from bpm_process_configuration
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectBpmProcessConfigurationList" parameterType="com.ruoyi.system.entity.BpmProcessConfiguration" resultMap="BpmProcessConfigurationResult">
|
|
|
+ <include refid="selectBpmProcessConfigurationVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="nodeKey != null and nodeKey != ''"> and node_key = #{nodeKey}</if>
|
|
|
+ <if test="nodeFormKey != null "> and node_form_key = #{nodeFormKey}</if>
|
|
|
+ <if test="nodeProcessKey != null "> and node_process_key = #{nodeProcessKey}</if>
|
|
|
+ <if test="nodeType != null and nodeType != ''"> and node_type = #{nodeType}</if>
|
|
|
+ <if test="nodeBefor != null and nodeBefor != ''"> and node_befor = #{nodeBefor}</if>
|
|
|
+ <if test="nodeAfter != null and nodeAfter != ''"> and node_after = #{nodeAfter}</if>
|
|
|
+ <if test="nodeRolePermission != null and nodeRolePermission != ''"> and node_role_permission = #{nodeRolePermission}</if>
|
|
|
+ <if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
|
|
+ <if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
|
|
+ <if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectBpmProcessConfigurationById" parameterType="Long" resultMap="BpmProcessConfigurationResult">
|
|
|
+ <include refid="selectBpmProcessConfigurationVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertBpmProcessConfiguration" parameterType="java.util.List">
|
|
|
+ insert into bpm_process_configuration(
|
|
|
+ node_key, node_form_key, node_process_key,
|
|
|
+ node_type, node_befor, node_after,
|
|
|
+ node_role_permission, spare1, spare2,
|
|
|
+ spare3, del_flag, create_by,
|
|
|
+ create_time, remark )
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="item" index="index" separator=",">
|
|
|
+ (#{item.nodeKey}, #{item.nodeFormKey}, #{item.nodeProcessKey}, #{item.nodeType}, #{item.nodeBefor},
|
|
|
+ #{item.nodeAfter},
|
|
|
+ #{item.nodeRolePermission}, #{item.spare1}, #{item.spare2}, #{item.spare3}, '0', #{item.createBy},
|
|
|
+ NOW(),#{item.remark})
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateBpmProcessConfiguration" parameterType="java.util.List">
|
|
|
+ <foreach collection="list" item="item" index="index" separator=";">
|
|
|
+ update bpm_process_configuration
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="item.nodeKey != null">node_key = #{item.nodeKey},</if>
|
|
|
+ <if test="item.nodeFormKey != null">node_form_key = #{item.nodeFormKey},</if>
|
|
|
+ <if test="item.nodeProcessKey != null">node_process_key = #{item.nodeProcessKey},</if>
|
|
|
+ <if test="item.nodeType != null">node_type = #{item.nodeType},</if>
|
|
|
+ <if test="item.nodeBefor != null">node_befor = #{item.nodeBefor},</if>
|
|
|
+ <if test="item.nodeAfter != null">node_after = #{item.nodeAfter},</if>
|
|
|
+ <if test="item.nodeRolePermission != null">node_role_permission = #{item.nodeRolePermission},</if>
|
|
|
+ <if test="item.spare1 != null">spare1 = #{item.spare1},</if>
|
|
|
+ <if test="item.spare2 != null">spare2 = #{item.spare2},</if>
|
|
|
+ <if test="item.spare3 != null">spare3 = #{item.spare3},</if>
|
|
|
+ <if test="item.delFlag != null">del_flag = #{item.delFlag},</if>
|
|
|
+ <if test="item.createBy != null">create_by = #{item.createBy},</if>
|
|
|
+ <if test="item.createTime != null">create_time = #{item.createTime},</if>
|
|
|
+ <if test="item.updateBy != null">update_by = #{item.updateBy},</if>
|
|
|
+ <if test="item.remark != null">remark = #{item.remark},</if>
|
|
|
+ update_time = NOW()
|
|
|
+ </trim>
|
|
|
+ where id = #{item.id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteBpmProcessConfigurationById" parameterType="Long">
|
|
|
+ delete from bpm_process_configuration where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteBpmProcessConfigurationByIds" parameterType="String">
|
|
|
+ delete from bpm_process_configuration where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|