Commit 469f0d68 by huangfusuper

【数据库增加字段】表运行记录表增加字段,标识是否是内嵌工作流

parent e8847a8e
......@@ -2,16 +2,34 @@ package com.byit.mapper;
import com.byit.model.RunRecording;
/**
* @author 删除数据
*/
public interface RunRecordingMapper {
int deleteById(Integer recordingId);
int insert(RunRecording record);
int insertSelective(RunRecording record);
/**
* 根据ID查询
* @param recordingId
* @return
*/
RunRecording findRunRecordingById(Integer recordingId);
/**
* 保存数据
* @param record
* @return
*/
int saveRunRecording(RunRecording record);
RunRecording getById(Integer recordingId);
int updateByIdSelective(RunRecording record);
/**
* 修改数据
* @param record
* @return
*/
int updateRunRecordingById(RunRecording record);
/**
* 根据ID删除
* @param recordingId
* @return
*/
int deleteById(Integer recordingId);
int updateById(RunRecording record);
}
\ No newline at end of file
......@@ -113,7 +113,11 @@ public class RunRecording implements Serializable {
*/
@ApiModelProperty("是否已告警(0,是 1,否)")
private String isAlarm;
/**
* 是否是内嵌工作流 0 否, 1 是
*/
@ApiModelProperty("是否是内嵌工作流 0 否, 1 是")
private String isInner;
/**
*/
private static final long serialVersionUID = 1L;
......
......@@ -20,14 +20,15 @@
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="is_alarm" jdbcType="CHAR" property="isAlarm" />
<result column="is_inner" jdbcType="CHAR" property="isInner" />
</resultMap>
<sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-25 -->
recording_id, run_id, alarm_email, dispatch_ip, flow_name, flow_run_result, flow_status,
flow_timeout, flow_version_name, alarml_action, priority, trigger_time, principal,
flow_id, start_time, end_time, is_alarm
flow_id, start_time, end_time, is_alarm,is_inner
</sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<select id="findRunRecordingById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!-- generated @mbg.generated date: 2019-12-25 -->
select
<include refid="Base_Column_List" />
......@@ -39,22 +40,7 @@
delete from run_recording
where recording_id = #{recordingId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into run_recording (recording_id, run_id, alarm_email,
dispatch_ip, flow_name, flow_run_result,
flow_status, flow_timeout, flow_version_name,
alarml_action, priority, trigger_time,
principal, flow_id, start_time,
end_time, is_alarm)
values (#{recordingId,jdbcType=INTEGER}, #{runId,jdbcType=VARCHAR}, #{alarmEmail,jdbcType=VARCHAR},
#{dispatchIp,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR}, #{flowRunResult,jdbcType=CHAR},
#{flowStatus,jdbcType=CHAR}, #{flowTimeout,jdbcType=BIGINT}, #{flowVersionName,jdbcType=INTEGER},
#{alarmlAction,jdbcType=CHAR}, #{priority,jdbcType=CHAR}, #{triggerTime,jdbcType=BIGINT},
#{principal,jdbcType=VARCHAR}, #{flowId,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP}, #{isAlarm,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.byit.model.RunRecording">
<insert id="saveRunRecording" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into run_recording
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -109,6 +95,9 @@
<if test="isAlarm != null">
is_alarm,
</if>
<if test="isInner != null">
is_inner,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="recordingId != null">
......@@ -162,9 +151,12 @@
<if test="isAlarm != null">
#{isAlarm,jdbcType=CHAR},
</if>
<if test="isInner != null">
#{isInner,jdbcType=CHAR},
</if>
</trim>
</insert>
<update id="updateByIdSelective" parameterType="com.byit.model.RunRecording">
<update id="updateRunRecordingById" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-25 -->
update run_recording
<set>
......@@ -216,28 +208,10 @@
<if test="isAlarm != null">
is_alarm = #{isAlarm,jdbcType=CHAR},
</if>
<if test="isInner != null">
is_inner = #{isInner,jdbcType=CHAR},
</if>
</set>
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
<update id="updateById" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-25 -->
update run_recording
set run_id = #{runId,jdbcType=VARCHAR},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
dispatch_ip = #{dispatchIp,jdbcType=VARCHAR},
flow_name = #{flowName,jdbcType=VARCHAR},
flow_run_result = #{flowRunResult,jdbcType=CHAR},
flow_status = #{flowStatus,jdbcType=CHAR},
flow_timeout = #{flowTimeout,jdbcType=BIGINT},
flow_version_name = #{flowVersionName,jdbcType=INTEGER},
alarml_action = #{alarmlAction,jdbcType=CHAR},
priority = #{priority,jdbcType=CHAR},
trigger_time = #{triggerTime,jdbcType=BIGINT},
principal = #{principal,jdbcType=VARCHAR},
flow_id = #{flowId,jdbcType=INTEGER},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
is_alarm = #{isAlarm,jdbcType=CHAR}
where recording_id = #{recordingId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
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