Commit 255c388c by guominglei

添加javatask的实体和mapper

parent 7584097e
package com.byit.mapper;
import com.byit.dto.plugin.JavaTask;
public interface JavaTaskMapper {
int deleteById(Integer id);
int insertSelective(JavaTask record);
JavaTask getById(Integer id);
int updateByIdSelective(JavaTask record);
}
\ No newline at end of file
......@@ -55,7 +55,7 @@
type="XMLMAPPER">
<property name="enableSubPackages" value="false"/>
</javaClientGenerator>
<table tableName="flow_status_snapshoot" domainObjectName="FlowStatusSnapshoot" />
<table tableName="java_task" domainObjectName="JavaTask" />
</context>
......
<?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.byit.mapper.JavaTaskMapper">
<resultMap id="BaseResultMap" type="com.byit.dto.plugin.JavaTask">
<!-- generated @mbg.generated date: 2020-04-14 -->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="job_name" jdbcType="VARCHAR" property="jobName" />
<result column="task_name" jdbcType="VARCHAR" property="taskName" />
<result column="scheduling_count" jdbcType="INTEGER" property="schedulingCount" />
<result column="param" jdbcType="VARCHAR" property="param" />
<result column="trigger_time" jdbcType="BIGINT" property="triggerTime" />
<result column="cron" jdbcType="VARCHAR" property="cron" />
<result column="remaining_count" jdbcType="INTEGER" property="remainingCount" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="alarml_action" jdbcType="CHAR" property="alarmlAction" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
</resultMap>
<sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2020-04-14 -->
id, job_name, task_name, scheduling_count, param, trigger_time, cron, remaining_count,
create_time, update_time, alarml_action, alarm_email
</sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!-- generated @mbg.generated date: 2020-04-14 -->
select
<include refid="Base_Column_List" />
from java_task
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2020-04-14 -->
delete from java_task
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insertSelective" parameterType="com.byit.dto.plugin.JavaTask">
<!-- generated @mbg.generated date: 2020-04-14 -->
insert into java_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="jobName != null">
job_name,
</if>
<if test="taskName != null">
task_name,
</if>
<if test="schedulingCount != null">
scheduling_count,
</if>
<if test="param != null">
param,
</if>
<if test="triggerTime != null">
trigger_time,
</if>
<if test="cron != null">
cron,
</if>
<if test="remainingCount != null">
remaining_count,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="alarmlAction != null">
alarml_action,
</if>
<if test="alarmEmail != null">
alarm_email,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="jobName != null">
#{jobName,jdbcType=VARCHAR},
</if>
<if test="taskName != null">
#{taskName,jdbcType=VARCHAR},
</if>
<if test="schedulingCount != null">
#{schedulingCount,jdbcType=INTEGER},
</if>
<if test="param != null">
#{param,jdbcType=VARCHAR},
</if>
<if test="triggerTime != null">
#{triggerTime,jdbcType=BIGINT},
</if>
<if test="cron != null">
#{cron,jdbcType=VARCHAR},
</if>
<if test="remainingCount != null">
#{remainingCount,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="alarmlAction != null">
#{alarmlAction,jdbcType=CHAR},
</if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByIdSelective" parameterType="com.byit.dto.plugin.JavaTask">
<!-- generated @mbg.generated date: 2020-04-14 -->
update java_task
<set>
<if test="jobName != null">
job_name = #{jobName,jdbcType=VARCHAR},
</if>
<if test="taskName != null">
task_name = #{taskName,jdbcType=VARCHAR},
</if>
<if test="schedulingCount != null">
scheduling_count = #{schedulingCount,jdbcType=INTEGER},
</if>
<if test="param != null">
param = #{param,jdbcType=VARCHAR},
</if>
<if test="triggerTime != null">
trigger_time = #{triggerTime,jdbcType=BIGINT},
</if>
<if test="cron != null">
cron = #{cron,jdbcType=VARCHAR},
</if>
<if test="remainingCount != null">
remaining_count = #{remainingCount,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="alarmlAction != null">
alarml_action = #{alarmlAction,jdbcType=CHAR},
</if>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -4,6 +4,7 @@ import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -13,54 +14,68 @@ import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class JavaTask {
public class JavaTask implements Serializable {
/**
* 主键
* 主键
*/
private Integer id;
/**
* 任务名称
*/
private String jobName;
/**
* 调度名称
*/
private String taskName;
/**
* 调度次数 默认周期性调度
* 调度次数 -1周期性调度
*/
private String schedulingCount;
private Integer schedulingCount;
/**
* 调度参数
* 参数
*/
private String param;
/**
* 本次的执行时间
* 节点本次执行时间
*/
private Long triggerTime;
/**
* cron表达式
*/
private String cron;
/**
* 剩余执行词素
* 剩余执行次数 -1周期性调度
*/
private Integer remainingCount;
/**
* 创建时间
*/
private Date createTime;
/**
* 修改时间
*/
private Date updateTime;
/**
* 告警时机
* 当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)
*/
private String alarmlAction;
/**
* 告警邮箱
*/
private String alarmEmail;
/**
* 邮件接收人
*/
private String sendEmail;
private static final long serialVersionUID = 1L;
}
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