Commit eb0b51a6 by huangfusuper

节点增加扩展配置项,Mapper及SQL修改

parent 64e3a3b0
package com.byit.model; package com.byit.model;
import com.byit.dto.expand.ExtendedConfiguration;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -225,6 +226,13 @@ public class JobTask implements Serializable { ...@@ -225,6 +226,13 @@ public class JobTask implements Serializable {
private Integer scheduleType; private Integer scheduleType;
/** /**
* 扩展配置
* @see ExtendedConfiguration
*/
@ApiModelProperty("节点的扩展配置")
private String extendedConfiguration;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
package com.byit.model; package com.byit.model;
import com.byit.dto.expand.ExtendedConfiguration;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -210,6 +211,13 @@ public class JobTaskRunLog implements Serializable { ...@@ -210,6 +211,13 @@ public class JobTaskRunLog implements Serializable {
@ApiModelProperty("脚本路径") @ApiModelProperty("脚本路径")
private String scriptUrls; private String scriptUrls;
/**
* 扩展配置
* @see ExtendedConfiguration
*/
@ApiModelProperty("节点的扩展配置")
private String extendedConfiguration;
/** /**
* *
*/ */
......
package com.byit.model; package com.byit.model;
import com.byit.dto.expand.ExtendedConfiguration;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -219,6 +220,13 @@ public class JobTaskSchedule implements Serializable { ...@@ -219,6 +220,13 @@ public class JobTaskSchedule implements Serializable {
private Integer scheduleType; private Integer scheduleType;
/** /**
* 扩展配置
* @see ExtendedConfiguration
*/
@ApiModelProperty("节点的扩展配置")
private String extendedConfiguration;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
package com.byit.model; package com.byit.model;
import com.byit.dto.expand.ExtendedConfiguration;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -211,6 +212,14 @@ public class Node implements Serializable { ...@@ -211,6 +212,14 @@ public class Node implements Serializable {
@ApiModelProperty("是否上级运行成功时运行(0 是 1 否)") @ApiModelProperty("是否上级运行成功时运行(0 是 1 否)")
private String superSuccessRun; private String superSuccessRun;
/**
* 扩展配置
* @see ExtendedConfiguration
*/
@ApiModelProperty("节点的扩展配置")
private String extendedConfiguration;
/** /**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
package com.byit.model; package com.byit.model;
import com.byit.dto.expand.ExtendedConfiguration;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -224,6 +225,13 @@ public class NodeVersion implements Serializable { ...@@ -224,6 +225,13 @@ public class NodeVersion implements Serializable {
private String superSuccessRun; private String superSuccessRun;
/** /**
* 扩展配置
* @see ExtendedConfiguration
*/
@ApiModelProperty("节点的扩展配置")
private String extendedConfiguration;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
package com.byit.model; package com.byit.model;
import com.byit.dto.expand.ExtendedConfiguration;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
...@@ -209,6 +210,13 @@ public class WaitingTask implements Serializable { ...@@ -209,6 +210,13 @@ public class WaitingTask implements Serializable {
private String runSource; private String runSource;
/** /**
* 扩展配置
* @see ExtendedConfiguration
*/
@ApiModelProperty("节点的扩展配置")
private String extendedConfiguration;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<result column="node_depend" jdbcType="VARCHAR" property="nodeDepend"/> <result column="node_depend" jdbcType="VARCHAR" property="nodeDepend"/>
<result column="operator" jdbcType="VARCHAR" property="operator"/> <result column="operator" jdbcType="VARCHAR" property="operator"/>
<result column="schedule_type" jdbcType="INTEGER" property="scheduleType"/> <result column="schedule_type" jdbcType="INTEGER" property="scheduleType"/>
<result column="extended_configuration" jdbcType="VARCHAR" property="extendedConfiguration"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTask"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTask">
<!-- generated @mbg.generated date: 2019-12-25 --> <!-- generated @mbg.generated date: 2019-12-25 -->
...@@ -48,7 +49,7 @@ ...@@ -48,7 +49,7 @@
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual, job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param, plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name, run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_command,flow_name, super_success_run, re_run_id,log_id, node_depend, operator, schedule_type run_command,flow_name, super_success_run, re_run_id,log_id, node_depend, operator, schedule_type, extended_configuration
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
run_source run_source
...@@ -200,6 +201,11 @@ ...@@ -200,6 +201,11 @@
<if test="scheduleType != null"> <if test="scheduleType != null">
schedule_type, schedule_type,
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -307,6 +313,10 @@ ...@@ -307,6 +313,10 @@
<if test="scheduleType != null"> <if test="scheduleType != null">
#{scheduleType,jdbcType=INTEGER}, #{scheduleType,jdbcType=INTEGER},
</if> </if>
<if test="extendedConfiguration != null">
#{extendedConfiguration,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
...@@ -316,7 +326,7 @@ ...@@ -316,7 +326,7 @@
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual, job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param, plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name, run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
run_command,run_source,flow_name,super_success_run, re_run_id ,log_id, node_depend, operator, schedule_type run_command,run_source,flow_name,super_success_run, re_run_id ,log_id, node_depend, operator, schedule_type, extended_configuration
) values ) values
<foreach collection="jobTasks" item="jobTask" separator =","> <foreach collection="jobTasks" item="jobTask" separator =",">
( (
...@@ -329,7 +339,8 @@ ...@@ -329,7 +339,8 @@
#{jobTask.sourcePrincipal,jdbcType=VARCHAR},#{jobTask.triggerTime,jdbcType=BIGINT},#{jobTask.triggerStatus,jdbcType=CHAR}, #{jobTask.sourcePrincipal,jdbcType=VARCHAR},#{jobTask.triggerTime,jdbcType=BIGINT},#{jobTask.triggerStatus,jdbcType=CHAR},
#{jobTask.versionName,jdbcType=VARCHAR},#{jobTask.runCommand,jdbcType=VARCHAR},#{jobTask.runSource,jdbcType=LONGVARCHAR}, #{jobTask.versionName,jdbcType=VARCHAR},#{jobTask.runCommand,jdbcType=VARCHAR},#{jobTask.runSource,jdbcType=LONGVARCHAR},
#{jobTask.flowName,jdbcType=VARCHAR},#{jobTask.superSuccessRun,jdbcType=CHAR},#{jobTask.reRunId,jdbcType=VARCHAR}, #{jobTask.flowName,jdbcType=VARCHAR},#{jobTask.superSuccessRun,jdbcType=CHAR},#{jobTask.reRunId,jdbcType=VARCHAR},
#{jobTask.logId,jdbcType=INTEGER},#{jobTask.nodeDepend,jdbcType=VARCHAR},#{jobTask.operator,jdbcType=VARCHAR}, #{jobTask.scheduleType,jdbcType=INTEGER} #{jobTask.logId,jdbcType=INTEGER},#{jobTask.nodeDepend,jdbcType=VARCHAR},#{jobTask.operator,jdbcType=VARCHAR},
#{jobTask.scheduleType,jdbcType=INTEGER}, #{extendedConfiguration,jdbcType=VARCHAR}
) )
</foreach> </foreach>
</insert> </insert>
...@@ -440,6 +451,9 @@ ...@@ -440,6 +451,9 @@
<if test="scheduleType != null"> <if test="scheduleType != null">
schedule_type = #{scheduleType,jdbcType=INTEGER}, schedule_type = #{scheduleType,jdbcType=INTEGER},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<result column="operator" jdbcType="VARCHAR" property="operator"/> <result column="operator" jdbcType="VARCHAR" property="operator"/>
<result column="schedule_type" jdbcType="INTEGER" property="scheduleType"/> <result column="schedule_type" jdbcType="INTEGER" property="scheduleType"/>
<result column="script_urls" jdbcType="VARCHAR" property="scriptUrls"/> <result column="script_urls" jdbcType="VARCHAR" property="scriptUrls"/>
<result column="extended_configuration" jdbcType="VARCHAR" property="extendedConfiguration"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTaskRunLogWithBLOBs"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTaskRunLogWithBLOBs">
<result column="run_msg" jdbcType="LONGVARCHAR" property="runMsg" /> <result column="run_msg" jdbcType="LONGVARCHAR" property="runMsg" />
...@@ -43,7 +44,8 @@ ...@@ -43,7 +44,8 @@
log_id, failed_remaining_count, version_name, flow_id, flow_name, job_group_id, handler_name, log_id, failed_remaining_count, version_name, flow_id, flow_name, job_group_id, handler_name,
node_name, is_virtual, run_code, run_params, start_time, run_type, trigger_code, node_name, is_virtual, run_code, run_params, start_time, run_type, trigger_code,
trigger_time, job_group_ip, map_flow_id, run_command, end_time, node_id,job_type,alert_end,run_id,re_run_id trigger_time, job_group_ip, map_flow_id, run_command, end_time, node_id,job_type,alert_end,run_id,re_run_id
,log_file_name, super_success_run, run_count, log_remotely_path, node_depend, operator, schedule_type,script_urls ,log_file_name, super_success_run, run_count, log_remotely_path, node_depend, operator,
schedule_type,script_urls, extended_configuration
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
run_msg, trigger_msg run_msg, trigger_msg
...@@ -358,6 +360,10 @@ ...@@ -358,6 +360,10 @@
<if test="scriptUrls != null"> <if test="scriptUrls != null">
script_urls, script_urls,
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="logId != null"> <if test="logId != null">
...@@ -462,6 +468,10 @@ ...@@ -462,6 +468,10 @@
<if test="scriptUrls != null"> <if test="scriptUrls != null">
#{scriptUrls,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR},
</if> </if>
<if test="extendedConfiguration != null">
#{extendedConfiguration,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateJobTaskRunLogWithBLOBs" parameterType="com.byit.model.JobTaskRunLogWithBLOBs"> <update id="updateJobTaskRunLogWithBLOBs" parameterType="com.byit.model.JobTaskRunLogWithBLOBs">
...@@ -566,6 +576,9 @@ ...@@ -566,6 +576,9 @@
<if test="scriptUrls != null"> <if test="scriptUrls != null">
script_urls = #{scriptUrls,jdbcType=VARCHAR}, script_urls = #{scriptUrls,jdbcType=VARCHAR},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</update> </update>
...@@ -665,6 +678,9 @@ ...@@ -665,6 +678,9 @@
<if test="scriptUrls != null"> <if test="scriptUrls != null">
script_urls = #{scriptUrls,jdbcType=VARCHAR}, script_urls = #{scriptUrls,jdbcType=VARCHAR},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</update> </update>
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<result column="node_depend" jdbcType="VARCHAR" property="nodeDepend"/> <result column="node_depend" jdbcType="VARCHAR" property="nodeDepend"/>
<result column="operator" jdbcType="VARCHAR" property="operator"/> <result column="operator" jdbcType="VARCHAR" property="operator"/>
<result column="schedule_type" jdbcType="INTEGER" property="scheduleType"/> <result column="schedule_type" jdbcType="INTEGER" property="scheduleType"/>
<result column="extended_configuration" jdbcType="VARCHAR" property="extendedConfiguration"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTaskSchedule"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTaskSchedule">
...@@ -48,7 +49,8 @@ ...@@ -48,7 +49,8 @@
job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual, job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param, plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name, run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
log_id, run_command,flow_name, super_success_run, re_run_id, node_depend, operator, schedule_type log_id, run_command,flow_name, super_success_run, re_run_id, node_depend, operator,
schedule_type, extended_configuration
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
run_source run_source
...@@ -186,6 +188,10 @@ ...@@ -186,6 +188,10 @@
<if test="scheduleType != null"> <if test="scheduleType != null">
schedule_type, schedule_type,
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -293,6 +299,10 @@ ...@@ -293,6 +299,10 @@
<if test="scheduleType != null"> <if test="scheduleType != null">
#{scheduleType,jdbcType=INTEGER}, #{scheduleType,jdbcType=INTEGER},
</if> </if>
<if test="extendedConfiguration != null">
#{extendedConfiguration,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
...@@ -307,7 +317,7 @@ ...@@ -307,7 +317,7 @@
script_urls, source_principal, trigger_time, script_urls, source_principal, trigger_time,
trigger_status, version_name, log_id, trigger_status, version_name, log_id,
run_command, run_source,flow_name, super_success_run, re_run_id, run_command, run_source,flow_name, super_success_run, re_run_id,
node_depend, operator, schedule_type node_depend, operator, schedule_type, extended_configuration
) )
values values
<foreach collection="jobTaskSchedules" item="jobTaskSchedule" separator=","> <foreach collection="jobTaskSchedules" item="jobTaskSchedule" separator=",">
...@@ -333,7 +343,8 @@ ...@@ -333,7 +343,8 @@
#{jobTaskSchedule.runCommand,jdbcType=VARCHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR}, #{jobTaskSchedule.runCommand,jdbcType=VARCHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},
#{jobTaskSchedule.flowName,jdbcType=VARCHAR}, #{jobTaskSchedule.superSuccessRun,jdbcType=CHAR}, #{jobTaskSchedule.flowName,jdbcType=VARCHAR}, #{jobTaskSchedule.superSuccessRun,jdbcType=CHAR},
#{jobTaskSchedule.reRunId,jdbcType=VARCHAR}, #{jobTaskSchedule.nodeDepend,jdbcType=VARCHAR}, #{jobTaskSchedule.reRunId,jdbcType=VARCHAR}, #{jobTaskSchedule.nodeDepend,jdbcType=VARCHAR},
#{jobTaskSchedule.operator,jdbcType=VARCHAR}, #{jobTaskSchedule.scheduleType,jdbcType=INTEGER} #{jobTaskSchedule.operator,jdbcType=VARCHAR}, #{jobTaskSchedule.scheduleType,jdbcType=INTEGER},
#{extendedConfiguration,jdbcType=VARCHAR}
) )
</foreach> </foreach>
</insert> </insert>
...@@ -444,6 +455,9 @@ ...@@ -444,6 +455,9 @@
<if test="scheduleType != null"> <if test="scheduleType != null">
schedule_type = #{scheduleType,jdbcType=INTEGER}, schedule_type = #{scheduleType,jdbcType=INTEGER},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<result column="on_fork" jdbcType="CHAR" property="onFork" /> <result column="on_fork" jdbcType="CHAR" property="onFork" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" /> <result column="run_command" jdbcType="VARCHAR" property="runCommand" />
<result column="super_success_run" jdbcType="CHAR" property="superSuccessRun"/> <result column="super_success_run" jdbcType="CHAR" property="superSuccessRun"/>
<result column="extended_configuration" jdbcType="VARCHAR" property="extendedConfiguration"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.Node"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-31 --> <!-- generated @mbg.generated date: 2019-12-31 -->
...@@ -46,7 +47,8 @@ ...@@ -46,7 +47,8 @@
job_type, handler_name, node_cron, node_desc, node_name, map_flow_id, node_timeout, job_type, handler_name, node_cron, node_desc, node_name, map_flow_id, node_timeout,
is_virtual, plugin_urls, priority, remaining_count, repeat_count, failed_retry_interval, is_virtual, plugin_urls, priority, remaining_count, repeat_count, failed_retry_interval,
routing_strategy, run_param, run_source_desc, script_urls, source_principal, source_update_time, routing_strategy, run_param, run_source_desc, script_urls, source_principal, source_update_time,
trigger_next_time, author, add_time, version_name, on_fork, run_command, super_success_run trigger_next_time, author, add_time, version_name, on_fork, run_command,
super_success_run, extended_configuration
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
...@@ -279,6 +281,9 @@ ...@@ -279,6 +281,9 @@
<if test="superSuccessRun != null"> <if test="superSuccessRun != null">
super_success_run, super_success_run,
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nodeId != null"> <if test="nodeId != null">
...@@ -380,6 +385,9 @@ ...@@ -380,6 +385,9 @@
<if test="superSuccessRun != null"> <if test="superSuccessRun != null">
#{superSuccessRun,jdbcType=CHAR}, #{superSuccessRun,jdbcType=CHAR},
</if> </if>
<if test="extendedConfiguration != null">
#{extendedConfiguration,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
...@@ -492,6 +500,10 @@ ...@@ -492,6 +500,10 @@
<if test="superSuccessRun != null"> <if test="superSuccessRun != null">
super_success_run = #{superSuccessRun,jdbcType=CHAR}, super_success_run = #{superSuccessRun,jdbcType=CHAR},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where node_id = #{nodeId,jdbcType=INTEGER} where node_id = #{nodeId,jdbcType=INTEGER}
</update> </update>
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<result column="on_fork" jdbcType="CHAR" property="onFork" /> <result column="on_fork" jdbcType="CHAR" property="onFork" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" /> <result column="run_command" jdbcType="VARCHAR" property="runCommand" />
<result column="super_success_run" jdbcType="CHAR" property="superSuccessRun"/> <result column="super_success_run" jdbcType="CHAR" property="superSuccessRun"/>
<result column="extended_configuration" jdbcType="VARCHAR" property="extendedConfiguration"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.NodeVersion"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-31 --> <!-- generated @mbg.generated date: 2019-12-31 -->
...@@ -49,7 +50,7 @@ ...@@ -49,7 +50,7 @@
map_flow_id, node_timeout, is_virtual, plugin_urls, priority, remove_mark, repeat_count, map_flow_id, node_timeout, is_virtual, plugin_urls, priority, remove_mark, repeat_count,
failed_retry_interval, routing_strategy, run_param, run_source_desc, script_urls, failed_retry_interval, routing_strategy, run_param, run_source_desc, script_urls,
source_principal, source_update_time, version_mark, author, add_time, version_name, source_principal, source_update_time, version_mark, author, add_time, version_name,
on_fork, run_command, super_success_run on_fork, run_command, super_success_run, extended_configuration
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2019-12-31 --> <!-- generated @mbg.generated date: 2019-12-31 -->
...@@ -211,6 +212,9 @@ ...@@ -211,6 +212,9 @@
<if test="superSuccessRun != null"> <if test="superSuccessRun != null">
super_success_run, super_success_run,
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nodeVersionId != null"> <if test="nodeVersionId != null">
...@@ -318,6 +322,9 @@ ...@@ -318,6 +322,9 @@
<if test="superSuccessRun != null"> <if test="superSuccessRun != null">
#{superSuccessRun,jdbcType=CHAR}, #{superSuccessRun,jdbcType=CHAR},
</if> </if>
<if test="extendedConfiguration != null">
#{extendedConfiguration,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
...@@ -433,6 +440,10 @@ ...@@ -433,6 +440,10 @@
<if test="superSuccessRun != null"> <if test="superSuccessRun != null">
super_success_run = #{superSuccessRun,jdbcType=CHAR}, super_success_run = #{superSuccessRun,jdbcType=CHAR},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where node_version_id = #{nodeVersionId,jdbcType=INTEGER} where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</update> </update>
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
<result column="node_depend" jdbcType="VARCHAR" property="nodeDepend" /> <result column="node_depend" jdbcType="VARCHAR" property="nodeDepend" />
<result column="operator" jdbcType="VARCHAR" property="operator" /> <result column="operator" jdbcType="VARCHAR" property="operator" />
<result column="schedule_type" jdbcType="INTEGER" property="scheduleType" /> <result column="schedule_type" jdbcType="INTEGER" property="scheduleType" />
<result column="extended_configuration" jdbcType="VARCHAR" property="extendedConfiguration"/>
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.WaitingTask"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.WaitingTask">
<!-- generated @mbg.generated date: 2020-03-12 --> <!-- generated @mbg.generated date: 2020-03-12 -->
...@@ -46,7 +48,8 @@ ...@@ -46,7 +48,8 @@
flow_id, version_name, plugin_token, gateway_token, map_flow_id, is_virtual, plugin_urls, flow_id, version_name, plugin_token, gateway_token, map_flow_id, is_virtual, plugin_urls,
priority, failed_retry_count, failed_retry_interval, block_strategy, routing_strategy, priority, failed_retry_count, failed_retry_interval, block_strategy, routing_strategy,
run_param, run_source_desc, run_command, script_urls, source_principal, trigger_time, run_param, run_source_desc, run_command, script_urls, source_principal, trigger_time,
flow_name, super_success_run, re_run_id, node_depend, `operator`, schedule_type flow_name, super_success_run, re_run_id, node_depend, `operator`,
schedule_type, extended_configuration
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2020-03-12 --> <!-- generated @mbg.generated date: 2020-03-12 -->
...@@ -201,6 +204,9 @@ ...@@ -201,6 +204,9 @@
<if test="runSource != null"> <if test="runSource != null">
run_source, run_source,
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -302,6 +308,9 @@ ...@@ -302,6 +308,9 @@
<if test="runSource != null"> <if test="runSource != null">
#{runSource,jdbcType=LONGVARCHAR}, #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
<if test="extendedConfiguration != null">
#{extendedConfiguration,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.WaitingTask"> <update id="updateByIdSelective" parameterType="com.byit.model.WaitingTask">
...@@ -404,6 +413,9 @@ ...@@ -404,6 +413,9 @@
<if test="runSource != null"> <if test="runSource != null">
run_source = #{runSource,jdbcType=LONGVARCHAR}, run_source = #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
<if test="extendedConfiguration != null">
extended_configuration = #{extendedConfiguration,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
......
package com.byit.dto.expand;
/**
* 扩展配置
*
* @author huangfu
* @date 2020年10月20日15:11:12
*/
public class ExtendedConfiguration {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment