|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.zkqy.system.mapper.SysBpmNodeScriptMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="com.zkqy.system.domain.SysBpmNodeScript" id="SysBpmNodeScriptResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="scriptKey" column="script_key" />
|
|
@@ -21,10 +21,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="scriptState" column="script_state" />
|
|
|
<result property="tenantId" column="tenant_id" />
|
|
|
+ <result property="pageUpload" column="page_upload" />
|
|
|
+
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysBpmNodeScriptVo">
|
|
|
- select id, script_key, script_function_name, script_name, script_function_code, script_type, script_description, industry_type,table_name, del_flag, create_by, create_time, update_by, update_time,tenant_id,script_state,tenant_id from sys_bpm_node_script
|
|
|
+ select id, script_key, script_function_name, script_name, script_function_code, script_type, script_description, industry_type,
|
|
|
+ table_name, del_flag, create_by, create_time, update_by, update_time,tenant_id,script_state,tenant_id,page_upload from sys_bpm_node_script
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysBpmNodeScriptList" parameterType="com.zkqy.system.domain.SysBpmNodeScript" resultMap="SysBpmNodeScriptResult">
|
|
@@ -41,12 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectSysBpmNodeScriptById" parameterType="Long" resultMap="SysBpmNodeScriptResult">
|
|
|
<include refid="selectSysBpmNodeScriptVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertSysBpmNodeScript" parameterType="com.zkqy.system.domain.SysBpmNodeScript" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into sys_bpm_node_script
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -94,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
<if test="scriptState != null">script_state = #{scriptState},</if>
|
|
|
+ <if test="pageUpload!=null and pageUpload!=''">page_upload=#{pageUpload}</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -122,6 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
+ <if test="pageUpload!=null and pageUpload!='' ">page_upload=#{pageUpload}</if>
|
|
|
</trim>
|
|
|
where script_key = #{scriptKey}
|
|
|
</update>
|
|
@@ -161,4 +166,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|