|
@@ -0,0 +1,131 @@
|
|
|
+<?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.zkqy.system.mapper.SysBusinessFlowScriptMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.zkqy.system.domain.SysBusinessFlowScript" id="SysBusinessFlowScriptResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="businessKey" column="business_key" />
|
|
|
+ <result property="path" column="path" />
|
|
|
+ <result property="methodName" column="method_name" />
|
|
|
+ <result property="tenantId" column="tenant_id" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ <result property="createById" column="create_by_id" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateById" column="update_by_id" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="dataApprovalStatus" column="data_approval_status" />
|
|
|
+ <result property="processKey" column="process_key" />
|
|
|
+ <result property="taskProcessKey" column="task_process_key" />
|
|
|
+ <result property="taskNodeKey" column="task_node_key" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectSysBusinessFlowScriptVo">
|
|
|
+ select id, business_key, path, method_name, tenant_id, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, data_approval_status, process_key, task_process_key, task_node_key from sys_business_flow_script
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectSysBusinessFlowScriptList" parameterType="SysBusinessFlowScript" resultMap="SysBusinessFlowScriptResult">
|
|
|
+ <include refid="selectSysBusinessFlowScriptVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="businessKey != null and businessKey != ''"> and business_key = #{businessKey}</if>
|
|
|
+ <if test="path != null and path != ''"> and path = #{path}</if>
|
|
|
+ <if test="methodName != null and methodName != ''"> and method_name like concat('%', #{methodName}, '%')</if>
|
|
|
+ <if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
|
|
+ <if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
|
|
+ <if test="createById != null "> and create_by_id = #{createById}</if>
|
|
|
+ <if test="updateById != null "> and update_by_id = #{updateById}</if>
|
|
|
+ <if test="dataApprovalStatus != null and dataApprovalStatus != ''"> and data_approval_status = #{dataApprovalStatus}</if>
|
|
|
+ <if test="processKey != null and processKey != ''"> and process_key = #{processKey}</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>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectSysBusinessFlowScriptById" parameterType="Long" resultMap="SysBusinessFlowScriptResult">
|
|
|
+ <include refid="selectSysBusinessFlowScriptVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+ <select id="selectSysBusinessFlowScriptByBusinessKey"
|
|
|
+ resultType="com.zkqy.system.domain.SysBusinessFlowScript">
|
|
|
+ <include refid="selectSysBusinessFlowScriptVo"/>
|
|
|
+ where business_key = #{businessKey}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertSysBusinessFlowScript" parameterType="SysBusinessFlowScript" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into sys_business_flow_script
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="businessKey != null">business_key,</if>
|
|
|
+ <if test="path != null">path,</if>
|
|
|
+ <if test="methodName != null">method_name,</if>
|
|
|
+ <if test="tenantId != null">tenant_id,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ <if test="createById != null">create_by_id,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateById != null">update_by_id,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="dataApprovalStatus != null">data_approval_status,</if>
|
|
|
+ <if test="processKey != null">process_key,</if>
|
|
|
+ <if test="taskProcessKey != null">task_process_key,</if>
|
|
|
+ <if test="taskNodeKey != null">task_node_key,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="businessKey != null">#{businessKey},</if>
|
|
|
+ <if test="path != null">#{path},</if>
|
|
|
+ <if test="methodName != null">#{methodName},</if>
|
|
|
+ <if test="tenantId != null">#{tenantId},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="createById != null">#{createById},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateById != null">#{updateById},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="dataApprovalStatus != null">#{dataApprovalStatus},</if>
|
|
|
+ <if test="processKey != null">#{processKey},</if>
|
|
|
+ <if test="taskProcessKey != null">#{taskProcessKey},</if>
|
|
|
+ <if test="taskNodeKey != null">#{taskNodeKey},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateSysBusinessFlowScript" parameterType="SysBusinessFlowScript">
|
|
|
+ update sys_business_flow_script
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="businessKey != null">business_key = #{businessKey},</if>
|
|
|
+ <if test="path != null">path = #{path},</if>
|
|
|
+ <if test="methodName != null">method_name = #{methodName},</if>
|
|
|
+ <if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="createById != null">create_by_id = #{createById},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateById != null">update_by_id = #{updateById},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="dataApprovalStatus != null">data_approval_status = #{dataApprovalStatus},</if>
|
|
|
+ <if test="processKey != null">process_key = #{processKey},</if>
|
|
|
+ <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
+ <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteSysBusinessFlowScriptById" parameterType="Long">
|
|
|
+ delete from sys_business_flow_script where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteSysBusinessFlowScriptByIds" parameterType="String">
|
|
|
+ delete from sys_business_flow_script where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|