|
@@ -7,6 +7,7 @@
|
|
<resultMap type="com.ruoyi.system.entity.BpmProcessConfiguration" id="BpmProcessConfigurationResult">
|
|
<resultMap type="com.ruoyi.system.entity.BpmProcessConfiguration" id="BpmProcessConfigurationResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="nodeKey" column="node_key" />
|
|
<result property="nodeKey" column="node_key" />
|
|
|
|
+ <result property="nodeName" column="node_name"/>
|
|
<result property="nodeFormKey" column="node_form_key" />
|
|
<result property="nodeFormKey" column="node_form_key" />
|
|
<result property="nodeProcessKey" column="node_process_key" />
|
|
<result property="nodeProcessKey" column="node_process_key" />
|
|
<result property="nodeType" column="node_type" />
|
|
<result property="nodeType" column="node_type" />
|
|
@@ -25,13 +26,14 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBpmProcessConfigurationVo">
|
|
<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
|
|
|
|
|
|
+ select id, node_key, , node_name,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>
|
|
</sql>
|
|
|
|
|
|
<select id="selectBpmProcessConfigurationList" parameterType="com.ruoyi.system.entity.BpmProcessConfiguration" resultMap="BpmProcessConfigurationResult">
|
|
<select id="selectBpmProcessConfigurationList" parameterType="com.ruoyi.system.entity.BpmProcessConfiguration" resultMap="BpmProcessConfigurationResult">
|
|
<include refid="selectBpmProcessConfigurationVo"/>
|
|
<include refid="selectBpmProcessConfigurationVo"/>
|
|
- <where>
|
|
|
|
|
|
+ where del_flag = '0'
|
|
<if test="nodeKey != null and nodeKey != ''"> and node_key = #{nodeKey}</if>
|
|
<if test="nodeKey != null and nodeKey != ''"> and node_key = #{nodeKey}</if>
|
|
|
|
+ <if test="nodeName != null"> and node_name = #{nodeName}</if>
|
|
<if test="nodeFormKey != null "> and node_form_key = #{nodeFormKey}</if>
|
|
<if test="nodeFormKey != null "> and node_form_key = #{nodeFormKey}</if>
|
|
<if test="nodeProcessKey != null "> and node_process_key = #{nodeProcessKey}</if>
|
|
<if test="nodeProcessKey != null "> and node_process_key = #{nodeProcessKey}</if>
|
|
<if test="nodeType != null and nodeType != ''"> and node_type = #{nodeType}</if>
|
|
<if test="nodeType != null and nodeType != ''"> and node_type = #{nodeType}</if>
|
|
@@ -41,7 +43,6 @@
|
|
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
|
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
|
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
|
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
|
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
|
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
|
- </where>
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectBpmProcessConfigurationById" parameterType="Long" resultMap="BpmProcessConfigurationResult">
|
|
<select id="selectBpmProcessConfigurationById" parameterType="Long" resultMap="BpmProcessConfigurationResult">
|
|
@@ -61,7 +62,7 @@
|
|
(#{item.nodeKey}, #{item.nodeFormKey}, #{item.nodeProcessKey}, #{item.nodeType}, #{item.nodeBefor},
|
|
(#{item.nodeKey}, #{item.nodeFormKey}, #{item.nodeProcessKey}, #{item.nodeType}, #{item.nodeBefor},
|
|
#{item.nodeAfter},
|
|
#{item.nodeAfter},
|
|
#{item.nodeRolePermission}, #{item.spare1}, #{item.spare2}, #{item.spare3}, '0', #{item.createBy},
|
|
#{item.nodeRolePermission}, #{item.spare1}, #{item.spare2}, #{item.spare3}, '0', #{item.createBy},
|
|
- NOW(),#{item.remark})
|
|
|
|
|
|
+ #{item.createTime},#{item.remark})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -83,19 +84,20 @@
|
|
<if test="item.createBy != null">create_by = #{item.createBy},</if>
|
|
<if test="item.createBy != null">create_by = #{item.createBy},</if>
|
|
<if test="item.createTime != null">create_time = #{item.createTime},</if>
|
|
<if test="item.createTime != null">create_time = #{item.createTime},</if>
|
|
<if test="item.updateBy != null">update_by = #{item.updateBy},</if>
|
|
<if test="item.updateBy != null">update_by = #{item.updateBy},</if>
|
|
|
|
+ <if test="item.updateTime != null">update_time = #{item.updateTime},</if>
|
|
<if test="item.remark != null">remark = #{item.remark},</if>
|
|
<if test="item.remark != null">remark = #{item.remark},</if>
|
|
- update_time = NOW()
|
|
|
|
|
|
+
|
|
</trim>
|
|
</trim>
|
|
where id = #{item.id}
|
|
where id = #{item.id}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<delete id="deleteBpmProcessConfigurationById" parameterType="Long">
|
|
<delete id="deleteBpmProcessConfigurationById" parameterType="Long">
|
|
- delete from bpm_process_configuration where id = #{id}
|
|
|
|
|
|
+ update bpm_process_configuration set del_flag = '2' where id = #{id}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteBpmProcessConfigurationByIds" parameterType="String">
|
|
<delete id="deleteBpmProcessConfigurationByIds" parameterType="String">
|
|
- delete from bpm_process_configuration where id in
|
|
|
|
|
|
+ update bpm_process_configuration set del_flag = '2' where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|