Commit 2b2e93de by huangfusuper

【基础代码重构】基础代码重构

parent c34a7c3a
...@@ -3,7 +3,6 @@ package com.byit.controller; ...@@ -3,7 +3,6 @@ package com.byit.controller;
import com.byit.conf.MythJobAutoConfigure; import com.byit.conf.MythJobAutoConfigure;
import com.byit.job.dto.JobRunResultDto; import com.byit.job.dto.JobRunResultDto;
import com.byit.job.dto.PluginBeanJobInfo; import com.byit.job.dto.PluginBeanJobInfo;
import com.byit.model.JobTask;
import com.byit.service.JobTaskService; import com.byit.service.JobTaskService;
import com.byit.thread.LogCallbackThread; import com.byit.thread.LogCallbackThread;
import com.byit.util.SourceObj2TargetObjUtil; import com.byit.util.SourceObj2TargetObjUtil;
......
package com.byit.mapper;
import com.byit.model.EmailAlarm;
public interface EmailAlarmMapper {
int deleteById(Integer id);
int insert(EmailAlarm record);
int insertSelective(EmailAlarm record);
EmailAlarm getById(Integer id);
int updateByIdSelective(EmailAlarm record);
int updateByIdWithBLOBs(EmailAlarm record);
int updateById(EmailAlarm record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.FlowDependentKey;
public interface FlowDependentMapper {
int deleteById(FlowDependentKey key);
int insert(FlowDependentKey record);
int insertSelective(FlowDependentKey record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.Flow;
public interface FlowMapper {
int deleteById(Integer flowId);
int insert(Flow record);
int insertSelective(Flow record);
Flow getById(Integer flowId);
int updateByIdSelective(Flow record);
int updateById(Flow record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.FlowVersionDependentKey;
public interface FlowVersionDependentMapper {
int deleteById(FlowVersionDependentKey key);
int insert(FlowVersionDependentKey record);
int insertSelective(FlowVersionDependentKey record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.FlowVersion;
public interface FlowVersionMapper {
int deleteById(Integer flowVersionId);
int insert(FlowVersion record);
int insertSelective(FlowVersion record);
FlowVersion getById(Integer flowVersionId);
int updateByIdSelective(FlowVersion record);
int updateById(FlowVersion record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.JobFlowDependentKey;
public interface JobFlowDependentMapper {
int deleteById(JobFlowDependentKey key);
int insert(JobFlowDependentKey record);
int insertSelective(JobFlowDependentKey record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.JobFlow;
public interface JobFlowMapper {
int deleteById(Integer flowId);
int insert(JobFlow record);
int insertSelective(JobFlow record);
JobFlow getById(Integer flowId);
int updateByIdSelective(JobFlow record);
int updateById(JobFlow record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.JobFlowNode;
public interface JobFlowNodeMapper {
int deleteById(Integer nodeId);
int insert(JobFlowNode record);
int insertSelective(JobFlowNode record);
JobFlowNode getById(Integer nodeId);
int updateByIdSelective(JobFlowNode record);
int updateByIdWithBLOBs(JobFlowNode record);
int updateById(JobFlowNode record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.JobFlowRunRecording;
public interface JobFlowRunRecordingMapper {
int deleteById(Integer recordingId);
int insert(JobFlowRunRecording record);
int insertSelective(JobFlowRunRecording record);
JobFlowRunRecording getById(Integer recordingId);
int updateByIdSelective(JobFlowRunRecording record);
int updateById(JobFlowRunRecording record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.JobFlowVersion;
public interface JobFlowVersionMapper {
int deleteById(Integer flowVersionId);
int insert(JobFlowVersion record);
int insertSelective(JobFlowVersion record);
JobFlowVersion getById(Integer flowVersionId);
int updateByIdSelective(JobFlowVersion record);
int updateById(JobFlowVersion record);
}
\ No newline at end of file
...@@ -7,56 +7,48 @@ import org.springframework.stereotype.Repository; ...@@ -7,56 +7,48 @@ import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
/** /**
* 任务表操作 * 任务表操作
* @author AutomaticGenerated * @author huangfu
*/ */
@Repository @Repository
public interface JobTaskMapper { public interface JobTaskMapper {
/** /**
* 查询七秒内即将执行的数据 * 七秒内要查询的数据
* @param maxNextTime * @param triggerNextTime
* @return * @return
*/ */
List<JobTask> findJobTaskByTriggerNextTimeLessThanEqual(Long maxNextTime); List<JobTask> findJobTaskByTriggerNextTimeLessThanEqual(@Param("triggerNextTime") Long triggerNextTime);
/** /**
* 根据id返回 * 根据id查询
* @param id 节点的id * @param id
* @return
*/
JobTask getById(Integer id);
/**
* 插入
* @param record
* @return * @return
*/ */
int insert(JobTask record); JobTask findJobTaskById(Integer id);
/** /**
* 动态插入 * 根据id删除一条数据
* @param record * @param id
* @return * @return
*/ */
int insertSelective(JobTask record); int deleteById(Integer id);
/** /**
* 动态修改根据id * 动态插入
* @param record * @param jobTask
* @return * @return
*/ */
int updateByIdSelective(JobTask record); int saveJobTask(JobTask jobTask);
/** /**
* 根据ID删除数据 * 修改任务表
* @param id * @param jobTask
* @return * @return
*/ */
int deleteById(Integer id); int updateJobTask(JobTask jobTask);
/** /**
* 批量删除 * 根据id删除多个
* @param mythJobTasks * @param jobTasks
* @return
*/ */
int deleteByIds(@Param("mythJobTasks") List<JobTask> mythJobTasks); void deleteInId(List<JobTask> jobTasks);
} }
\ No newline at end of file
package com.byit.mapper; package com.byit.mapper;
import com.byit.model.JobTaskRunLog; import com.byit.model.JobTaskRunLog;
import org.springframework.stereotype.Repository; import com.byit.model.JobTaskRunLogWithBLOBs;
/**
* 对执行后日志的操作
* @author huangfu
*/
@Repository
public interface JobTaskRunLogMapper { public interface JobTaskRunLogMapper {
int deleteById(Integer logId); int deleteById(Integer logId);
int insert(JobTaskRunLog record); int insert(JobTaskRunLogWithBLOBs record);
/** int insertSelective(JobTaskRunLogWithBLOBs record);
* 动态插入
* @param record
* @return
*/
int insertSelective(JobTaskRunLog record);
JobTaskRunLog getById(Integer logId); JobTaskRunLogWithBLOBs getById(Integer logId);
int updateByIdSelective(JobTaskRunLog record); int updateByIdSelective(JobTaskRunLogWithBLOBs record);
int updateByPrimaryKeyWithBLOBs(JobTaskRunLog record); int updateByIdWithBLOBs(JobTaskRunLogWithBLOBs record);
int updateById(JobTaskRunLog record); int updateById(JobTaskRunLog record);
} }
\ No newline at end of file
package com.byit.mapper; package com.byit.mapper;
import com.byit.model.JobTaskSchedule; import com.byit.model.JobTaskSchedule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author huangfu
*/
@Repository
public interface JobTaskScheduleMapper { public interface JobTaskScheduleMapper {
/**
* 查询五秒内将要执行的数据
* @param maxNextTime
* @return
*/
List<JobTaskSchedule> findJobTaskScheduleByTriggerNextTimeLessThanEqual(long maxNextTime);
/**
* 插入数据
* @param record
* @return
*/
int insert(JobTaskSchedule record);
/**
* 根据条件插入一条数据
* @param record
* @return
*/
int insertSelective(JobTaskSchedule record);
/**
* 批量插入
* @param jobTaskSchedules
* @return
*/
int insertDataList(@Param("jobTaskSchedules") List<JobTaskSchedule> jobTaskSchedules);
int deleteById(Integer id); int deleteById(Integer id);
int insert(JobTaskSchedule record);
int insertSelective(JobTaskSchedule record);
JobTaskSchedule getById(Integer id); JobTaskSchedule getById(Integer id);
int updateByIdSelective(JobTaskSchedule record); int updateByIdSelective(JobTaskSchedule record);
int updateByIdWithBLOBs(JobTaskSchedule record);
int updateById(JobTaskSchedule record);
} }
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.NodeDependencyKey;
public interface NodeDependencyMapper {
int deleteById(NodeDependencyKey key);
int insert(NodeDependencyKey record);
int insertSelective(NodeDependencyKey record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.Node;
public interface NodeMapper {
int deleteById(Integer nodeId);
int insert(Node record);
int insertSelective(Node record);
Node getById(Integer nodeId);
int updateByIdSelective(Node record);
int updateByIdWithBLOBs(Node record);
int updateById(Node record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.NodeVersionDependencyKey;
public interface NodeVersionDependencyMapper {
int deleteById(NodeVersionDependencyKey key);
int insert(NodeVersionDependencyKey record);
int insertSelective(NodeVersionDependencyKey record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.NodeVersion;
public interface NodeVersionMapper {
int deleteById(Integer nodeVersionId);
int insert(NodeVersion record);
int insertSelective(NodeVersion record);
NodeVersion getById(Integer nodeVersionId);
int updateByIdSelective(NodeVersion record);
int updateByIdWithBLOBs(NodeVersion record);
int updateById(NodeVersion record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.RunRecording;
public interface RunRecordingMapper {
int deleteById(Integer recordingId);
int insert(RunRecording record);
int insertSelective(RunRecording record);
RunRecording getById(Integer recordingId);
int updateByIdSelective(RunRecording record);
int updateById(RunRecording record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.SourceHistory;
public interface SourceHistoryMapper {
int deleteById(String id);
int insert(SourceHistory record);
int insertSelective(SourceHistory record);
SourceHistory getById(String id);
int updateByIdSelective(SourceHistory record);
int updateByIdWithBLOBs(SourceHistory record);
int updateById(SourceHistory record);
}
\ No newline at end of file
package com.byit.mapper;
import com.byit.model.jobFlowNodeVersion;
public interface jobFlowNodeVersionMapper {
int deleteById(Integer nodeVersionId);
int insert(jobFlowNodeVersion record);
int insertSelective(jobFlowNodeVersion record);
jobFlowNodeVersion getById(Integer nodeVersionId);
int updateByIdSelective(jobFlowNodeVersion record);
int updateByIdWithBLOBs(jobFlowNodeVersion record);
int updateById(jobFlowNodeVersion record);
}
\ No newline at end of file
package com.byit.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*/
@ApiModel
@Data
public class EmailAlarm implements Serializable {
/**
* 主键
*/
@ApiModelProperty("主键")
private Integer id;
/**
* 工作流Id
*/
@ApiModelProperty("工作流Id")
private Integer flowId;
/**
* 工作流名称
*/
@ApiModelProperty("工作流名称")
private String flowName;
/**
* 运行标识
*/
@ApiModelProperty("运行标识")
private String runId;
/**
* 版本名称
*/
@ApiModelProperty("版本名称")
private String versionName;
/**
* 告警邮箱
*/
@ApiModelProperty("告警邮箱")
private String alarmEmail;
/**
* 当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)
*/
@ApiModelProperty("当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)")
private String alarmAction;
/**
* 告警结果(0, 未告警 1,告警成功 2,告警失败)
*/
@ApiModelProperty("告警结果(0, 未告警 1,告警成功 2,告警失败)")
private String alarmResult;
/**
* 发送时间
*/
@ApiModelProperty("发送时间")
private Date sendTime;
/**
* 告警内容
*/
@ApiModelProperty("告警内容")
private String alarmContent;
/**
*/
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
public class JobFlow implements Serializable { public class Flow implements Serializable {
/** /**
* 当前版本工作流主键 * 当前版本工作流主键
*/ */
...@@ -49,15 +49,15 @@ public class JobFlow implements Serializable { ...@@ -49,15 +49,15 @@ public class JobFlow implements Serializable {
private String flowName; private String flowName;
/** /**
* 前版本工作流节点数目 * 工作流节点数目
*/ */
@ApiModelProperty("前版本工作流节点数目") @ApiModelProperty("工作流节点数目")
private Integer flowNodeCount; private Integer flowNodeCount;
/** /**
* 档期啊版本的工作流的超时时间 * 工作流的超时时间
*/ */
@ApiModelProperty("档期啊版本的工作流的超时时间") @ApiModelProperty("工作流的超时时间")
private Long flowTimeout; private Long flowTimeout;
/** /**
...@@ -79,16 +79,10 @@ public class JobFlow implements Serializable { ...@@ -79,16 +79,10 @@ public class JobFlow implements Serializable {
private String isTop; private String isTop;
/** /**
* 当前工作流版本的告警的时机 * 当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)
*/ */
@ApiModelProperty("当前工作流版本的告警的时机") @ApiModelProperty("当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)")
private String mailAction; private String alarmlAction;
/**
* 节点是否跟随任务流,1跟随 2不跟随
*/
@ApiModelProperty("节点是否跟随任务流,1跟随 2不跟随")
private String nodeDateIsFollowFlow;
/** /**
* 设置任务的优先级,1最低 2最高 * 设置任务的优先级,1最低 2最高
...@@ -97,18 +91,6 @@ public class JobFlow implements Serializable { ...@@ -97,18 +91,6 @@ public class JobFlow implements Serializable {
private String priority; private String priority;
/** /**
* 当前工作流版本的执行剩余次数
*/
@ApiModelProperty("当前工作流版本的执行剩余次数")
private Integer remainingCount;
/**
* 当前工作流版本额重复次数
*/
@ApiModelProperty("当前工作流版本额重复次数")
private Integer repeatCount;
/**
* 当前版本的工作流的下次执行时间 * 当前版本的工作流的下次执行时间
*/ */
@ApiModelProperty("当前版本的工作流的下次执行时间") @ApiModelProperty("当前版本的工作流的下次执行时间")
...@@ -139,6 +121,30 @@ public class JobFlow implements Serializable { ...@@ -139,6 +121,30 @@ public class JobFlow implements Serializable {
private String startUp; private String startUp;
/** /**
* 责任人
*/
@ApiModelProperty("责任人")
private String principal;
/**
* 版本名称
*/
@ApiModelProperty("版本名称")
private String versionName;
/**
* 工作流版本额重复次数
*/
@ApiModelProperty("工作流版本额重复次数")
private Integer repeatCount;
/**
* 剩余执行次数
*/
@ApiModelProperty("剩余执行次数")
private Integer remainingCount;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ import lombok.Data; ...@@ -10,7 +10,7 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
public class JobFlowDependentKey implements Serializable { public class FlowDependentKey implements Serializable {
/** /**
* 工作流Id * 工作流Id
*/ */
......
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
public class JobFlowVersion implements Serializable { public class FlowVersion implements Serializable {
/** /**
* 版本工作流主键 * 版本工作流主键
*/ */
...@@ -67,22 +67,16 @@ public class JobFlowVersion implements Serializable { ...@@ -67,22 +67,16 @@ public class JobFlowVersion implements Serializable {
private Integer flowNodeCount; private Integer flowNodeCount;
/** /**
* 档期啊版本的工作流的超时时间 * 当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)
*/ */
@ApiModelProperty("档期啊版本的工作流的超时时间") @ApiModelProperty("当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)")
private Long flowTimeout; private String alarmlAction;
/**
* 工作流版本的告警的时机
*/
@ApiModelProperty("工作流版本的告警的时机")
private String mailAction;
/** /**
* 节点是否跟随任务流,1跟随 2不跟随 * 节点是否跟随任务流,1跟随 2不跟随
*/ */
@ApiModelProperty("节点是否跟随任务流,1跟随 2不跟随") @ApiModelProperty("节点是否跟随任务流,1跟随 2不跟随")
private String nodeDateIsFollowFlow; private String scheduleFollow;
/** /**
* 设置任务的优先级,1最低 2最高 * 设置任务的优先级,1最低 2最高
...@@ -103,12 +97,6 @@ public class JobFlowVersion implements Serializable { ...@@ -103,12 +97,6 @@ public class JobFlowVersion implements Serializable {
private Integer repeatCount; private Integer repeatCount;
/** /**
* 修改时间
*/
@ApiModelProperty("修改时间")
private Date updateTime;
/**
* 当前版本的标志 this * 当前版本的标志 this
*/ */
@ApiModelProperty("当前版本的标志 this") @ApiModelProperty("当前版本的标志 this")
...@@ -127,6 +115,36 @@ public class JobFlowVersion implements Serializable { ...@@ -127,6 +115,36 @@ public class JobFlowVersion implements Serializable {
private String author; private String author;
/** /**
* 责任人
*/
@ApiModelProperty("责任人")
private String principal;
/**
* 版本名称
*/
@ApiModelProperty("版本名称")
private String versionName;
/**
* 是否有下游节点 0 否,1 是
*/
@ApiModelProperty("是否有下游节点 0 否,1 是")
private String isHaveDepend;
/**
* 是否是内嵌工作流 0 否, 1 是
*/
@ApiModelProperty("是否是内嵌工作流 0 否, 1 是")
private String isInner;
/**
* 是否是顶级工作流 0 否, 1 是
*/
@ApiModelProperty("是否是顶级工作流 0 否, 1 是")
private String isTop;
/**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
package com.byit.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
/**
*
*/
@ApiModel
@Data
public class FlowVersionDependentKey implements Serializable {
/**
* 工作流版本id
*/
@ApiModelProperty("工作流版本id")
private Integer flowVersionId;
/**
* 依赖的工作流版本id
*/
@ApiModelProperty("依赖的工作流版本id")
private Integer dependentId;
/**
*/
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
...@@ -3,7 +3,6 @@ package com.byit.model; ...@@ -3,7 +3,6 @@ package com.byit.model;
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;
import java.util.Date;
import lombok.Data; import lombok.Data;
/** /**
...@@ -14,7 +13,7 @@ import lombok.Data; ...@@ -14,7 +13,7 @@ import lombok.Data;
public class JobTask implements Serializable { public class JobTask implements Serializable {
/** /**
*/ */
@ApiModelProperty("主键") @ApiModelProperty("")
private Integer id; private Integer id;
/** /**
...@@ -24,28 +23,16 @@ public class JobTask implements Serializable { ...@@ -24,28 +23,16 @@ public class JobTask implements Serializable {
private Integer nodeId; private Integer nodeId;
/** /**
* 当前工作流版本的报警邮箱
*/
@ApiModelProperty("当前工作流版本的报警邮箱")
private String alarmEmail;
/**
* 阻塞策略 * 阻塞策略
*/ */
@ApiModelProperty("阻塞策略") @ApiModelProperty("阻塞策略")
private String blockStrategy; private String blockStrategy;
/** /**
* 调度中心端请求插件时的令牌 * 插件的网络令牌
*/
@ApiModelProperty("调度中心端请求插件时的令牌")
private String callbackToken;
/**
* 该节点的依赖节点
*/ */
@ApiModelProperty("该节点的依赖节点") @ApiModelProperty("插件的网络令牌")
private String dependencyNodes; private String pluginToken;
/** /**
* 当前节点的失败重试次数 * 当前节点的失败重试次数
...@@ -60,12 +47,6 @@ public class JobTask implements Serializable { ...@@ -60,12 +47,6 @@ public class JobTask implements Serializable {
private Integer flowId; private Integer flowId;
/** /**
* 是否跟随任务流 1跟随 2不跟随
*/
@ApiModelProperty("是否跟随任务流 1跟随 2不跟随")
private String followTaskFlow;
/**
* 插件端请求调度中心的令牌 * 插件端请求调度中心的令牌
*/ */
@ApiModelProperty("插件端请求调度中心的令牌") @ApiModelProperty("插件端请求调度中心的令牌")
...@@ -81,19 +62,7 @@ public class JobTask implements Serializable { ...@@ -81,19 +62,7 @@ public class JobTask implements Serializable {
* 本地节点(插件方) 的节点的名字 * 本地节点(插件方) 的节点的名字
*/ */
@ApiModelProperty("本地节点(插件方) 的节点的名字") @ApiModelProperty("本地节点(插件方) 的节点的名字")
private String localNodeHandlerName; private String handlerName;
/**
* 当前工作流版本的告警的时机
*/
@ApiModelProperty("当前工作流版本的告警的时机")
private String mailAction;
/**
* 这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行
*/
@ApiModelProperty("这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行")
private String nodeCron;
/** /**
* 节点的说明 * 节点的说明
...@@ -108,10 +77,10 @@ public class JobTask implements Serializable { ...@@ -108,10 +77,10 @@ public class JobTask implements Serializable {
private String nodeName; private String nodeName;
/** /**
* nodeOfFlowId * 映射的工作流id(当节点为虚节点,有意义)
*/ */
@ApiModelProperty("nodeOfFlowId") @ApiModelProperty("映射的工作流id(当节点为虚节点,有意义)")
private Integer nodeOfFlowId; private Integer mapFlowId;
/** /**
* 节点的超时时间 -1不超时 * 节点的超时时间 -1不超时
...@@ -120,10 +89,10 @@ public class JobTask implements Serializable { ...@@ -120,10 +89,10 @@ public class JobTask implements Serializable {
private Long nodeTimeout; private Long nodeTimeout;
/** /**
* 节点的类型 node flow * 是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流
*/ */
@ApiModelProperty("节点的类型 node flow") @ApiModelProperty("是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流")
private String nodeType; private String isVirtual;
/** /**
* 插件端的url集合 * 插件端的url集合
...@@ -138,22 +107,10 @@ public class JobTask implements Serializable { ...@@ -138,22 +107,10 @@ public class JobTask implements Serializable {
private String priority; private String priority;
/** /**
* 节点的剩余次数 * 失败重试的间隔(单位毫秒)
*/ */
@ApiModelProperty("节点的剩余次数") @ApiModelProperty("失败重试的间隔(单位毫秒)")
private Integer remainingCount; private Long failedRetryInterval;
/**
* 当前节点总共重复次数
*/
@ApiModelProperty("当前节点总共重复次数")
private Integer repeatCount;
/**
* 重试的间隔
*/
@ApiModelProperty("重试的间隔")
private Long retryInterval;
/** /**
* 路由策略 * 路由策略
...@@ -192,16 +149,10 @@ public class JobTask implements Serializable { ...@@ -192,16 +149,10 @@ public class JobTask implements Serializable {
private String sourcePrincipal; private String sourcePrincipal;
/** /**
* 源码的修改时间 * 节点的本次执行时间
*/
@ApiModelProperty("源码的修改时间")
private Date sourceUpdateTime;
/**
* 当前版本的节点的下次执行时间
*/ */
@ApiModelProperty("当前版本的节点的下次执行时间") @ApiModelProperty("节点的本次执行时间")
private Long triggerNextTime; private Long triggerTime;
/** /**
* 调度状态:0-暂停,1-运行 * 调度状态:0-暂停,1-运行
...@@ -210,32 +161,23 @@ public class JobTask implements Serializable { ...@@ -210,32 +161,23 @@ public class JobTask implements Serializable {
private String triggerStatus; private String triggerStatus;
/** /**
* 源码 * 工作流版本名称
*/ */
@ApiModelProperty("源码") @ApiModelProperty("工作流版本名称")
private String runSource; private String versionName;
/** /**
* 创建人 * 运行命令
*/ */
@ApiModelProperty("创建人") @ApiModelProperty("运行命令")
private String author; private String runCommand;
/** /**
* 创建时间 * 源码
*/
@ApiModelProperty("创建时间")
private Date addTime;
/**
* 创建人
*/
@ApiModelProperty("版本id")
private Integer versionId;
/**
* 创建人
*/ */
@ApiModelProperty("版本名称") @ApiModelProperty("源码")
private String versionName; private String runSource;
/** /**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -19,40 +19,28 @@ public class JobTaskRunLog implements Serializable { ...@@ -19,40 +19,28 @@ public class JobTaskRunLog implements Serializable {
private Integer logId; private Integer logId;
/** /**
* 当前工作流版本的报警邮箱
*/
@ApiModelProperty("当前工作流版本的报警邮箱")
private String alarmEmail;
/**
* 告警结果,1-告警成功 2-告警失败
*/
@ApiModelProperty("告警结果,1-告警成功 2-告警失败")
private String alarmStatus;
/**
* 当前节点的失败剩余重试次数 初始阶段为初始的重试次数 * 当前节点的失败剩余重试次数 初始阶段为初始的重试次数
*/ */
@ApiModelProperty("当前节点的失败剩余重试次数 初始阶段为初始的重试次数") @ApiModelProperty("当前节点的失败剩余重试次数 初始阶段为初始的重试次数")
private Integer failedRemainingCount; private Integer failedRemainingCount;
/** /**
* 任务流版本的主键 * 版本名称
*/ */
@ApiModelProperty("任务流版本的主键") @ApiModelProperty("版本名称")
private Integer flowVersionId; private String versionName;
/** /**
* 任务流主键 * 任务流主键
*/ */
@ApiModelProperty("任务流主键") @ApiModelProperty("任务流主键")
private Integer jobFlowId; private Integer flowId;
/** /**
* 所属任务流的名称 * 所属任务流的名称
*/ */
@ApiModelProperty("所属任务流的名称") @ApiModelProperty("所属任务流的名称")
private String jobFlowName; private String flowName;
/** /**
* 执行机主键 * 执行机主键
...@@ -61,22 +49,10 @@ public class JobTaskRunLog implements Serializable { ...@@ -61,22 +49,10 @@ public class JobTaskRunLog implements Serializable {
private Integer jobGroupId; private Integer jobGroupId;
/** /**
* 任务类型 BEAN ACTUATOR
*/
@ApiModelProperty("任务类型 BEAN ACTUATOR")
private String jobType;
/**
* 插件方节点key * 插件方节点key
*/ */
@ApiModelProperty("插件方节点key") @ApiModelProperty("插件方节点key")
private String localNodeHandlerName; private String handlerName;
/**
* 当前工作流版本的告警的时机
*/
@ApiModelProperty("当前工作流版本的告警的时机")
private String mailAction;
/** /**
* 节点名称 * 节点名称
...@@ -85,10 +61,10 @@ public class JobTaskRunLog implements Serializable { ...@@ -85,10 +61,10 @@ public class JobTaskRunLog implements Serializable {
private String nodeName; private String nodeName;
/** /**
* 节点类型 node type * 是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流
*/ */
@ApiModelProperty("节点类型 node type") @ApiModelProperty("是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流")
private String nodeType; private String isVirtual;
/** /**
* 运行结果 * 运行结果
...@@ -103,15 +79,15 @@ public class JobTaskRunLog implements Serializable { ...@@ -103,15 +79,15 @@ public class JobTaskRunLog implements Serializable {
private String runParams; private String runParams;
/** /**
* 执行时间 * 开始时间
*/ */
@ApiModelProperty("执行时间") @ApiModelProperty("开始时间")
private Date runTime; private Date startTime;
/** /**
* 运行方式 1执行机运行,2本地运行 * 运行方式 1执行机运行,2插件运行
*/ */
@ApiModelProperty("运行方式 1执行机运行,2本地运行") @ApiModelProperty("运行方式 1执行机运行,2插件运行")
private String runType; private String runType;
/** /**
...@@ -127,22 +103,34 @@ public class JobTaskRunLog implements Serializable { ...@@ -127,22 +103,34 @@ public class JobTaskRunLog implements Serializable {
private Date triggerTime; private Date triggerTime;
/** /**
* 运行结果信息 * 执行机的IP地址
*/
@ApiModelProperty("执行机的IP地址")
private String jobGroupIp;
/**
* 映射的工作流id(当节点为虚节点,有意义)
*/
@ApiModelProperty("映射的工作流id(当节点为虚节点,有意义)")
private Integer mapFlowId;
/**
* 运行命令
*/ */
@ApiModelProperty("运行结果信息") @ApiModelProperty("运行命令")
private String runMsg; private String runCommand;
/** /**
* 调度信息 * 结束时间
*/ */
@ApiModelProperty("调度信息") @ApiModelProperty("结束时间")
private String triggerMsg; private Date endTime;
/** /**
* 任务版本名称 * 节点id
*/ */
@ApiModelProperty("任务版本名称") @ApiModelProperty("节点id")
private String jobVersionName; private Integer nodeId;
/** /**
*/ */
......
package com.byit.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
/**
*
*/
@ApiModel
@Data
public class JobTaskRunLogWithBLOBs extends JobTaskRunLog implements Serializable {
/**
* 运行结果信息
*/
@ApiModelProperty("运行结果信息")
private String runMsg;
/**
* 调度信息
*/
@ApiModelProperty("调度信息")
private String triggerMsg;
/**
*/
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
...@@ -3,7 +3,6 @@ package com.byit.model; ...@@ -3,7 +3,6 @@ package com.byit.model;
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;
import java.util.Date;
import lombok.Data; import lombok.Data;
/** /**
...@@ -13,9 +12,8 @@ import lombok.Data; ...@@ -13,9 +12,8 @@ import lombok.Data;
@Data @Data
public class JobTaskSchedule implements Serializable { public class JobTaskSchedule implements Serializable {
/** /**
* 排期表的主键
*/ */
@ApiModelProperty("排期表的主键") @ApiModelProperty("")
private Integer id; private Integer id;
/** /**
...@@ -25,28 +23,16 @@ public class JobTaskSchedule implements Serializable { ...@@ -25,28 +23,16 @@ public class JobTaskSchedule implements Serializable {
private Integer nodeId; private Integer nodeId;
/** /**
* 当前工作流版本的报警邮箱
*/
@ApiModelProperty("当前工作流版本的报警邮箱")
private String alarmEmail;
/**
* 阻塞策略 * 阻塞策略
*/ */
@ApiModelProperty("阻塞策略") @ApiModelProperty("阻塞策略")
private String blockStrategy; private String blockStrategy;
/** /**
* 调度中心端请求插件时的令牌 * 插件的网络令牌
*/
@ApiModelProperty("调度中心端请求插件时的令牌")
private String callbackToken;
/**
* 该节点的依赖节点
*/ */
@ApiModelProperty("该节点的依赖节点") @ApiModelProperty("插件的网络令牌")
private String dependencyNodes; private String pluginToken;
/** /**
* 当前节点的失败重试次数 * 当前节点的失败重试次数
...@@ -61,12 +47,6 @@ public class JobTaskSchedule implements Serializable { ...@@ -61,12 +47,6 @@ public class JobTaskSchedule implements Serializable {
private Integer flowId; private Integer flowId;
/** /**
* 是否跟随任务流 1跟随 2不跟随
*/
@ApiModelProperty("是否跟随任务流 1跟随 2不跟随")
private String followTaskFlow;
/**
* 插件端请求调度中心的令牌 * 插件端请求调度中心的令牌
*/ */
@ApiModelProperty("插件端请求调度中心的令牌") @ApiModelProperty("插件端请求调度中心的令牌")
...@@ -82,25 +62,7 @@ public class JobTaskSchedule implements Serializable { ...@@ -82,25 +62,7 @@ public class JobTaskSchedule implements Serializable {
* 本地节点(插件方) 的节点的名字 * 本地节点(插件方) 的节点的名字
*/ */
@ApiModelProperty("本地节点(插件方) 的节点的名字") @ApiModelProperty("本地节点(插件方) 的节点的名字")
private String localNodeHandlerName; private String handlerName;
/**
* 日志ID
*/
@ApiModelProperty("日志ID")
private Integer logId;
/**
* 当前工作流版本的告警的时机
*/
@ApiModelProperty("当前工作流版本的告警的时机")
private String mailAction;
/**
* 这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行
*/
@ApiModelProperty("这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行")
private String nodeCron;
/** /**
* 节点的说明 * 节点的说明
...@@ -115,10 +77,10 @@ public class JobTaskSchedule implements Serializable { ...@@ -115,10 +77,10 @@ public class JobTaskSchedule implements Serializable {
private String nodeName; private String nodeName;
/** /**
* nodeOfFlowId * 映射的工作流id(当节点为虚节点,有意义)
*/ */
@ApiModelProperty("nodeOfFlowId") @ApiModelProperty("映射的工作流id(当节点为虚节点,有意义)")
private Integer nodeOfFlowId; private Integer mapFlowId;
/** /**
* 节点的超时时间 -1不超时 * 节点的超时时间 -1不超时
...@@ -127,10 +89,10 @@ public class JobTaskSchedule implements Serializable { ...@@ -127,10 +89,10 @@ public class JobTaskSchedule implements Serializable {
private Long nodeTimeout; private Long nodeTimeout;
/** /**
* 节点的类型 node flow * 是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流
*/ */
@ApiModelProperty("节点的类型 node flow") @ApiModelProperty("是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流")
private String nodeType; private String isVirtual;
/** /**
* 插件端的url集合 * 插件端的url集合
...@@ -145,22 +107,10 @@ public class JobTaskSchedule implements Serializable { ...@@ -145,22 +107,10 @@ public class JobTaskSchedule implements Serializable {
private String priority; private String priority;
/** /**
* 节点的剩余次数 * 失败重试的间隔(单位毫秒)
*/ */
@ApiModelProperty("节点的剩余次数") @ApiModelProperty("失败重试的间隔(单位毫秒)")
private Integer remainingCount; private Long failedRetryInterval;
/**
* 当前节点总共重复次数
*/
@ApiModelProperty("当前节点总共重复次数")
private Integer repeatCount;
/**
* 重试的间隔
*/
@ApiModelProperty("重试的间隔")
private Long retryInterval;
/** /**
* 路由策略 * 路由策略
...@@ -199,16 +149,10 @@ public class JobTaskSchedule implements Serializable { ...@@ -199,16 +149,10 @@ public class JobTaskSchedule implements Serializable {
private String sourcePrincipal; private String sourcePrincipal;
/** /**
* 源码的修改时间 * 节点的本次执行时间
*/
@ApiModelProperty("源码的修改时间")
private Date sourceUpdateTime;
/**
* 当前版本的节点的下次执行时间
*/ */
@ApiModelProperty("当前版本的节点的下次执行时间") @ApiModelProperty("节点的本次执行时间")
private Long triggerNextTime; private Long triggerTime;
/** /**
* 调度状态:0-暂停,1-运行 * 调度状态:0-暂停,1-运行
...@@ -217,32 +161,29 @@ public class JobTaskSchedule implements Serializable { ...@@ -217,32 +161,29 @@ public class JobTaskSchedule implements Serializable {
private String triggerStatus; private String triggerStatus;
/** /**
* 源码 * 工作流版本名称
*/ */
@ApiModelProperty("源码") @ApiModelProperty("工作流版本名称")
private String runSource; private String versionName;
/** /**
* 创建人 * 日志表id
*/ */
@ApiModelProperty("创建人") @ApiModelProperty("日志表id")
private String author; private Integer logId;
/** /**
* 创建时间 * 运行命令
*/ */
@ApiModelProperty("创建时间") @ApiModelProperty("运行命令")
private Date addTime; private String runCommand;
/**
* 创建人
*/
@ApiModelProperty("版本id")
private Integer versionId;
/** /**
* 创建人 * 源码
*/ */
@ApiModelProperty("版本名称") @ApiModelProperty("源码")
private String versionName; private String runSource;
/** /**
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
public class JobFlowNode implements Serializable { public class Node implements Serializable {
/** /**
* 当前版本节点主键 * 当前版本节点主键
*/ */
...@@ -19,28 +19,16 @@ public class JobFlowNode implements Serializable { ...@@ -19,28 +19,16 @@ public class JobFlowNode implements Serializable {
private Integer nodeId; private Integer nodeId;
/** /**
* 当前工作流版本的报警邮箱
*/
@ApiModelProperty("当前工作流版本的报警邮箱")
private String alarmEmail;
/**
* 阻塞策略 * 阻塞策略
*/ */
@ApiModelProperty("阻塞策略") @ApiModelProperty("阻塞策略")
private String blockStrategy; private String blockStrategy;
/** /**
* 调度中心端请求插件时的令牌 * 插件端网关令牌
*/
@ApiModelProperty("调度中心端请求插件时的令牌")
private String callbackToken;
/**
* 该节点的依赖节点
*/ */
@ApiModelProperty("该节点的依赖节点") @ApiModelProperty("插件端网关令牌")
private String dependencyNodes; private String pluginToken;
/** /**
* 当前节点的失败重试次数 * 当前节点的失败重试次数
...@@ -55,12 +43,6 @@ public class JobFlowNode implements Serializable { ...@@ -55,12 +43,6 @@ public class JobFlowNode implements Serializable {
private Integer flowId; private Integer flowId;
/** /**
* 是否跟随任务流 1跟随 2不跟随
*/
@ApiModelProperty("是否跟随任务流 1跟随 2不跟随")
private String followTaskFlow;
/**
* 插件端请求调度中心的令牌 * 插件端请求调度中心的令牌
*/ */
@ApiModelProperty("插件端请求调度中心的令牌") @ApiModelProperty("插件端请求调度中心的令牌")
...@@ -76,13 +58,7 @@ public class JobFlowNode implements Serializable { ...@@ -76,13 +58,7 @@ public class JobFlowNode implements Serializable {
* 本地节点(插件方) 的节点的名字 * 本地节点(插件方) 的节点的名字
*/ */
@ApiModelProperty("本地节点(插件方) 的节点的名字") @ApiModelProperty("本地节点(插件方) 的节点的名字")
private String localNodeHandlerName; private String handlerName;
/**
* 当前工作流版本的告警的时机
*/
@ApiModelProperty("当前工作流版本的告警的时机")
private String mailAction;
/** /**
* 这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行 * 这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行
...@@ -103,10 +79,10 @@ public class JobFlowNode implements Serializable { ...@@ -103,10 +79,10 @@ public class JobFlowNode implements Serializable {
private String nodeName; private String nodeName;
/** /**
* nodeOfFlowId * 映射的工作流id(当节点为虚节点,有意义)
*/ */
@ApiModelProperty("nodeOfFlowId") @ApiModelProperty("映射的工作流id(当节点为虚节点,有意义)")
private Integer nodeOfFlowId; private Integer mapFlowId;
/** /**
* 节点的超时时间 -1不超时 * 节点的超时时间 -1不超时
...@@ -115,10 +91,10 @@ public class JobFlowNode implements Serializable { ...@@ -115,10 +91,10 @@ public class JobFlowNode implements Serializable {
private Long nodeTimeout; private Long nodeTimeout;
/** /**
* 节点的类型 node flow * 是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流
*/ */
@ApiModelProperty("节点的类型 node flow") @ApiModelProperty("是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流")
private String nodeType; private String isVirtual;
/** /**
* 插件端的url集合 * 插件端的url集合
...@@ -133,22 +109,22 @@ public class JobFlowNode implements Serializable { ...@@ -133,22 +109,22 @@ public class JobFlowNode implements Serializable {
private String priority; private String priority;
/** /**
* 节点的剩余次数 * 节点剩余执行次数
*/ */
@ApiModelProperty("节点的剩余次数") @ApiModelProperty("节点剩余执行次数")
private Integer remainingCount; private Integer remainingCount;
/** /**
* 当前节点总共重复次数 * 节点可执行次数
*/ */
@ApiModelProperty("当前节点总共重复次数") @ApiModelProperty("节点可执行次数")
private Integer repeatCount; private Integer repeatCount;
/** /**
* 重试的间隔 * 失败重试的间隔(毫秒)
*/ */
@ApiModelProperty("重试的间隔") @ApiModelProperty("失败重试的间隔(毫秒)")
private Long retryInterval; private Long failedRetryInterval;
/** /**
* 路由策略 * 路由策略
...@@ -205,6 +181,24 @@ public class JobFlowNode implements Serializable { ...@@ -205,6 +181,24 @@ public class JobFlowNode implements Serializable {
private Date addTime; private Date addTime;
/** /**
* 版本名称
*/
@ApiModelProperty("版本名称")
private String versionName;
/**
* 在调度上(0,在 1, 不在)
*/
@ApiModelProperty("在调度上(0,在 1, 不在)")
private String onFork;
/**
* 运行命令
*/
@ApiModelProperty("运行命令")
private String runCommand;
/**
* 源码 * 源码
*/ */
@ApiModelProperty("源码") @ApiModelProperty("源码")
......
package com.byit.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
/**
*
*/
@ApiModel
@Data
public class NodeDependencyKey implements Serializable {
/**
* 节点id
*/
@ApiModelProperty("节点id")
private Integer nodeId;
/**
* 依赖的id
*/
@ApiModelProperty("依赖的id")
private Integer dependencyId;
/**
*/
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
public class jobFlowNodeVersion implements Serializable { public class NodeVersion implements Serializable {
/** /**
* 当前版本节点主键 * 当前版本节点主键
*/ */
...@@ -25,28 +25,16 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -25,28 +25,16 @@ public class jobFlowNodeVersion implements Serializable {
private Integer nodeId; private Integer nodeId;
/** /**
* 当前工作流版本的报警邮箱
*/
@ApiModelProperty("当前工作流版本的报警邮箱")
private String alarmEmail;
/**
* 阻塞策略 * 阻塞策略
*/ */
@ApiModelProperty("阻塞策略") @ApiModelProperty("阻塞策略")
private String blockStrategy; private String blockStrategy;
/** /**
* 调度中心端请求插件时的令牌 * 插件端网关令牌
*/
@ApiModelProperty("调度中心端请求插件时的令牌")
private String callbackToken;
/**
* 该节点的依赖节点
*/ */
@ApiModelProperty("该节点的依赖节点") @ApiModelProperty("插件端网关令牌")
private String dependencyNodes; private String puginToken;
/** /**
* 当前节点的失败重试次数 * 当前节点的失败重试次数
...@@ -67,12 +55,6 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -67,12 +55,6 @@ public class jobFlowNodeVersion implements Serializable {
private Integer flowVersionId; private Integer flowVersionId;
/** /**
* 是否跟随任务流 1跟随 2不跟随
*/
@ApiModelProperty("是否跟随任务流 1跟随 2不跟随")
private String followTaskFlow;
/**
* 插件端请求调度中心的令牌 * 插件端请求调度中心的令牌
*/ */
@ApiModelProperty("插件端请求调度中心的令牌") @ApiModelProperty("插件端请求调度中心的令牌")
...@@ -88,13 +70,7 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -88,13 +70,7 @@ public class jobFlowNodeVersion implements Serializable {
* 本地节点(插件方) 的节点的名字 * 本地节点(插件方) 的节点的名字
*/ */
@ApiModelProperty("本地节点(插件方) 的节点的名字") @ApiModelProperty("本地节点(插件方) 的节点的名字")
private String localNodeHandlerName; private String handlerName;
/**
* 当前工作流版本的告警的时机
*/
@ApiModelProperty("当前工作流版本的告警的时机")
private String mailAction;
/** /**
* 这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行 * 这个在设置节点执行时间跟随任务流的时候,他是没用的,但是设置不跟随的时候,节点的执行按照他自己的时间执行
...@@ -115,10 +91,10 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -115,10 +91,10 @@ public class jobFlowNodeVersion implements Serializable {
private String nodeName; private String nodeName;
/** /**
* nodeOfFlowId * 映射的工作流id(当节点为虚节点,有意义)
*/ */
@ApiModelProperty("nodeOfFlowId") @ApiModelProperty("映射的工作流id(当节点为虚节点,有意义)")
private Integer nodeOfFlowId; private Integer mapFlowId;
/** /**
* 节点的超时时间 -1不超时 * 节点的超时时间 -1不超时
...@@ -127,10 +103,10 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -127,10 +103,10 @@ public class jobFlowNodeVersion implements Serializable {
private Long nodeTimeout; private Long nodeTimeout;
/** /**
* 节点的类型 node flow * 是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流
*/ */
@ApiModelProperty("节点的类型 node flow") @ApiModelProperty("是否是虚节点(0 是, 1 否),虚节点代表是内嵌工作流")
private String nodeType; private String isVirtual;
/** /**
* 插件端的url集合 * 插件端的url集合
...@@ -157,10 +133,10 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -157,10 +133,10 @@ public class jobFlowNodeVersion implements Serializable {
private Integer repeatCount; private Integer repeatCount;
/** /**
* 重试的间隔 * 失败重试的间隔(毫秒)
*/ */
@ApiModelProperty("重试的间隔") @ApiModelProperty("失败重试的间隔(毫秒)")
private Long retryInterval; private Long failedRetryInterval;
/** /**
* 路由策略 * 路由策略
...@@ -199,15 +175,9 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -199,15 +175,9 @@ public class jobFlowNodeVersion implements Serializable {
private Date sourceUpdateTime; private Date sourceUpdateTime;
/** /**
* 当前版本的节点的下次执行时间 * 当前节点的版本标识 this
*/ */
@ApiModelProperty("当前版本的节点的下次执行时间") @ApiModelProperty("当前节点的版本标识 this")
private Long triggerNextTime;
/**
* 当前节点的版本标识
*/
@ApiModelProperty("当前节点的版本标识")
private String versionMark; private String versionMark;
/** /**
...@@ -223,6 +193,24 @@ public class jobFlowNodeVersion implements Serializable { ...@@ -223,6 +193,24 @@ public class jobFlowNodeVersion implements Serializable {
private Date addTime; private Date addTime;
/** /**
* 版本名称
*/
@ApiModelProperty("版本名称")
private String versionName;
/**
* 在调度上(0,在 1, 不在)
*/
@ApiModelProperty("在调度上(0,在 1, 不在)")
private String onFork;
/**
* 运行命令
*/
@ApiModelProperty("运行命令")
private String runCommand;
/**
* 源码 * 源码
*/ */
@ApiModelProperty("源码") @ApiModelProperty("源码")
......
package com.byit.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;
/**
*
*/
@ApiModel
@Data
public class NodeVersionDependencyKey implements Serializable {
/**
* 节点版本id
*/
@ApiModelProperty("节点版本id")
private Integer nodeVersionId;
/**
* 依赖的id
*/
@ApiModelProperty("依赖的id")
private Integer dependencyId;
/**
*/
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
public class JobFlowRunRecording implements Serializable { public class RunRecording implements Serializable {
/** /**
* 记录主键 * 记录主键
*/ */
...@@ -43,15 +43,15 @@ public class JobFlowRunRecording implements Serializable { ...@@ -43,15 +43,15 @@ public class JobFlowRunRecording implements Serializable {
private String flowName; private String flowName;
/** /**
* 执行结果 * 执行结果 1 成功 2 失败
*/ */
@ApiModelProperty("执行结果") @ApiModelProperty("执行结果 1 成功 2 失败")
private String flowRunResult; private String flowRunResult;
/** /**
* 1 未开始 2运行中 3暂停 4成功 5失败 * 运行状态 1 未开始 2运行中 3暂停 4完成
*/ */
@ApiModelProperty("1 未开始 2运行中 3暂停 4成功 5失败") @ApiModelProperty("运行状态 1 未开始 2运行中 3暂停 4完成")
private String flowStatus; private String flowStatus;
/** /**
...@@ -61,22 +61,16 @@ public class JobFlowRunRecording implements Serializable { ...@@ -61,22 +61,16 @@ public class JobFlowRunRecording implements Serializable {
private Long flowTimeout; private Long flowTimeout;
/** /**
* 工作流的版本id * 工作流的版本名称
*/ */
@ApiModelProperty("工作流的版本id") @ApiModelProperty("工作流的版本名称")
private Integer flowVersionId; private Integer flowVersionName;
/** /**
* 当前工作流版本的告警的时机 * 当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)
*/ */
@ApiModelProperty("当前工作流版本的告警的时机") @ApiModelProperty("当前工作流版本的告警的时机(0 不告警, 1 完成时告警, 2 失败时告警, 3 成功时告警)")
private String mailAction; private String alarmlAction;
/**
* 节点数量
*/
@ApiModelProperty("节点数量")
private Integer nodeCount;
/** /**
* 设置任务的优先级,1最低 2最高 * 设置任务的优先级,1最低 2最高
...@@ -85,34 +79,40 @@ public class JobFlowRunRecording implements Serializable { ...@@ -85,34 +79,40 @@ public class JobFlowRunRecording implements Serializable {
private String priority; private String priority;
/** /**
* 初始值为节点总数,每次一个节点运行完就将总数-1 * 本次任务的执行时间
*/
@ApiModelProperty("本次任务的执行时间")
private Long triggerTime;
/**
* 责任人
*/ */
@ApiModelProperty("初始值为节点总数,每次一个节点运行完就将总数-1") @ApiModelProperty("责任人")
private Integer remainingNode; private String principal;
/** /**
* 调度状态:0-未开始,1-调度成功, 2-调度失败 * 工作流Id
*/ */
@ApiModelProperty("调度状态:0-未开始,1-调度成功, 2-调度失败") @ApiModelProperty("工作流Id")
private String triggerStatus; private Integer flowId;
/** /**
* 本次任务的执行时间 * 开始时间
*/ */
@ApiModelProperty("本次任务的执行时间") @ApiModelProperty("开始时间")
private Long triggerTime; private Date startTime;
/** /**
* 创建时间 * 结束时间
*/ */
@ApiModelProperty("创建时间") @ApiModelProperty("结束时间")
private Date addTime; private Date endTime;
/** /**
* 创建人 * 是否已告警(0,是 1,否)
*/ */
@ApiModelProperty("创建人") @ApiModelProperty("是否已告警(0,是 1,否)")
private String author; private String isAlarm;
/** /**
*/ */
......
package com.byit.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*/
@ApiModel
@Data
public class SourceHistory implements Serializable {
/**
* 历史源码主键
*/
@ApiModelProperty("历史源码主键")
private String id;
/**
* 节点主键
*/
@ApiModelProperty("节点主键")
private String jobNodeId;
/**
* 备注
*/
@ApiModelProperty("备注")
private String glueRemark;
/**
* 添加时间
*/
@ApiModelProperty("添加时间")
private Date addTime;
/**
* 源代码
*/
@ApiModelProperty("源代码")
private String glueSource;
/**
*/
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.byit.service; package com.byit.service;
import com.byit.model.JobTaskRunLog;
/** /**
* @program: byit-myth-job->JobTaskRunLogService * @program: byit-myth-job->JobTaskRunLogService
* @description: 日志业务表 * @description: 日志业务表
......
package com.byit.service.impl; package com.byit.service.impl;
import com.byit.mapper.JobTaskRunLogMapper;
import com.byit.model.JobTaskRunLog;
import com.byit.service.JobTaskRunLogService; import com.byit.service.JobTaskRunLogService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
......
package com.byit.service.impl; package com.byit.service.impl;
import com.byit.mapper.JobTaskScheduleMapper;
import com.byit.model.JobTaskSchedule; import com.byit.model.JobTaskSchedule;
import com.byit.service.JobTaskScheduleService; import com.byit.service.JobTaskScheduleService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
package com.byit.service.impl; package com.byit.service.impl;
import com.byit.mapper.JobTaskMapper; import com.byit.mapper.JobTaskMapper;
import com.byit.model.JobTask; import com.byit.model.JobTask;
import com.byit.service.JobTaskService; import com.byit.service.JobTaskService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -43,7 +44,7 @@ public class JobTaskServiceImpl implements JobTaskService { ...@@ -43,7 +44,7 @@ public class JobTaskServiceImpl implements JobTaskService {
*/ */
@Override @Override
public void addMythJobTask(JobTask jobTask) { public void addMythJobTask(JobTask jobTask) {
jobTaskMapper.insertSelective(jobTask); jobTaskMapper.saveJobTask(jobTask);
} }
/** /**
...@@ -61,6 +62,6 @@ public class JobTaskServiceImpl implements JobTaskService { ...@@ -61,6 +62,6 @@ public class JobTaskServiceImpl implements JobTaskService {
*/ */
@Override @Override
public void removeMythJobTaskInIds(List<JobTask> jobTasks) { public void removeMythJobTaskInIds(List<JobTask> jobTasks) {
jobTaskMapper.deleteByIds(jobTasks); jobTaskMapper.deleteInId(jobTasks);
} }
} }
...@@ -6,8 +6,6 @@ import com.byit.job.dto.AdminSenPluginDto; ...@@ -6,8 +6,6 @@ import com.byit.job.dto.AdminSenPluginDto;
import com.byit.job.dto.DispatchResponseDto; import com.byit.job.dto.DispatchResponseDto;
import com.byit.job.exceptions.plugin.PluginException; import com.byit.job.exceptions.plugin.PluginException;
import com.byit.job.utils.IpUtil; import com.byit.job.utils.IpUtil;
import com.byit.model.JobTaskRunLog;
import com.byit.model.JobTaskSchedule;
import com.byit.rpc.remoting.invoker.route.LoadBalance; import com.byit.rpc.remoting.invoker.route.LoadBalance;
import com.byit.rpc.remoting.invoker.route.RpcLoadBalance; import com.byit.rpc.remoting.invoker.route.RpcLoadBalance;
import com.byit.service.impl.JobTaskRunLogServiceImpl; import com.byit.service.impl.JobTaskRunLogServiceImpl;
...@@ -70,8 +68,8 @@ public class JavaBeanJobTask implements TimerTask { ...@@ -70,8 +68,8 @@ public class JavaBeanJobTask implements TimerTask {
JobTaskRunLogServiceImpl jobTaskRunLogService = SpringUtil.getBean(JobTaskRunLogServiceImpl.class); JobTaskRunLogServiceImpl jobTaskRunLogService = SpringUtil.getBean(JobTaskRunLogServiceImpl.class);
JobTaskRunLog jobTaskRunLog = new JobTaskRunLog(); JobTaskRunLog jobTaskRunLog = new JobTaskRunLog();
jobTaskRunLog.setLogId(mythJobTaskSchedule.getLogId()); jobTaskRunLog.setLogId(mythJobTaskSchedule.getLogId());
//版本id需要查验 jobTaskRunLog.setFlowVersionId(mythJobTaskSchedule.getVersionId());
//还需要携带版本的名字 jobTaskRunLog.setJobFlowName(mythJobTaskSchedule.getVersionName());
jobTaskRunLog.setRunType("2"); jobTaskRunLog.setRunType("2");
jobTaskRunLog.setJobType("BEAN"); jobTaskRunLog.setJobType("BEAN");
jobTaskRunLog.setLocalNodeHandlerName(mythJobTaskSchedule.getLocalNodeHandlerName()); jobTaskRunLog.setLocalNodeHandlerName(mythJobTaskSchedule.getLocalNodeHandlerName());
......
...@@ -2,9 +2,6 @@ package com.byit.thread; ...@@ -2,9 +2,6 @@ package com.byit.thread;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.byit.job.WorkRoulette; import com.byit.job.WorkRoulette;
import com.byit.model.JobTask;
import com.byit.model.JobTaskRunLog;
import com.byit.model.JobTaskSchedule;
import com.byit.service.JobTaskScheduleService; import com.byit.service.JobTaskScheduleService;
import com.byit.service.JobTaskService; import com.byit.service.JobTaskService;
import com.byit.service.impl.JobTaskRunLogServiceImpl; import com.byit.service.impl.JobTaskRunLogServiceImpl;
......
package com.byit.thread; package com.byit.thread;
import com.byit.job.dto.JobRunResultDto; import com.byit.job.dto.JobRunResultDto;
import com.byit.model.JobTaskRunLog;
import com.byit.service.impl.JobTaskRunLogServiceImpl; import com.byit.service.impl.JobTaskRunLogServiceImpl;
import com.byit.util.SpringUtil; import com.byit.util.SpringUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
......
package com.byit.util; package com.byit.util;
import com.byit.job.dto.PluginBeanJobInfo; import com.byit.job.dto.PluginBeanJobInfo;
import com.byit.model.JobTask;
/** /**
* @program: byit-myth-job->SourceObj2TargetObjUtil * @program: byit-myth-job->SourceObj2TargetObjUtil
...@@ -33,6 +32,8 @@ public class SourceObj2TargetObjUtil { ...@@ -33,6 +32,8 @@ public class SourceObj2TargetObjUtil {
jobTask.setTriggerNextTime(System.currentTimeMillis()+20000); jobTask.setTriggerNextTime(System.currentTimeMillis()+20000);
jobTask.setDependencyNodes("0"); jobTask.setDependencyNodes("0");
jobTask.setJobType("BEAN"); jobTask.setJobType("BEAN");
jobTask.setVersionId(1);
jobTask.setVersionName("V1");
return jobTask; return jobTask;
} }
} }
...@@ -55,8 +55,20 @@ ...@@ -55,8 +55,20 @@
type="XMLMAPPER"> type="XMLMAPPER">
<property name="enableSubPackages" value="false"/> <property name="enableSubPackages" value="false"/>
</javaClientGenerator> </javaClientGenerator>
<table tableName="job_flow_version" domainObjectName="JobFlowVersion" /> <table tableName="flow" domainObjectName="Flow" />
<table tableName="job_flow_node_version" domainObjectName="jobFlowNodeVersion" /> <table tableName="email_alarm" domainObjectName="EmailAlarm" />
<table tableName="flow_version" domainObjectName="FlowVersion" />
<table tableName="flow_version_dependent" domainObjectName="FlowVersionDependent" />
<table tableName="job_task" domainObjectName="JobTask" />
<table tableName="job_task_run_log" domainObjectName="JobTaskRunLog" />
<table tableName="job_task_schedule" domainObjectName="JobTaskSchedule" />
<table tableName="node" domainObjectName="Node" />
<table tableName="node_version" domainObjectName="NodeVersion" />
<table tableName="run_recording" domainObjectName="RunRecording" />
<table tableName="source_history" domainObjectName="SourceHistory" />
<table tableName="flow_dependent" domainObjectName="FlowDependent" />
<table tableName="node_dependency" domainObjectName="NodeDependency" />
<table tableName="node_version_dependency" domainObjectName="NodeVersionDependency" />
</context> </context>
</generatorConfiguration> </generatorConfiguration>
<?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.EmailAlarmMapper">
<resultMap id="BaseResultMap" type="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="flow_name" jdbcType="VARCHAR" property="flowName" />
<result column="run_id" jdbcType="VARCHAR" property="runId" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="alarm_action" jdbcType="CHAR" property="alarmAction" />
<result column="alarm_result" jdbcType="CHAR" property="alarmResult" />
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
<result column="alarm_content" jdbcType="LONGVARCHAR" property="alarmContent" />
</resultMap>
<sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-25 -->
id, flow_id, flow_name, run_id, version_name, alarm_email, alarm_action, alarm_result,
send_time
</sql>
<sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2019-12-25 -->
alarm_content
</sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
<!-- generated @mbg.generated date: 2019-12-25 -->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from email_alarm
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from email_alarm
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into email_alarm (id, flow_id, flow_name,
run_id, version_name, alarm_email,
alarm_action, alarm_result, send_time,
alarm_content)
values (#{id,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR},
#{runId,jdbcType=VARCHAR}, #{versionName,jdbcType=VARCHAR}, #{alarmEmail,jdbcType=VARCHAR},
#{alarmAction,jdbcType=CHAR}, #{alarmResult,jdbcType=CHAR}, #{sendTime,jdbcType=TIMESTAMP},
#{alarmContent,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into email_alarm
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="flowId != null">
flow_id,
</if>
<if test="flowName != null">
flow_name,
</if>
<if test="runId != null">
run_id,
</if>
<if test="versionName != null">
version_name,
</if>
<if test="alarmEmail != null">
alarm_email,
</if>
<if test="alarmAction != null">
alarm_action,
</if>
<if test="alarmResult != null">
alarm_result,
</if>
<if test="sendTime != null">
send_time,
</if>
<if test="alarmContent != null">
alarm_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="flowId != null">
#{flowId,jdbcType=INTEGER},
</if>
<if test="flowName != null">
#{flowName,jdbcType=VARCHAR},
</if>
<if test="runId != null">
#{runId,jdbcType=VARCHAR},
</if>
<if test="versionName != null">
#{versionName,jdbcType=VARCHAR},
</if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="alarmAction != null">
#{alarmAction,jdbcType=CHAR},
</if>
<if test="alarmResult != null">
#{alarmResult,jdbcType=CHAR},
</if>
<if test="sendTime != null">
#{sendTime,jdbcType=TIMESTAMP},
</if>
<if test="alarmContent != null">
#{alarmContent,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByIdSelective" parameterType="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
update email_alarm
<set>
<if test="flowId != null">
flow_id = #{flowId,jdbcType=INTEGER},
</if>
<if test="flowName != null">
flow_name = #{flowName,jdbcType=VARCHAR},
</if>
<if test="runId != null">
run_id = #{runId,jdbcType=VARCHAR},
</if>
<if test="versionName != null">
version_name = #{versionName,jdbcType=VARCHAR},
</if>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="alarmAction != null">
alarm_action = #{alarmAction,jdbcType=CHAR},
</if>
<if test="alarmResult != null">
alarm_result = #{alarmResult,jdbcType=CHAR},
</if>
<if test="sendTime != null">
send_time = #{sendTime,jdbcType=TIMESTAMP},
</if>
<if test="alarmContent != null">
alarm_content = #{alarmContent,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
update email_alarm
set flow_id = #{flowId,jdbcType=INTEGER},
flow_name = #{flowName,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
version_name = #{versionName,jdbcType=VARCHAR},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
alarm_action = #{alarmAction,jdbcType=CHAR},
alarm_result = #{alarmResult,jdbcType=CHAR},
send_time = #{sendTime,jdbcType=TIMESTAMP},
alarm_content = #{alarmContent,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateById" parameterType="com.byit.model.EmailAlarm">
<!-- generated @mbg.generated date: 2019-12-25 -->
update email_alarm
set flow_id = #{flowId,jdbcType=INTEGER},
flow_name = #{flowName,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
version_name = #{versionName,jdbcType=VARCHAR},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
alarm_action = #{alarmAction,jdbcType=CHAR},
alarm_result = #{alarmResult,jdbcType=CHAR},
send_time = #{sendTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobFlowDependentMapper"> <mapper namespace="com.byit.mapper.FlowDependentMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobFlowDependentKey"> <resultMap id="BaseResultMap" type="com.byit.model.FlowDependentKey">
<!-- generated @mbg.generated date: 2019-12-23 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<id column="flow_id" jdbcType="INTEGER" property="flowId" /> <id column="flow_id" jdbcType="INTEGER" property="flowId" />
<id column="depend_flow_id" jdbcType="INTEGER" property="dependFlowId" /> <id column="depend_flow_id" jdbcType="INTEGER" property="dependFlowId" />
</resultMap> </resultMap>
<delete id="deleteById" parameterType="com.byit.model.JobFlowDependentKey"> <delete id="deleteById" parameterType="com.byit.model.FlowDependentKey">
<!-- generated @mbg.generated date: 2019-12-23 --> <!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_flow_dependent delete from flow_dependent
where flow_id = #{flowId,jdbcType=INTEGER} where flow_id = #{flowId,jdbcType=INTEGER}
and depend_flow_id = #{dependFlowId,jdbcType=INTEGER} and depend_flow_id = #{dependFlowId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobFlowDependentKey"> <insert id="insert" parameterType="com.byit.model.FlowDependentKey">
<!-- generated @mbg.generated date: 2019-12-23 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_dependent (flow_id, depend_flow_id) insert into flow_dependent (flow_id, depend_flow_id)
values (#{flowId,jdbcType=INTEGER}, #{dependFlowId,jdbcType=INTEGER}) values (#{flowId,jdbcType=INTEGER}, #{dependFlowId,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobFlowDependentKey"> <insert id="insertSelective" parameterType="com.byit.model.FlowDependentKey">
<!-- generated @mbg.generated date: 2019-12-23 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_dependent insert into flow_dependent
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="flowId != null"> <if test="flowId != null">
flow_id, flow_id,
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobFlowMapper"> <mapper namespace="com.byit.mapper.FlowMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobFlow"> <resultMap id="BaseResultMap" type="com.byit.model.Flow">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<id column="flow_id" jdbcType="INTEGER" property="flowId" /> <id column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" /> <result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="exec_type" jdbcType="CHAR" property="execType" /> <result column="exec_type" jdbcType="CHAR" property="execType" />
...@@ -14,58 +14,59 @@ ...@@ -14,58 +14,59 @@
<result column="is_have_depend" jdbcType="CHAR" property="isHaveDepend" /> <result column="is_have_depend" jdbcType="CHAR" property="isHaveDepend" />
<result column="is_inner" jdbcType="CHAR" property="isInner" /> <result column="is_inner" jdbcType="CHAR" property="isInner" />
<result column="is_top" jdbcType="CHAR" property="isTop" /> <result column="is_top" jdbcType="CHAR" property="isTop" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" /> <result column="alarml_action" jdbcType="CHAR" property="alarmlAction" />
<result column="node_date_is_follow_flow" jdbcType="CHAR" property="nodeDateIsFollowFlow" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remaining_count" jdbcType="INTEGER" property="remainingCount" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" /> <result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" />
<result column="workspace_id" jdbcType="INTEGER" property="workspaceId" /> <result column="workspace_id" jdbcType="INTEGER" property="workspaceId" />
<result column="author" jdbcType="VARCHAR" property="author" /> <result column="author" jdbcType="VARCHAR" property="author" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" /> <result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
<result column="start_up" jdbcType="CHAR" property="startUp" /> <result column="start_up" jdbcType="CHAR" property="startUp" />
<result column="principal" jdbcType="VARCHAR" property="principal" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="remaining_count" jdbcType="INTEGER" property="remainingCount" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
flow_id, alarm_email, exec_type, flow_cron, flow_desc, flow_name, flow_node_count, flow_id, alarm_email, exec_type, flow_cron, flow_desc, flow_name, flow_node_count,
flow_timeout, is_have_depend, is_inner, is_top, mail_action, node_date_is_follow_flow, flow_timeout, is_have_depend, is_inner, is_top, alarml_action, priority, trigger_next_time,
priority, remaining_count, repeat_count, trigger_next_time, workspace_id, author, workspace_id, author, add_time, start_up, principal, version_name, repeat_count,
add_time, start_up remaining_count
</sql> </sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from job_flow_current from flow
where flow_id = #{flowId,jdbcType=INTEGER} where flow_id = #{flowId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_flow_current delete from flow
where flow_id = #{flowId,jdbcType=INTEGER} where flow_id = #{flowId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobFlow"> <insert id="insert" parameterType="com.byit.model.Flow">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_current (flow_id, alarm_email, exec_type, insert into flow (flow_id, alarm_email, exec_type,
flow_cron, flow_desc, flow_name, flow_cron, flow_desc, flow_name,
flow_node_count, flow_timeout, is_have_depend, flow_node_count, flow_timeout, is_have_depend,
is_inner, is_top, mail_action, is_inner, is_top, alarml_action,
node_date_is_follow_flow, priority, remaining_count, priority, trigger_next_time, workspace_id,
repeat_count, trigger_next_time, workspace_id, author, add_time, start_up,
author, add_time, start_up principal, version_name, repeat_count,
) remaining_count)
values (#{flowId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{execType,jdbcType=CHAR}, values (#{flowId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{execType,jdbcType=CHAR},
#{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR}, #{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR},
#{flowNodeCount,jdbcType=INTEGER}, #{flowTimeout,jdbcType=BIGINT}, #{isHaveDepend,jdbcType=CHAR}, #{flowNodeCount,jdbcType=INTEGER}, #{flowTimeout,jdbcType=BIGINT}, #{isHaveDepend,jdbcType=CHAR},
#{isInner,jdbcType=CHAR}, #{isTop,jdbcType=CHAR}, #{mailAction,jdbcType=CHAR}, #{isInner,jdbcType=CHAR}, #{isTop,jdbcType=CHAR}, #{alarmlAction,jdbcType=CHAR},
#{nodeDateIsFollowFlow,jdbcType=CHAR}, #{priority,jdbcType=CHAR}, #{remainingCount,jdbcType=INTEGER}, #{priority,jdbcType=CHAR}, #{triggerNextTime,jdbcType=BIGINT}, #{workspaceId,jdbcType=INTEGER},
#{repeatCount,jdbcType=INTEGER}, #{triggerNextTime,jdbcType=BIGINT}, #{workspaceId,jdbcType=INTEGER}, #{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{startUp,jdbcType=CHAR},
#{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{startUp,jdbcType=CHAR} #{principal,jdbcType=VARCHAR}, #{versionName,jdbcType=VARCHAR}, #{repeatCount,jdbcType=INTEGER},
) #{remainingCount,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobFlow"> <insert id="insertSelective" parameterType="com.byit.model.Flow">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_current insert into flow
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="flowId != null"> <if test="flowId != null">
flow_id, flow_id,
...@@ -100,21 +101,12 @@ ...@@ -100,21 +101,12 @@
<if test="isTop != null"> <if test="isTop != null">
is_top, is_top,
</if> </if>
<if test="mailAction != null"> <if test="alarmlAction != null">
mail_action, alarml_action,
</if>
<if test="nodeDateIsFollowFlow != null">
node_date_is_follow_flow,
</if> </if>
<if test="priority != null"> <if test="priority != null">
priority, priority,
</if> </if>
<if test="remainingCount != null">
remaining_count,
</if>
<if test="repeatCount != null">
repeat_count,
</if>
<if test="triggerNextTime != null"> <if test="triggerNextTime != null">
trigger_next_time, trigger_next_time,
</if> </if>
...@@ -130,6 +122,18 @@ ...@@ -130,6 +122,18 @@
<if test="startUp != null"> <if test="startUp != null">
start_up, start_up,
</if> </if>
<if test="principal != null">
principal,
</if>
<if test="versionName != null">
version_name,
</if>
<if test="repeatCount != null">
repeat_count,
</if>
<if test="remainingCount != null">
remaining_count,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="flowId != null"> <if test="flowId != null">
...@@ -165,21 +169,12 @@ ...@@ -165,21 +169,12 @@
<if test="isTop != null"> <if test="isTop != null">
#{isTop,jdbcType=CHAR}, #{isTop,jdbcType=CHAR},
</if> </if>
<if test="mailAction != null"> <if test="alarmlAction != null">
#{mailAction,jdbcType=CHAR}, #{alarmlAction,jdbcType=CHAR},
</if>
<if test="nodeDateIsFollowFlow != null">
#{nodeDateIsFollowFlow,jdbcType=CHAR},
</if> </if>
<if test="priority != null"> <if test="priority != null">
#{priority,jdbcType=CHAR}, #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingCount != null">
#{remainingCount,jdbcType=INTEGER},
</if>
<if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER},
</if>
<if test="triggerNextTime != null"> <if test="triggerNextTime != null">
#{triggerNextTime,jdbcType=BIGINT}, #{triggerNextTime,jdbcType=BIGINT},
</if> </if>
...@@ -195,11 +190,23 @@ ...@@ -195,11 +190,23 @@
<if test="startUp != null"> <if test="startUp != null">
#{startUp,jdbcType=CHAR}, #{startUp,jdbcType=CHAR},
</if> </if>
<if test="principal != null">
#{principal,jdbcType=VARCHAR},
</if>
<if test="versionName != null">
#{versionName,jdbcType=VARCHAR},
</if>
<if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER},
</if>
<if test="remainingCount != null">
#{remainingCount,jdbcType=INTEGER},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.JobFlow"> <update id="updateByIdSelective" parameterType="com.byit.model.Flow">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_current update flow
<set> <set>
<if test="alarmEmail != null"> <if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR}, alarm_email = #{alarmEmail,jdbcType=VARCHAR},
...@@ -231,21 +238,12 @@ ...@@ -231,21 +238,12 @@
<if test="isTop != null"> <if test="isTop != null">
is_top = #{isTop,jdbcType=CHAR}, is_top = #{isTop,jdbcType=CHAR},
</if> </if>
<if test="mailAction != null"> <if test="alarmlAction != null">
mail_action = #{mailAction,jdbcType=CHAR}, alarml_action = #{alarmlAction,jdbcType=CHAR},
</if>
<if test="nodeDateIsFollowFlow != null">
node_date_is_follow_flow = #{nodeDateIsFollowFlow,jdbcType=CHAR},
</if> </if>
<if test="priority != null"> <if test="priority != null">
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingCount != null">
remaining_count = #{remainingCount,jdbcType=INTEGER},
</if>
<if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER},
</if>
<if test="triggerNextTime != null"> <if test="triggerNextTime != null">
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}, trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
</if> </if>
...@@ -261,12 +259,24 @@ ...@@ -261,12 +259,24 @@
<if test="startUp != null"> <if test="startUp != null">
start_up = #{startUp,jdbcType=CHAR}, start_up = #{startUp,jdbcType=CHAR},
</if> </if>
<if test="principal != null">
principal = #{principal,jdbcType=VARCHAR},
</if>
<if test="versionName != null">
version_name = #{versionName,jdbcType=VARCHAR},
</if>
<if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER},
</if>
<if test="remainingCount != null">
remaining_count = #{remainingCount,jdbcType=INTEGER},
</if>
</set> </set>
where flow_id = #{flowId,jdbcType=INTEGER} where flow_id = #{flowId,jdbcType=INTEGER}
</update> </update>
<update id="updateById" parameterType="com.byit.model.JobFlow"> <update id="updateById" parameterType="com.byit.model.Flow">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_current update flow
set alarm_email = #{alarmEmail,jdbcType=VARCHAR}, set alarm_email = #{alarmEmail,jdbcType=VARCHAR},
exec_type = #{execType,jdbcType=CHAR}, exec_type = #{execType,jdbcType=CHAR},
flow_cron = #{flowCron,jdbcType=VARCHAR}, flow_cron = #{flowCron,jdbcType=VARCHAR},
...@@ -277,16 +287,17 @@ ...@@ -277,16 +287,17 @@
is_have_depend = #{isHaveDepend,jdbcType=CHAR}, is_have_depend = #{isHaveDepend,jdbcType=CHAR},
is_inner = #{isInner,jdbcType=CHAR}, is_inner = #{isInner,jdbcType=CHAR},
is_top = #{isTop,jdbcType=CHAR}, is_top = #{isTop,jdbcType=CHAR},
mail_action = #{mailAction,jdbcType=CHAR}, alarml_action = #{alarmlAction,jdbcType=CHAR},
node_date_is_follow_flow = #{nodeDateIsFollowFlow,jdbcType=CHAR},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remaining_count = #{remainingCount,jdbcType=INTEGER},
repeat_count = #{repeatCount,jdbcType=INTEGER},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}, trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
workspace_id = #{workspaceId,jdbcType=INTEGER}, workspace_id = #{workspaceId,jdbcType=INTEGER},
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}, add_time = #{addTime,jdbcType=TIMESTAMP},
start_up = #{startUp,jdbcType=CHAR} start_up = #{startUp,jdbcType=CHAR},
principal = #{principal,jdbcType=VARCHAR},
version_name = #{versionName,jdbcType=VARCHAR},
repeat_count = #{repeatCount,jdbcType=INTEGER},
remaining_count = #{remainingCount,jdbcType=INTEGER}
where flow_id = #{flowId,jdbcType=INTEGER} where flow_id = #{flowId,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?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.FlowVersionDependentMapper">
<resultMap id="BaseResultMap" type="com.byit.model.FlowVersionDependentKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" />
<id column="dependent_id" jdbcType="INTEGER" property="dependentId" />
</resultMap>
<delete id="deleteById" parameterType="com.byit.model.FlowVersionDependentKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from flow_version_dependent
where flow_version_id = #{flowVersionId,jdbcType=INTEGER}
and dependent_id = #{dependentId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.byit.model.FlowVersionDependentKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into flow_version_dependent (flow_version_id, dependent_id)
values (#{flowVersionId,jdbcType=INTEGER}, #{dependentId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.byit.model.FlowVersionDependentKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into flow_version_dependent
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="flowVersionId != null">
flow_version_id,
</if>
<if test="dependentId != null">
dependent_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="flowVersionId != null">
#{flowVersionId,jdbcType=INTEGER},
</if>
<if test="dependentId != null">
#{dependentId,jdbcType=INTEGER},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobFlowVersionMapper"> <mapper namespace="com.byit.mapper.FlowVersionMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobFlowVersion"> <resultMap id="BaseResultMap" type="com.byit.model.FlowVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<id column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" /> <id column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" /> <result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" /> <result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
...@@ -12,55 +12,61 @@ ...@@ -12,55 +12,61 @@
<result column="flow_id" jdbcType="INTEGER" property="flowId" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="flow_name" jdbcType="VARCHAR" property="flowName" /> <result column="flow_name" jdbcType="VARCHAR" property="flowName" />
<result column="flow_node_count" jdbcType="INTEGER" property="flowNodeCount" /> <result column="flow_node_count" jdbcType="INTEGER" property="flowNodeCount" />
<result column="flow_timeout" jdbcType="BIGINT" property="flowTimeout" /> <result column="alarml_action" jdbcType="CHAR" property="alarmlAction" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" /> <result column="schedule_follow" jdbcType="CHAR" property="scheduleFollow" />
<result column="node_date_is_follow_flow" jdbcType="CHAR" property="nodeDateIsFollowFlow" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remove_mark" jdbcType="CHAR" property="removeMark" /> <result column="remove_mark" jdbcType="CHAR" property="removeMark" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" /> <result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="version_mark" jdbcType="CHAR" property="versionMark" /> <result column="version_mark" jdbcType="CHAR" property="versionMark" />
<result column="workspace_id" jdbcType="INTEGER" property="workspaceId" /> <result column="workspace_id" jdbcType="INTEGER" property="workspaceId" />
<result column="author" jdbcType="VARCHAR" property="author" /> <result column="author" jdbcType="VARCHAR" property="author" />
<result column="principal" jdbcType="VARCHAR" property="principal" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="is_have_depend" jdbcType="CHAR" property="isHaveDepend" />
<result column="is_inner" jdbcType="CHAR" property="isInner" />
<result column="is_top" jdbcType="CHAR" property="isTop" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
flow_version_id, add_time, alarm_email, exec_type, flow_cron, flow_desc, flow_id, flow_version_id, add_time, alarm_email, exec_type, flow_cron, flow_desc, flow_id,
flow_name, flow_node_count, flow_timeout, mail_action, node_date_is_follow_flow, flow_name, flow_node_count, alarml_action, schedule_follow, priority, remove_mark,
priority, remove_mark, repeat_count, update_time, version_mark, workspace_id, author repeat_count, version_mark, workspace_id, author, principal, version_name, is_have_depend,
is_inner, is_top
</sql> </sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from job_flow_version from flow_version
where flow_version_id = #{flowVersionId,jdbcType=INTEGER} where flow_version_id = #{flowVersionId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_flow_version delete from flow_version
where flow_version_id = #{flowVersionId,jdbcType=INTEGER} where flow_version_id = #{flowVersionId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobFlowVersion"> <insert id="insert" parameterType="com.byit.model.FlowVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_version (flow_version_id, add_time, alarm_email, insert into flow_version (flow_version_id, add_time, alarm_email,
exec_type, flow_cron, flow_desc, exec_type, flow_cron, flow_desc,
flow_id, flow_name, flow_node_count, flow_id, flow_name, flow_node_count,
flow_timeout, mail_action, node_date_is_follow_flow, alarml_action, schedule_follow, priority,
priority, remove_mark, repeat_count, remove_mark, repeat_count, version_mark,
update_time, version_mark, workspace_id, workspace_id, author, principal,
author) version_name, is_have_depend, is_inner,
is_top)
values (#{flowVersionId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{alarmEmail,jdbcType=VARCHAR}, values (#{flowVersionId,jdbcType=INTEGER}, #{addTime,jdbcType=TIMESTAMP}, #{alarmEmail,jdbcType=VARCHAR},
#{execType,jdbcType=CHAR}, #{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR}, #{execType,jdbcType=CHAR}, #{flowCron,jdbcType=VARCHAR}, #{flowDesc,jdbcType=VARCHAR},
#{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR}, #{flowNodeCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR}, #{flowNodeCount,jdbcType=INTEGER},
#{flowTimeout,jdbcType=BIGINT}, #{mailAction,jdbcType=CHAR}, #{nodeDateIsFollowFlow,jdbcType=CHAR}, #{alarmlAction,jdbcType=CHAR}, #{scheduleFollow,jdbcType=CHAR}, #{priority,jdbcType=CHAR},
#{priority,jdbcType=CHAR}, #{removeMark,jdbcType=CHAR}, #{repeatCount,jdbcType=INTEGER}, #{removeMark,jdbcType=CHAR}, #{repeatCount,jdbcType=INTEGER}, #{versionMark,jdbcType=CHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{versionMark,jdbcType=CHAR}, #{workspaceId,jdbcType=INTEGER}, #{workspaceId,jdbcType=INTEGER}, #{author,jdbcType=VARCHAR}, #{principal,jdbcType=VARCHAR},
#{author,jdbcType=VARCHAR}) #{versionName,jdbcType=VARCHAR}, #{isHaveDepend,jdbcType=CHAR}, #{isInner,jdbcType=CHAR},
#{isTop,jdbcType=CHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobFlowVersion"> <insert id="insertSelective" parameterType="com.byit.model.FlowVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_version insert into flow_version
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="flowVersionId != null"> <if test="flowVersionId != null">
flow_version_id, flow_version_id,
...@@ -89,14 +95,11 @@ ...@@ -89,14 +95,11 @@
<if test="flowNodeCount != null"> <if test="flowNodeCount != null">
flow_node_count, flow_node_count,
</if> </if>
<if test="flowTimeout != null"> <if test="alarmlAction != null">
flow_timeout, alarml_action,
</if> </if>
<if test="mailAction != null"> <if test="scheduleFollow != null">
mail_action, schedule_follow,
</if>
<if test="nodeDateIsFollowFlow != null">
node_date_is_follow_flow,
</if> </if>
<if test="priority != null"> <if test="priority != null">
priority, priority,
...@@ -107,9 +110,6 @@ ...@@ -107,9 +110,6 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
repeat_count, repeat_count,
</if> </if>
<if test="updateTime != null">
update_time,
</if>
<if test="versionMark != null"> <if test="versionMark != null">
version_mark, version_mark,
</if> </if>
...@@ -119,6 +119,21 @@ ...@@ -119,6 +119,21 @@
<if test="author != null"> <if test="author != null">
author, author,
</if> </if>
<if test="principal != null">
principal,
</if>
<if test="versionName != null">
version_name,
</if>
<if test="isHaveDepend != null">
is_have_depend,
</if>
<if test="isInner != null">
is_inner,
</if>
<if test="isTop != null">
is_top,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="flowVersionId != null"> <if test="flowVersionId != null">
...@@ -148,14 +163,11 @@ ...@@ -148,14 +163,11 @@
<if test="flowNodeCount != null"> <if test="flowNodeCount != null">
#{flowNodeCount,jdbcType=INTEGER}, #{flowNodeCount,jdbcType=INTEGER},
</if> </if>
<if test="flowTimeout != null"> <if test="alarmlAction != null">
#{flowTimeout,jdbcType=BIGINT}, #{alarmlAction,jdbcType=CHAR},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeDateIsFollowFlow != null"> <if test="scheduleFollow != null">
#{nodeDateIsFollowFlow,jdbcType=CHAR}, #{scheduleFollow,jdbcType=CHAR},
</if> </if>
<if test="priority != null"> <if test="priority != null">
#{priority,jdbcType=CHAR}, #{priority,jdbcType=CHAR},
...@@ -166,9 +178,6 @@ ...@@ -166,9 +178,6 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER}, #{repeatCount,jdbcType=INTEGER},
</if> </if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="versionMark != null"> <if test="versionMark != null">
#{versionMark,jdbcType=CHAR}, #{versionMark,jdbcType=CHAR},
</if> </if>
...@@ -178,11 +187,26 @@ ...@@ -178,11 +187,26 @@
<if test="author != null"> <if test="author != null">
#{author,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
</if> </if>
<if test="principal != null">
#{principal,jdbcType=VARCHAR},
</if>
<if test="versionName != null">
#{versionName,jdbcType=VARCHAR},
</if>
<if test="isHaveDepend != null">
#{isHaveDepend,jdbcType=CHAR},
</if>
<if test="isInner != null">
#{isInner,jdbcType=CHAR},
</if>
<if test="isTop != null">
#{isTop,jdbcType=CHAR},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.JobFlowVersion"> <update id="updateByIdSelective" parameterType="com.byit.model.FlowVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_version update flow_version
<set> <set>
<if test="addTime != null"> <if test="addTime != null">
add_time = #{addTime,jdbcType=TIMESTAMP}, add_time = #{addTime,jdbcType=TIMESTAMP},
...@@ -208,14 +232,11 @@ ...@@ -208,14 +232,11 @@
<if test="flowNodeCount != null"> <if test="flowNodeCount != null">
flow_node_count = #{flowNodeCount,jdbcType=INTEGER}, flow_node_count = #{flowNodeCount,jdbcType=INTEGER},
</if> </if>
<if test="flowTimeout != null"> <if test="alarmlAction != null">
flow_timeout = #{flowTimeout,jdbcType=BIGINT}, alarml_action = #{alarmlAction,jdbcType=CHAR},
</if> </if>
<if test="mailAction != null"> <if test="scheduleFollow != null">
mail_action = #{mailAction,jdbcType=CHAR}, schedule_follow = #{scheduleFollow,jdbcType=CHAR},
</if>
<if test="nodeDateIsFollowFlow != null">
node_date_is_follow_flow = #{nodeDateIsFollowFlow,jdbcType=CHAR},
</if> </if>
<if test="priority != null"> <if test="priority != null">
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
...@@ -226,9 +247,6 @@ ...@@ -226,9 +247,6 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
</if> </if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="versionMark != null"> <if test="versionMark != null">
version_mark = #{versionMark,jdbcType=CHAR}, version_mark = #{versionMark,jdbcType=CHAR},
</if> </if>
...@@ -238,12 +256,27 @@ ...@@ -238,12 +256,27 @@
<if test="author != null"> <if test="author != null">
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
</if> </if>
<if test="principal != null">
principal = #{principal,jdbcType=VARCHAR},
</if>
<if test="versionName != null">
version_name = #{versionName,jdbcType=VARCHAR},
</if>
<if test="isHaveDepend != null">
is_have_depend = #{isHaveDepend,jdbcType=CHAR},
</if>
<if test="isInner != null">
is_inner = #{isInner,jdbcType=CHAR},
</if>
<if test="isTop != null">
is_top = #{isTop,jdbcType=CHAR},
</if>
</set> </set>
where flow_version_id = #{flowVersionId,jdbcType=INTEGER} where flow_version_id = #{flowVersionId,jdbcType=INTEGER}
</update> </update>
<update id="updateById" parameterType="com.byit.model.JobFlowVersion"> <update id="updateById" parameterType="com.byit.model.FlowVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_version update flow_version
set add_time = #{addTime,jdbcType=TIMESTAMP}, set add_time = #{addTime,jdbcType=TIMESTAMP},
alarm_email = #{alarmEmail,jdbcType=VARCHAR}, alarm_email = #{alarmEmail,jdbcType=VARCHAR},
exec_type = #{execType,jdbcType=CHAR}, exec_type = #{execType,jdbcType=CHAR},
...@@ -252,16 +285,19 @@ ...@@ -252,16 +285,19 @@
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
flow_name = #{flowName,jdbcType=VARCHAR}, flow_name = #{flowName,jdbcType=VARCHAR},
flow_node_count = #{flowNodeCount,jdbcType=INTEGER}, flow_node_count = #{flowNodeCount,jdbcType=INTEGER},
flow_timeout = #{flowTimeout,jdbcType=BIGINT}, alarml_action = #{alarmlAction,jdbcType=CHAR},
mail_action = #{mailAction,jdbcType=CHAR}, schedule_follow = #{scheduleFollow,jdbcType=CHAR},
node_date_is_follow_flow = #{nodeDateIsFollowFlow,jdbcType=CHAR},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remove_mark = #{removeMark,jdbcType=CHAR}, remove_mark = #{removeMark,jdbcType=CHAR},
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
version_mark = #{versionMark,jdbcType=CHAR}, version_mark = #{versionMark,jdbcType=CHAR},
workspace_id = #{workspaceId,jdbcType=INTEGER}, workspace_id = #{workspaceId,jdbcType=INTEGER},
author = #{author,jdbcType=VARCHAR} author = #{author,jdbcType=VARCHAR},
principal = #{principal,jdbcType=VARCHAR},
version_name = #{versionName,jdbcType=VARCHAR},
is_have_depend = #{isHaveDepend,jdbcType=CHAR},
is_inner = #{isInner,jdbcType=CHAR},
is_top = #{isTop,jdbcType=CHAR}
where flow_version_id = #{flowVersionId,jdbcType=INTEGER} where flow_version_id = #{flowVersionId,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobTaskMapper"> <mapper namespace="com.byit.mapper.JobTaskMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobTask"> <resultMap id="BaseResultMap" type="com.byit.model.JobTask">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="node_id" jdbcType="INTEGER" property="nodeId" /> <result column="node_id" jdbcType="INTEGER" property="nodeId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" /> <result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" />
<result column="callback_token" jdbcType="VARCHAR" property="callbackToken" /> <result column="plugin_token" jdbcType="VARCHAR" property="pluginToken" />
<result column="dependency_nodes" jdbcType="VARCHAR" property="dependencyNodes" />
<result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" /> <result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" />
<result column="flow_id" jdbcType="INTEGER" property="flowId" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="follow_task_flow" jdbcType="CHAR" property="followTaskFlow" />
<result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" /> <result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" />
<result column="job_type" jdbcType="VARCHAR" property="jobType" /> <result column="job_type" jdbcType="VARCHAR" property="jobType" />
<result column="local_node_handler_name" jdbcType="VARCHAR" property="localNodeHandlerName" /> <result column="handler_name" jdbcType="VARCHAR" property="handlerName" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" /> <result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" /> <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_of_flow_id" jdbcType="INTEGER" property="nodeOfFlowId" /> <result column="map_flow_id" jdbcType="INTEGER" property="mapFlowId" />
<result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" /> <result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="is_virtual" jdbcType="CHAR" property="isVirtual" />
<result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" /> <result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remaining_count" jdbcType="INTEGER" property="remainingCount" /> <result column="failed_retry_interval" jdbcType="BIGINT" property="failedRetryInterval" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="retry_interval" jdbcType="BIGINT" property="retryInterval" />
<result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" /> <result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" />
<result column="run_id" jdbcType="VARCHAR" property="runId" /> <result column="run_id" jdbcType="VARCHAR" property="runId" />
<result column="run_param" jdbcType="VARCHAR" property="runParam" /> <result column="run_param" jdbcType="VARCHAR" property="runParam" />
<result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" /> <result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" />
<result column="script_urls" jdbcType="VARCHAR" property="scriptUrls" /> <result column="script_urls" jdbcType="VARCHAR" property="scriptUrls" />
<result column="source_principal" jdbcType="VARCHAR" property="sourcePrincipal" /> <result column="source_principal" jdbcType="VARCHAR" property="sourcePrincipal" />
<result column="source_update_time" jdbcType="DATE" property="sourceUpdateTime" /> <result column="trigger_time" jdbcType="BIGINT" property="triggerTime" />
<result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" />
<result column="trigger_status" jdbcType="CHAR" property="triggerStatus" /> <result column="trigger_status" jdbcType="CHAR" property="triggerStatus" />
<result column="run_source" jdbcType="LONGVARCHAR" property="runSource" />
<result column="add_time" jdbcType="DATE" property="addTime" />
<result column="author" jdbcType="VARCHAR" property="author" />
<result column="version_id" jdbcType="INTEGER" property="versionId" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" /> <result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTask">
<!-- generated @mbg.generated date: 2019-12-25 -->
<result column="run_source" jdbcType="LONGVARCHAR" property="runSource" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, node_id, alarm_email, block_strategy, callback_token, dependency_nodes, failed_retry_count, <!-- generated @mbg.generated date: 2019-12-25 -->
flow_id, follow_task_flow, gateway_token, job_type, local_node_handler_name, mail_action, id, node_id, block_strategy, plugin_token, failed_retry_count, flow_id, gateway_token,
node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type, plugin_urls, job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
priority, remaining_count, repeat_count, retry_interval, routing_strategy, run_id, plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_param, run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time, run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
trigger_status,run_source,add_time,author,version_id,version_name run_command
</sql>
<sql id="Blob_Column_List">
run_source
</sql> </sql>
<!--查询七秒内将要执行的数据--> <!--查询七秒内将要执行的数据-->
<select id="findJobTaskByTriggerNextTimeLessThanEqual" resultMap="BaseResultMap"> <select id="findJobTaskByTriggerNextTimeLessThanEqual" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from job_task from job_task
where trigger_next_time <![CDATA[ <= ]]> #{triggerNextTime,jdbcType=BIGINT} where trigger_time <![CDATA[ <= ]]> #{triggerNextTime,jdbcType=BIGINT}
</select> </select>
<!--根据id执行数据--> <!--根据id查询-->
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="findJobTaskById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from job_task from job_task
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<!--根据id删除数据-->
<delete id="deleteById" parameterType="java.lang.Integer">
delete from job_task
where id = #{id,jdbcType=INTEGER}
</delete>
<!--多个删除-->
<delete id="deleteByIds" parameterType="com.byit.model.JobTask">
delete from job_task
where id in
<foreach collection="mythJobTasks" item="mythJobTask" open="(" separator="," close=")">
#{mythJobTask.id}
</foreach>
</delete>
<!--添加一个任务-->
<insert id="insert" parameterType="com.byit.model.JobTask">
insert into job_task (id, node_id, alarm_email, <!--动态插入-->
block_strategy, callback_token, dependency_nodes, <insert id="saveJobTask" parameterType="com.byit.model.JobTask">
failed_retry_count, flow_id, follow_task_flow,
gateway_token, job_type, local_node_handler_name,
mail_action, node_cron, node_desc,
node_name, node_of_flow_id, node_timeout,
node_type, plugin_urls, priority,
remaining_count, repeat_count, retry_interval,
routing_strategy, run_id, run_param,
run_source_desc, script_urls, source_principal,
source_update_time, trigger_next_time, trigger_status,
run_source,add_time,author,version_id,version_name)
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR},
#{gatewayToken,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR}, #{localNodeHandlerName,jdbcType=VARCHAR},
#{mailAction,jdbcType=CHAR}, #{nodeCron,jdbcType=VARCHAR}, #{nodeDesc,jdbcType=VARCHAR},
#{nodeName,jdbcType=VARCHAR}, #{nodeOfFlowId,jdbcType=INTEGER}, #{nodeTimeout,jdbcType=BIGINT},
#{nodeType,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR}, #{priority,jdbcType=CHAR},
#{remainingCount,jdbcType=INTEGER}, #{repeatCount,jdbcType=INTEGER}, #{retryInterval,jdbcType=BIGINT},
#{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR},
#{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
#{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{triggerStatus,jdbcType=CHAR},
#{runSource,jdbcType=LONGVARCHAR},#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR},#{versionId,jdbcType=INTEGER},
#{versionName,jdbcType=VARCHAR})
</insert>
<!--动态数据添加-->
<insert id="insertSelective" parameterType="com.byit.model.JobTask">
insert into job_task insert into job_task
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -118,17 +76,11 @@ ...@@ -118,17 +76,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
node_id, node_id,
</if> </if>
<if test="alarmEmail != null">
alarm_email,
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy, block_strategy,
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
callback_token, plugin_token,
</if>
<if test="dependencyNodes != null">
dependency_nodes,
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count, failed_retry_count,
...@@ -136,23 +88,14 @@ ...@@ -136,23 +88,14 @@
<if test="flowId != null"> <if test="flowId != null">
flow_id, flow_id,
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow,
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token, gateway_token,
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type, job_type,
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name, handler_name,
</if>
<if test="mailAction != null">
mail_action,
</if>
<if test="nodeCron != null">
node_cron,
</if> </if>
<if test="nodeDesc != null"> <if test="nodeDesc != null">
node_desc, node_desc,
...@@ -160,14 +103,14 @@ ...@@ -160,14 +103,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name, node_name,
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id, map_flow_id,
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout, node_timeout,
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type, is_virtual,
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls, plugin_urls,
...@@ -175,14 +118,8 @@ ...@@ -175,14 +118,8 @@
<if test="priority != null"> <if test="priority != null">
priority, priority,
</if> </if>
<if test="remainingCount != null"> <if test="failedRetryInterval != null">
remaining_count, failed_retry_interval,
</if>
<if test="repeatCount != null">
repeat_count,
</if>
<if test="retryInterval != null">
retry_interval,
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy, routing_strategy,
...@@ -202,31 +139,21 @@ ...@@ -202,31 +139,21 @@
<if test="sourcePrincipal != null"> <if test="sourcePrincipal != null">
source_principal, source_principal,
</if> </if>
<if test="sourceUpdateTime != null"> <if test="triggerTime != null">
source_update_time, trigger_time,
</if>
<if test="triggerNextTime != null">
trigger_next_time,
</if> </if>
<if test="triggerStatus != null"> <if test="triggerStatus != null">
trigger_status, trigger_status,
</if> </if>
<if test="runSource != null">
run_source,
</if>
<if test="addTime != null">
add_time,
</if>
<if test="author != null">
author,
</if>
<if test="versionId != null">
version_id,
</if>
<if test="versionName != null"> <if test="versionName != null">
version_name, version_name,
</if> </if>
<if test="runCommand != null">
run_command,
</if>
<if test="runSource != null">
run_source,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -235,17 +162,11 @@ ...@@ -235,17 +162,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
#{nodeId,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
#{blockStrategy,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
#{callbackToken,jdbcType=VARCHAR}, #{pluginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
#{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
#{failedRetryCount,jdbcType=INTEGER}, #{failedRetryCount,jdbcType=INTEGER},
...@@ -253,23 +174,14 @@ ...@@ -253,23 +174,14 @@
<if test="flowId != null"> <if test="flowId != null">
#{flowId,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
#{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
#{gatewayToken,jdbcType=VARCHAR}, #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
#{jobType,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
#{localNodeHandlerName,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if>
<if test="nodeCron != null">
#{nodeCron,jdbcType=VARCHAR},
</if> </if>
<if test="nodeDesc != null"> <if test="nodeDesc != null">
#{nodeDesc,jdbcType=VARCHAR}, #{nodeDesc,jdbcType=VARCHAR},
...@@ -277,14 +189,14 @@ ...@@ -277,14 +189,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
#{nodeName,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
#{nodeOfFlowId,jdbcType=INTEGER}, #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
#{nodeTimeout,jdbcType=BIGINT}, #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
#{nodeType,jdbcType=VARCHAR}, #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
#{pluginUrls,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR},
...@@ -292,14 +204,8 @@ ...@@ -292,14 +204,8 @@
<if test="priority != null"> <if test="priority != null">
#{priority,jdbcType=CHAR}, #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingCount != null"> <if test="failedRetryInterval != null">
#{remainingCount,jdbcType=INTEGER}, #{failedRetryInterval,jdbcType=BIGINT},
</if>
<if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER},
</if>
<if test="retryInterval != null">
#{retryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
#{routingStrategy,jdbcType=VARCHAR}, #{routingStrategy,jdbcType=VARCHAR},
...@@ -319,50 +225,35 @@ ...@@ -319,50 +225,35 @@
<if test="sourcePrincipal != null"> <if test="sourcePrincipal != null">
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
</if> </if>
<if test="sourceUpdateTime != null"> <if test="triggerTime != null">
#{sourceUpdateTime,jdbcType=DATE}, #{triggerTime,jdbcType=BIGINT},
</if>
<if test="triggerNextTime != null">
#{triggerNextTime,jdbcType=BIGINT},
</if> </if>
<if test="triggerStatus != null"> <if test="triggerStatus != null">
#{triggerStatus,jdbcType=CHAR}, #{triggerStatus,jdbcType=CHAR},
</if> </if>
<if test="runSource != null">
#{runSource,jdbcType=LONGVARCHAR},
</if>
<if test="addTime != null">
#{addTime,jdbcType=DATE},
</if>
<if test="author != null">
#{author,jdbcType=VARCHAR},
</if>
<if test="versionId != null">
#{versionId,jdbcType=INTEGER},
</if>
<if test="versionName != null"> <if test="versionName != null">
#{versionName,jdbcType=VARCHAR}, #{versionName,jdbcType=VARCHAR},
</if> </if>
<if test="runCommand != null">
#{runCommand,jdbcType=VARCHAR},
</if>
<if test="runSource != null">
#{runSource,jdbcType=LONGVARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<!--动态修改--> <update id="updateJobTask" parameterType="com.byit.model.JobTask">
<update id="updateByIdSelective" parameterType="com.byit.model.JobTask"> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_task update job_task
<set> <set>
<if test="nodeId != null"> <if test="nodeId != null">
node_id = #{nodeId,jdbcType=INTEGER}, node_id = #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, block_strategy = #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
callback_token = #{callbackToken,jdbcType=VARCHAR}, plugin_token = #{pluginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
...@@ -370,23 +261,14 @@ ...@@ -370,23 +261,14 @@
<if test="flowId != null"> <if test="flowId != null">
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
mail_action = #{mailAction,jdbcType=CHAR},
</if>
<if test="nodeCron != null">
node_cron = #{nodeCron,jdbcType=VARCHAR},
</if> </if>
<if test="nodeDesc != null"> <if test="nodeDesc != null">
node_desc = #{nodeDesc,jdbcType=VARCHAR}, node_desc = #{nodeDesc,jdbcType=VARCHAR},
...@@ -394,14 +276,14 @@ ...@@ -394,14 +276,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
...@@ -409,14 +291,8 @@ ...@@ -409,14 +291,8 @@
<if test="priority != null"> <if test="priority != null">
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingCount != null"> <if test="failedRetryInterval != null">
remaining_count = #{remainingCount,jdbcType=INTEGER}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
</if>
<if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER},
</if>
<if test="retryInterval != null">
retry_interval = #{retryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
...@@ -436,31 +312,36 @@ ...@@ -436,31 +312,36 @@
<if test="sourcePrincipal != null"> <if test="sourcePrincipal != null">
source_principal = #{sourcePrincipal,jdbcType=VARCHAR}, source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
</if> </if>
<if test="sourceUpdateTime != null"> <if test="triggerTime != null">
source_update_time = #{sourceUpdateTime,jdbcType=DATE}, trigger_time = #{triggerTime,jdbcType=BIGINT},
</if>
<if test="triggerNextTime != null">
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
</if> </if>
<if test="triggerStatus != null"> <if test="triggerStatus != null">
trigger_status = #{triggerStatus,jdbcType=CHAR}, trigger_status = #{triggerStatus,jdbcType=CHAR},
</if> </if>
<if test="runSource != null">
run_source = #{runSource,jdbcType=LONGVARCHAR},
</if>
<if test="addTime != null">
add_time = #{addTime,jdbcType=DATE},
</if>
<if test="author != null">
author = #{author,jdbcType=VARCHAR},
</if>
<if test="versionId != null">
version_id = #{versionId,jdbcType=INTEGER},
</if>
<if test="versionName != null"> <if test="versionName != null">
version_name = #{versionName,jdbcType=VARCHAR}, version_name = #{versionName,jdbcType=VARCHAR},
</if> </if>
<if test="runCommand != null">
run_command = #{runCommand,jdbcType=VARCHAR},
</if>
<if test="runSource != null">
run_source = #{runSource,jdbcType=LONGVARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<!--多个删除-->
<delete id="deleteInId" parameterType="com.byit.model.JobTask">
delete from job_task
where id in
<foreach collection="mythJobTasks" item="mythJobTask" open="(" separator="," close=")">
#{mythJobTask.id}
</foreach>
</delete>
<!--根据id删除-->
<delete id="deleteById" parameterType="java.lang.Integer">
delete from job_task
where id = #{id,jdbcType=INTEGER}
</delete>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobTaskRunLogMapper"> <mapper namespace="com.byit.mapper.JobTaskRunLogMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobTaskRunLog"> <resultMap id="BaseResultMap" type="com.byit.model.JobTaskRunLog">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="log_id" jdbcType="INTEGER" property="logId" /> <id column="log_id" jdbcType="INTEGER" property="logId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="alarm_status" jdbcType="CHAR" property="alarmStatus" />
<result column="failed_remaining_count" jdbcType="INTEGER" property="failedRemainingCount" /> <result column="failed_remaining_count" jdbcType="INTEGER" property="failedRemainingCount" />
<result column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" /> <result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="job_flow_id" jdbcType="INTEGER" property="jobFlowId" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="job_flow_name" jdbcType="VARCHAR" property="jobFlowName" /> <result column="flow_name" jdbcType="VARCHAR" property="flowName" />
<result column="job_group_id" jdbcType="INTEGER" property="jobGroupId" /> <result column="job_group_id" jdbcType="INTEGER" property="jobGroupId" />
<result column="job_type" jdbcType="VARCHAR" property="jobType" /> <result column="handler_name" jdbcType="VARCHAR" property="handlerName" />
<result column="local_node_handler_name" jdbcType="VARCHAR" property="localNodeHandlerName" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" /> <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="is_virtual" jdbcType="CHAR" property="isVirtual" />
<result column="run_code" jdbcType="VARCHAR" property="runCode" /> <result column="run_code" jdbcType="VARCHAR" property="runCode" />
<result column="run_params" jdbcType="VARCHAR" property="runParams" /> <result column="run_params" jdbcType="VARCHAR" property="runParams" />
<result column="run_time" jdbcType="DATE" property="runTime" /> <result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="run_type" jdbcType="CHAR" property="runType" /> <result column="run_type" jdbcType="CHAR" property="runType" />
<result column="trigger_code" jdbcType="VARCHAR" property="triggerCode" /> <result column="trigger_code" jdbcType="VARCHAR" property="triggerCode" />
<result column="trigger_time" jdbcType="DATE" property="triggerTime" /> <result column="trigger_time" jdbcType="DATE" property="triggerTime" />
<result column="job_group_ip" jdbcType="VARCHAR" property="jobGroupIp" />
<result column="map_flow_id" jdbcType="INTEGER" property="mapFlowId" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="node_id" jdbcType="INTEGER" property="nodeId" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTaskRunLogWithBLOBs">
<!-- generated @mbg.generated date: 2019-12-25 -->
<result column="run_msg" jdbcType="LONGVARCHAR" property="runMsg" /> <result column="run_msg" jdbcType="LONGVARCHAR" property="runMsg" />
<result column="trigger_msg" jdbcType="LONGVARCHAR" property="triggerMsg" /> <result column="trigger_msg" jdbcType="LONGVARCHAR" property="triggerMsg" />
<result column="job_version_name" jdbcType="VARCHAR" property="jobVersionName" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
log_id, alarm_email, alarm_status, failed_remaining_count, flow_version_id, job_flow_id, <!-- generated @mbg.generated date: 2019-12-25 -->
job_flow_name, job_group_id, job_type, local_node_handler_name, mail_action, node_name, log_id, failed_remaining_count, version_name, flow_id, flow_name, job_group_id, handler_name,
node_type, run_code, run_params, run_time, run_type, trigger_code, trigger_time,run_msg, node_name, is_virtual, run_code, run_params, start_time, run_type, trigger_code,
trigger_msg,job_version_name trigger_time, job_group_ip, map_flow_id, run_command, end_time, node_id
</sql>
<sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2019-12-25 -->
run_msg, trigger_msg
</sql> </sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <!-- generated @mbg.generated date: 2019-12-25 -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from job_task_run_log from job_task_run_log
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_task_run_log delete from job_task_run_log
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobTaskRunLogWithBLOBs">
<insert id="insert" parameterType="com.byit.model.JobTaskRunLog"> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_task_run_log (log_id, alarm_email, alarm_status, insert into job_task_run_log (log_id, failed_remaining_count, version_name,
failed_remaining_count, flow_version_id, job_flow_id, flow_id, flow_name, job_group_id,
job_flow_name, job_group_id, job_type, handler_name, node_name, is_virtual,
local_node_handler_name, mail_action, node_name, run_code, run_params, start_time,
node_type, run_code, run_params, run_type, trigger_code, trigger_time,
run_time, run_type, trigger_code, job_group_ip, map_flow_id, run_command,
trigger_time, run_msg, trigger_msg,job_version_name end_time, node_id, run_msg,
) trigger_msg)
values (#{logId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{alarmStatus,jdbcType=CHAR}, values (#{logId,jdbcType=INTEGER}, #{failedRemainingCount,jdbcType=INTEGER}, #{versionName,jdbcType=VARCHAR},
#{failedRemainingCount,jdbcType=INTEGER}, #{flowVersionId,jdbcType=INTEGER}, #{jobFlowId,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{flowName,jdbcType=VARCHAR}, #{jobGroupId,jdbcType=INTEGER},
#{jobFlowName,jdbcType=VARCHAR}, #{jobGroupId,jdbcType=INTEGER}, #{jobType,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{isVirtual,jdbcType=CHAR},
#{localNodeHandlerName,jdbcType=VARCHAR}, #{mailAction,jdbcType=CHAR}, #{nodeName,jdbcType=VARCHAR}, #{runCode,jdbcType=VARCHAR}, #{runParams,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
#{nodeType,jdbcType=VARCHAR}, #{runCode,jdbcType=VARCHAR}, #{runParams,jdbcType=VARCHAR}, #{runType,jdbcType=CHAR}, #{triggerCode,jdbcType=VARCHAR}, #{triggerTime,jdbcType=DATE},
#{runTime,jdbcType=DATE}, #{runType,jdbcType=CHAR}, #{triggerCode,jdbcType=VARCHAR}, #{jobGroupIp,jdbcType=VARCHAR}, #{mapFlowId,jdbcType=INTEGER}, #{runCommand,jdbcType=VARCHAR},
#{triggerTime,jdbcType=DATE}, #{runMsg,jdbcType=LONGVARCHAR}, #{triggerMsg,jdbcType=LONGVARCHAR} #{endTime,jdbcType=TIMESTAMP}, #{nodeId,jdbcType=INTEGER}, #{runMsg,jdbcType=LONGVARCHAR},
,#{jobVersionName,jdbcType=VARCHAR} #{triggerMsg,jdbcType=LONGVARCHAR})
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobTaskRunLogWithBLOBs">
<insert id="insertSelective" parameterType="com.byit.model.JobTaskRunLog" useGeneratedKeys="true" keyProperty="logId" keyColumn="log_id"> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_task_run_log insert into job_task_run_log
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="logId != null"> <if test="logId != null">
log_id, log_id,
</if> </if>
<if test="alarmEmail != null">
alarm_email,
</if>
<if test="alarmStatus != null">
alarm_status,
</if>
<if test="failedRemainingCount != null"> <if test="failedRemainingCount != null">
failed_remaining_count, failed_remaining_count,
</if> </if>
<if test="flowVersionId != null"> <if test="versionName != null">
flow_version_id, version_name,
</if> </if>
<if test="jobFlowId != null"> <if test="flowId != null">
job_flow_id, flow_id,
</if> </if>
<if test="jobFlowName != null"> <if test="flowName != null">
job_flow_name, flow_name,
</if> </if>
<if test="jobGroupId != null"> <if test="jobGroupId != null">
job_group_id, job_group_id,
</if> </if>
<if test="jobType != null"> <if test="handlerName != null">
job_type, handler_name,
</if>
<if test="localNodeHandlerName != null">
local_node_handler_name,
</if>
<if test="mailAction != null">
mail_action,
</if> </if>
<if test="nodeName != null"> <if test="nodeName != null">
node_name, node_name,
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type, is_virtual,
</if> </if>
<if test="runCode != null"> <if test="runCode != null">
run_code, run_code,
...@@ -114,8 +109,8 @@ ...@@ -114,8 +109,8 @@
<if test="runParams != null"> <if test="runParams != null">
run_params, run_params,
</if> </if>
<if test="runTime != null"> <if test="startTime != null">
run_time, start_time,
</if> </if>
<if test="runType != null"> <if test="runType != null">
run_type, run_type,
...@@ -126,55 +121,55 @@ ...@@ -126,55 +121,55 @@
<if test="triggerTime != null"> <if test="triggerTime != null">
trigger_time, trigger_time,
</if> </if>
<if test="jobGroupIp != null">
job_group_ip,
</if>
<if test="mapFlowId != null">
map_flow_id,
</if>
<if test="runCommand != null">
run_command,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="nodeId != null">
node_id,
</if>
<if test="runMsg != null"> <if test="runMsg != null">
run_msg, run_msg,
</if> </if>
<if test="triggerMsg != null"> <if test="triggerMsg != null">
trigger_msg, trigger_msg,
</if> </if>
<if test="jobVersionName != null">
job_version_name,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="logId != null"> <if test="logId != null">
#{logId,jdbcType=INTEGER}, #{logId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="alarmStatus != null">
#{alarmStatus,jdbcType=CHAR},
</if>
<if test="failedRemainingCount != null"> <if test="failedRemainingCount != null">
#{failedRemainingCount,jdbcType=INTEGER}, #{failedRemainingCount,jdbcType=INTEGER},
</if> </if>
<if test="flowVersionId != null"> <if test="versionName != null">
#{flowVersionId,jdbcType=INTEGER}, #{versionName,jdbcType=VARCHAR},
</if> </if>
<if test="jobFlowId != null"> <if test="flowId != null">
#{jobFlowId,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="jobFlowName != null"> <if test="flowName != null">
#{jobFlowName,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR},
</if> </if>
<if test="jobGroupId != null"> <if test="jobGroupId != null">
#{jobGroupId,jdbcType=INTEGER}, #{jobGroupId,jdbcType=INTEGER},
</if> </if>
<if test="jobType != null"> <if test="handlerName != null">
#{jobType,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR},
</if>
<if test="localNodeHandlerName != null">
#{localNodeHandlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeName != null"> <if test="nodeName != null">
#{nodeName,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
#{nodeType,jdbcType=VARCHAR}, #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="runCode != null"> <if test="runCode != null">
#{runCode,jdbcType=VARCHAR}, #{runCode,jdbcType=VARCHAR},
...@@ -182,8 +177,8 @@ ...@@ -182,8 +177,8 @@
<if test="runParams != null"> <if test="runParams != null">
#{runParams,jdbcType=VARCHAR}, #{runParams,jdbcType=VARCHAR},
</if> </if>
<if test="runTime != null"> <if test="startTime != null">
#{runTime,jdbcType=DATE}, #{startTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="runType != null"> <if test="runType != null">
#{runType,jdbcType=CHAR}, #{runType,jdbcType=CHAR},
...@@ -194,57 +189,56 @@ ...@@ -194,57 +189,56 @@
<if test="triggerTime != null"> <if test="triggerTime != null">
#{triggerTime,jdbcType=DATE}, #{triggerTime,jdbcType=DATE},
</if> </if>
<if test="jobGroupIp != null">
#{jobGroupIp,jdbcType=VARCHAR},
</if>
<if test="mapFlowId != null">
#{mapFlowId,jdbcType=INTEGER},
</if>
<if test="runCommand != null">
#{runCommand,jdbcType=VARCHAR},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="nodeId != null">
#{nodeId,jdbcType=INTEGER},
</if>
<if test="runMsg != null"> <if test="runMsg != null">
#{runMsg,jdbcType=LONGVARCHAR}, #{runMsg,jdbcType=LONGVARCHAR},
</if> </if>
<if test="triggerMsg != null"> <if test="triggerMsg != null">
#{triggerMsg,jdbcType=LONGVARCHAR}, #{triggerMsg,jdbcType=LONGVARCHAR},
</if> </if>
<if test="jobVersionName != null">
#{jobVersionName,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.JobTaskRunLogWithBLOBs">
<update id="updateByIdSelective" parameterType="com.byit.model.JobTaskRunLog"> <!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-23 -->
update job_task_run_log update job_task_run_log
<set> <set>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="alarmStatus != null">
alarm_status = #{alarmStatus,jdbcType=CHAR},
</if>
<if test="failedRemainingCount != null"> <if test="failedRemainingCount != null">
failed_remaining_count = #{failedRemainingCount,jdbcType=INTEGER}, failed_remaining_count = #{failedRemainingCount,jdbcType=INTEGER},
</if> </if>
<if test="flowVersionId != null"> <if test="versionName != null">
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, version_name = #{versionName,jdbcType=VARCHAR},
</if> </if>
<if test="jobFlowId != null"> <if test="flowId != null">
job_flow_id = #{jobFlowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="jobFlowName != null"> <if test="flowName != null">
job_flow_name = #{jobFlowName,jdbcType=VARCHAR}, flow_name = #{flowName,jdbcType=VARCHAR},
</if> </if>
<if test="jobGroupId != null"> <if test="jobGroupId != null">
job_group_id = #{jobGroupId,jdbcType=INTEGER}, job_group_id = #{jobGroupId,jdbcType=INTEGER},
</if> </if>
<if test="jobType != null"> <if test="handlerName != null">
job_type = #{jobType,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
</if>
<if test="localNodeHandlerName != null">
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
mail_action = #{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeName != null"> <if test="nodeName != null">
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="runCode != null"> <if test="runCode != null">
run_code = #{runCode,jdbcType=VARCHAR}, run_code = #{runCode,jdbcType=VARCHAR},
...@@ -252,8 +246,8 @@ ...@@ -252,8 +246,8 @@
<if test="runParams != null"> <if test="runParams != null">
run_params = #{runParams,jdbcType=VARCHAR}, run_params = #{runParams,jdbcType=VARCHAR},
</if> </if>
<if test="runTime != null"> <if test="startTime != null">
run_time = #{runTime,jdbcType=DATE}, start_time = #{startTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="runType != null"> <if test="runType != null">
run_type = #{runType,jdbcType=CHAR}, run_type = #{runType,jdbcType=CHAR},
...@@ -264,68 +258,78 @@ ...@@ -264,68 +258,78 @@
<if test="triggerTime != null"> <if test="triggerTime != null">
trigger_time = #{triggerTime,jdbcType=DATE}, trigger_time = #{triggerTime,jdbcType=DATE},
</if> </if>
<if test="jobGroupIp != null">
job_group_ip = #{jobGroupIp,jdbcType=VARCHAR},
</if>
<if test="mapFlowId != null">
map_flow_id = #{mapFlowId,jdbcType=INTEGER},
</if>
<if test="runCommand != null">
run_command = #{runCommand,jdbcType=VARCHAR},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="nodeId != null">
node_id = #{nodeId,jdbcType=INTEGER},
</if>
<if test="runMsg != null"> <if test="runMsg != null">
run_msg = #{runMsg,jdbcType=LONGVARCHAR}, run_msg = #{runMsg,jdbcType=LONGVARCHAR},
</if> </if>
<if test="triggerMsg != null"> <if test="triggerMsg != null">
trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR}, trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR},
</if> </if>
<if test="jobVersionName != null">
job_version_name = #{jobVersionName,jdbcType=VARCHAR},
</if>
</set> </set>
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.JobTaskRunLogWithBLOBs">
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.JobTaskRunLog"> <!-- generated @mbg.generated date: 2019-12-25 -->
<!-- generated @mbg.generated date: 2019-12-23 -->
update job_task_run_log update job_task_run_log
set alarm_email = #{alarmEmail,jdbcType=VARCHAR}, set failed_remaining_count = #{failedRemainingCount,jdbcType=INTEGER},
alarm_status = #{alarmStatus,jdbcType=CHAR}, version_name = #{versionName,jdbcType=VARCHAR},
failed_remaining_count = #{failedRemainingCount,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_name = #{flowName,jdbcType=VARCHAR},
job_flow_id = #{jobFlowId,jdbcType=INTEGER},
job_flow_name = #{jobFlowName,jdbcType=VARCHAR},
job_group_id = #{jobGroupId,jdbcType=INTEGER}, job_group_id = #{jobGroupId,jdbcType=INTEGER},
job_type = #{jobType,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR},
mail_action = #{mailAction,jdbcType=CHAR},
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
run_code = #{runCode,jdbcType=VARCHAR}, run_code = #{runCode,jdbcType=VARCHAR},
run_params = #{runParams,jdbcType=VARCHAR}, run_params = #{runParams,jdbcType=VARCHAR},
run_time = #{runTime,jdbcType=DATE}, start_time = #{startTime,jdbcType=TIMESTAMP},
run_type = #{runType,jdbcType=CHAR}, run_type = #{runType,jdbcType=CHAR},
trigger_code = #{triggerCode,jdbcType=VARCHAR}, trigger_code = #{triggerCode,jdbcType=VARCHAR},
trigger_time = #{triggerTime,jdbcType=DATE}, trigger_time = #{triggerTime,jdbcType=DATE},
job_group_ip = #{jobGroupIp,jdbcType=VARCHAR},
map_flow_id = #{mapFlowId,jdbcType=INTEGER},
run_command = #{runCommand,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=TIMESTAMP},
node_id = #{nodeId,jdbcType=INTEGER},
run_msg = #{runMsg,jdbcType=LONGVARCHAR}, run_msg = #{runMsg,jdbcType=LONGVARCHAR},
trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR}, trigger_msg = #{triggerMsg,jdbcType=LONGVARCHAR}
job_version_name = #{jobVersionName,jdbcType=VARCHAR}
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</update> </update>
<update id="updateById" parameterType="com.byit.model.JobTaskRunLog"> <update id="updateById" parameterType="com.byit.model.JobTaskRunLog">
<!-- generated @mbg.generated date: 2019-12-23 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_task_run_log update job_task_run_log
set alarm_email = #{alarmEmail,jdbcType=VARCHAR}, set failed_remaining_count = #{failedRemainingCount,jdbcType=INTEGER},
alarm_status = #{alarmStatus,jdbcType=CHAR}, version_name = #{versionName,jdbcType=VARCHAR},
failed_remaining_count = #{failedRemainingCount,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_name = #{flowName,jdbcType=VARCHAR},
job_flow_id = #{jobFlowId,jdbcType=INTEGER},
job_flow_name = #{jobFlowName,jdbcType=VARCHAR},
job_group_id = #{jobGroupId,jdbcType=INTEGER}, job_group_id = #{jobGroupId,jdbcType=INTEGER},
job_type = #{jobType,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR},
mail_action = #{mailAction,jdbcType=CHAR},
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
run_code = #{runCode,jdbcType=VARCHAR}, run_code = #{runCode,jdbcType=VARCHAR},
run_params = #{runParams,jdbcType=VARCHAR}, run_params = #{runParams,jdbcType=VARCHAR},
run_time = #{runTime,jdbcType=DATE}, start_time = #{startTime,jdbcType=TIMESTAMP},
run_type = #{runType,jdbcType=CHAR}, run_type = #{runType,jdbcType=CHAR},
trigger_code = #{triggerCode,jdbcType=VARCHAR}, trigger_code = #{triggerCode,jdbcType=VARCHAR},
trigger_time = #{triggerTime,jdbcType=DATE}, trigger_time = #{triggerTime,jdbcType=DATE},
job_version_name = #{jobVersionName,jdbcType=VARCHAR} job_group_ip = #{jobGroupIp,jdbcType=VARCHAR},
map_flow_id = #{mapFlowId,jdbcType=INTEGER},
run_command = #{runCommand,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=TIMESTAMP},
node_id = #{nodeId,jdbcType=INTEGER}
where log_id = #{logId,jdbcType=INTEGER} where log_id = #{logId,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobTaskScheduleMapper"> <mapper namespace="com.byit.mapper.JobTaskScheduleMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobTaskSchedule"> <resultMap id="BaseResultMap" type="com.byit.model.JobTaskSchedule">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="node_id" jdbcType="INTEGER" property="nodeId" /> <result column="node_id" jdbcType="INTEGER" property="nodeId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" /> <result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" />
<result column="callback_token" jdbcType="VARCHAR" property="callbackToken" /> <result column="plugin_token" jdbcType="VARCHAR" property="pluginToken" />
<result column="dependency_nodes" jdbcType="VARCHAR" property="dependencyNodes" />
<result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" /> <result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" />
<result column="flow_id" jdbcType="INTEGER" property="flowId" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="follow_task_flow" jdbcType="CHAR" property="followTaskFlow" />
<result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" /> <result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" />
<result column="job_type" jdbcType="VARCHAR" property="jobType" /> <result column="job_type" jdbcType="VARCHAR" property="jobType" />
<result column="local_node_handler_name" jdbcType="VARCHAR" property="localNodeHandlerName" /> <result column="handler_name" jdbcType="VARCHAR" property="handlerName" />
<result column="log_id" jdbcType="INTEGER" property="logId" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" /> <result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" /> <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_of_flow_id" jdbcType="INTEGER" property="nodeOfFlowId" /> <result column="map_flow_id" jdbcType="INTEGER" property="mapFlowId" />
<result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" /> <result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="is_virtual" jdbcType="CHAR" property="isVirtual" />
<result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" /> <result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remaining_count" jdbcType="INTEGER" property="remainingCount" /> <result column="failed_retry_interval" jdbcType="BIGINT" property="failedRetryInterval" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="retry_interval" jdbcType="BIGINT" property="retryInterval" />
<result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" /> <result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" />
<result column="run_id" jdbcType="VARCHAR" property="runId" /> <result column="run_id" jdbcType="VARCHAR" property="runId" />
<result column="run_param" jdbcType="VARCHAR" property="runParam" /> <result column="run_param" jdbcType="VARCHAR" property="runParam" />
<result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" /> <result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" />
<result column="script_urls" jdbcType="VARCHAR" property="scriptUrls" /> <result column="script_urls" jdbcType="VARCHAR" property="scriptUrls" />
<result column="source_principal" jdbcType="VARCHAR" property="sourcePrincipal" /> <result column="source_principal" jdbcType="VARCHAR" property="sourcePrincipal" />
<result column="source_update_time" jdbcType="DATE" property="sourceUpdateTime" /> <result column="trigger_time" jdbcType="BIGINT" property="triggerTime" />
<result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" />
<result column="trigger_status" jdbcType="CHAR" property="triggerStatus" /> <result column="trigger_status" jdbcType="CHAR" property="triggerStatus" />
<result column="run_source" jdbcType="LONGVARCHAR" property="runSource" />
<result column="add_time" jdbcType="DATE" property="addTime" />
<result column="author" jdbcType="VARCHAR" property="author" />
<result column="version_id" jdbcType="INTEGER" property="versionId" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" /> <result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="log_id" jdbcType="INTEGER" property="logId" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobTaskSchedule">
<!-- generated @mbg.generated date: 2019-12-25 -->
<result column="run_source" jdbcType="LONGVARCHAR" property="runSource" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, node_id, alarm_email, block_strategy, callback_token, dependency_nodes, failed_retry_count, <!-- generated @mbg.generated date: 2019-12-25 -->
flow_id, follow_task_flow, gateway_token, job_type, local_node_handler_name, log_id, id, node_id, block_strategy, plugin_token, failed_retry_count, flow_id, gateway_token,
mail_action, node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type, job_type, handler_name, node_desc, node_name, map_flow_id, node_timeout, is_virtual,
plugin_urls, priority, remaining_count, repeat_count, retry_interval, routing_strategy, plugin_urls, priority, failed_retry_interval, routing_strategy, run_id, run_param,
run_id, run_param, run_source_desc, script_urls, source_principal, source_update_time, run_source_desc, script_urls, source_principal, trigger_time, trigger_status, version_name,
trigger_next_time, trigger_status,run_source,add_time,author,version_id,version_name log_id, run_command
</sql> </sql>
<!--查询五秒内将要执行的数据--> <sql id="Blob_Column_List">
<select id="findJobTaskScheduleByTriggerNextTimeLessThanEqual" resultMap="BaseResultMap"> <!-- generated @mbg.generated date: 2019-12-25 -->
select run_source
<include refid="Base_Column_List" /> </sql>
from job_task_schedule <select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
where trigger_next_time <![CDATA[ <= ]]> #{triggerNextTime,jdbcType=BIGINT} <!-- generated @mbg.generated date: 2019-12-25 -->
</select>
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from job_task_schedule from job_task_schedule
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_task_schedule delete from job_task_schedule
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobTaskSchedule"> <insert id="insert" parameterType="com.byit.model.JobTaskSchedule">
insert into job_task_schedule (id, node_id, alarm_email, <!-- generated @mbg.generated date: 2019-12-25 -->
block_strategy, callback_token, dependency_nodes, insert into job_task_schedule (id, node_id, block_strategy,
failed_retry_count, flow_id, follow_task_flow, plugin_token, failed_retry_count, flow_id,
gateway_token, job_type, local_node_handler_name, gateway_token, job_type, handler_name,
log_id, mail_action, node_cron, node_desc, node_name, map_flow_id,
node_desc, node_name, node_of_flow_id, node_timeout, is_virtual, plugin_urls,
node_timeout, node_type, plugin_urls, priority, failed_retry_interval, routing_strategy,
priority, remaining_count, repeat_count, run_id, run_param, run_source_desc,
retry_interval, routing_strategy, run_id, script_urls, source_principal, trigger_time,
run_param, run_source_desc, script_urls, trigger_status, version_name, log_id,
source_principal, source_update_time, trigger_next_time, run_command, run_source)
trigger_status, run_source,add_time,author,version_id,version_name) values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{blockStrategy,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{pluginToken,jdbcType=VARCHAR}, #{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR}, #{gatewayToken,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR}, #{nodeDesc,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{mapFlowId,jdbcType=INTEGER},
#{gatewayToken,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR}, #{localNodeHandlerName,jdbcType=VARCHAR}, #{nodeTimeout,jdbcType=BIGINT}, #{isVirtual,jdbcType=CHAR}, #{pluginUrls,jdbcType=VARCHAR},
#{logId,jdbcType=INTEGER}, #{mailAction,jdbcType=CHAR}, #{nodeCron,jdbcType=VARCHAR}, #{priority,jdbcType=CHAR}, #{failedRetryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR},
#{nodeDesc,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{nodeOfFlowId,jdbcType=INTEGER}, #{runId,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR},
#{nodeTimeout,jdbcType=BIGINT}, #{nodeType,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR}, #{triggerTime,jdbcType=BIGINT},
#{priority,jdbcType=CHAR}, #{remainingCount,jdbcType=INTEGER}, #{repeatCount,jdbcType=INTEGER}, #{triggerStatus,jdbcType=CHAR}, #{versionName,jdbcType=VARCHAR}, #{logId,jdbcType=INTEGER},
#{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{runId,jdbcType=VARCHAR}, #{runCommand,jdbcType=VARCHAR}, #{runSource,jdbcType=LONGVARCHAR})
#{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR},
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT},
#{triggerStatus,jdbcType=CHAR}, #{runSource,jdbcType=LONGVARCHAR},#{addTime,jdbcType=DATE},#{author,jdbcType=VARCHAR},
#{versionId,jdbcType=INTEGER}, #{versionName,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobTaskSchedule"> <insert id="insertSelective" parameterType="com.byit.model.JobTaskSchedule">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_task_schedule insert into job_task_schedule
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -106,17 +95,11 @@ ...@@ -106,17 +95,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
node_id, node_id,
</if> </if>
<if test="alarmEmail != null">
alarm_email,
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy, block_strategy,
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
callback_token, plugin_token,
</if>
<if test="dependencyNodes != null">
dependency_nodes,
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count, failed_retry_count,
...@@ -124,26 +107,14 @@ ...@@ -124,26 +107,14 @@
<if test="flowId != null"> <if test="flowId != null">
flow_id, flow_id,
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow,
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token, gateway_token,
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type, job_type,
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name, handler_name,
</if>
<if test="logId != null">
log_id,
</if>
<if test="mailAction != null">
mail_action,
</if>
<if test="nodeCron != null">
node_cron,
</if> </if>
<if test="nodeDesc != null"> <if test="nodeDesc != null">
node_desc, node_desc,
...@@ -151,14 +122,14 @@ ...@@ -151,14 +122,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name, node_name,
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id, map_flow_id,
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout, node_timeout,
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type, is_virtual,
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls, plugin_urls,
...@@ -166,14 +137,8 @@ ...@@ -166,14 +137,8 @@
<if test="priority != null"> <if test="priority != null">
priority, priority,
</if> </if>
<if test="remainingCount != null"> <if test="failedRetryInterval != null">
remaining_count, failed_retry_interval,
</if>
<if test="repeatCount != null">
repeat_count,
</if>
<if test="retryInterval != null">
retry_interval,
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy, routing_strategy,
...@@ -193,31 +158,24 @@ ...@@ -193,31 +158,24 @@
<if test="sourcePrincipal != null"> <if test="sourcePrincipal != null">
source_principal, source_principal,
</if> </if>
<if test="sourceUpdateTime != null"> <if test="triggerTime != null">
source_update_time, trigger_time,
</if>
<if test="triggerNextTime != null">
trigger_next_time,
</if> </if>
<if test="triggerStatus != null"> <if test="triggerStatus != null">
trigger_status, trigger_status,
</if> </if>
<if test="runSource != null"> <if test="versionName != null">
run_source, version_name,
</if>
<if test="addTime != null">
add_time,
</if> </if>
<if test="author != null"> <if test="logId != null">
author, log_id,
</if> </if>
<if test="versionId != null"> <if test="runCommand != null">
version_id, run_command,
</if> </if>
<if test="versionName != null"> <if test="runSource != null">
version_name, run_source,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -226,17 +184,11 @@ ...@@ -226,17 +184,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
#{nodeId,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
#{blockStrategy,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
#{callbackToken,jdbcType=VARCHAR}, #{pluginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
#{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
#{failedRetryCount,jdbcType=INTEGER}, #{failedRetryCount,jdbcType=INTEGER},
...@@ -244,26 +196,14 @@ ...@@ -244,26 +196,14 @@
<if test="flowId != null"> <if test="flowId != null">
#{flowId,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
#{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
#{gatewayToken,jdbcType=VARCHAR}, #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
#{jobType,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
#{localNodeHandlerName,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR},
</if>
<if test="logId != null">
#{logId,jdbcType=INTEGER},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if>
<if test="nodeCron != null">
#{nodeCron,jdbcType=VARCHAR},
</if> </if>
<if test="nodeDesc != null"> <if test="nodeDesc != null">
#{nodeDesc,jdbcType=VARCHAR}, #{nodeDesc,jdbcType=VARCHAR},
...@@ -271,14 +211,14 @@ ...@@ -271,14 +211,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
#{nodeName,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
#{nodeOfFlowId,jdbcType=INTEGER}, #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
#{nodeTimeout,jdbcType=BIGINT}, #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
#{nodeType,jdbcType=VARCHAR}, #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
#{pluginUrls,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR},
...@@ -286,14 +226,8 @@ ...@@ -286,14 +226,8 @@
<if test="priority != null"> <if test="priority != null">
#{priority,jdbcType=CHAR}, #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingCount != null"> <if test="failedRetryInterval != null">
#{remainingCount,jdbcType=INTEGER}, #{failedRetryInterval,jdbcType=BIGINT},
</if>
<if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER},
</if>
<if test="retryInterval != null">
#{retryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
#{routingStrategy,jdbcType=VARCHAR}, #{routingStrategy,jdbcType=VARCHAR},
...@@ -313,84 +247,38 @@ ...@@ -313,84 +247,38 @@
<if test="sourcePrincipal != null"> <if test="sourcePrincipal != null">
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
</if> </if>
<if test="sourceUpdateTime != null"> <if test="triggerTime != null">
#{sourceUpdateTime,jdbcType=DATE}, #{triggerTime,jdbcType=BIGINT},
</if>
<if test="triggerNextTime != null">
#{triggerNextTime,jdbcType=BIGINT},
</if> </if>
<if test="triggerStatus != null"> <if test="triggerStatus != null">
#{triggerStatus,jdbcType=CHAR}, #{triggerStatus,jdbcType=CHAR},
</if> </if>
<if test="runSource != null"> <if test="versionName != null">
#{runSource,jdbcType=LONGVARCHAR}, #{versionName,jdbcType=VARCHAR},
</if>
<if test="addTime != null">
#{addTime,jdbcType=DATE},
</if> </if>
<if test="author != null"> <if test="logId != null">
#{author,jdbcType=VARCHAR}, #{logId,jdbcType=INTEGER},
</if> </if>
<if test="versionId != null"> <if test="runCommand != null">
#{versionId,jdbcType=INTEGER}, #{runCommand,jdbcType=VARCHAR},
</if> </if>
<if test="versionName != null"> <if test="runSource != null">
#{versionName,jdbcType=VARCHAR}, #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
<!--批量插入-->
<insert id="insertDataList" parameterType="com.byit.model.JobTaskSchedule">
insert into job_task_schedule (id, node_id, alarm_email,
block_strategy, callback_token, dependency_nodes,
failed_retry_count, flow_id, follow_task_flow,
gateway_token, job_type, local_node_handler_name,
log_id, mail_action, node_cron,
node_desc, node_name, node_of_flow_id,
node_timeout, node_type, plugin_urls,
priority, remaining_count, repeat_count,
retry_interval, routing_strategy, run_id,
run_param, run_source_desc, script_urls,
source_principal, source_update_time, trigger_next_time,
trigger_status,run_source,add_time,author,version_id,version_name)
values
<foreach collection="jobTaskSchedules" item="jobTaskSchedule" separator =",">
(#{jobTaskSchedule.id,jdbcType=INTEGER}, #{jobTaskSchedule.nodeId,jdbcType=INTEGER}, #{jobTaskSchedule.alarmEmail,jdbcType=VARCHAR},
#{jobTaskSchedule.blockStrategy,jdbcType=VARCHAR}, #{jobTaskSchedule.callbackToken,jdbcType=VARCHAR}, #{jobTaskSchedule.dependencyNodes,jdbcType=VARCHAR},
#{jobTaskSchedule.failedRetryCount,jdbcType=INTEGER}, #{jobTaskSchedule.flowId,jdbcType=INTEGER}, #{jobTaskSchedule.followTaskFlow,jdbcType=CHAR},
#{jobTaskSchedule.gatewayToken,jdbcType=VARCHAR}, #{jobTaskSchedule.jobType,jdbcType=VARCHAR}, #{jobTaskSchedule.localNodeHandlerName,jdbcType=VARCHAR},
#{jobTaskSchedule.logId,jdbcType=INTEGER}, #{jobTaskSchedule.mailAction,jdbcType=CHAR}, #{jobTaskSchedule.nodeCron,jdbcType=VARCHAR},
#{jobTaskSchedule.nodeDesc,jdbcType=VARCHAR}, #{jobTaskSchedule.nodeName,jdbcType=VARCHAR}, #{jobTaskSchedule.nodeOfFlowId,jdbcType=INTEGER},
#{jobTaskSchedule.nodeTimeout,jdbcType=BIGINT}, #{jobTaskSchedule.nodeType,jdbcType=VARCHAR}, #{jobTaskSchedule.pluginUrls,jdbcType=VARCHAR},
#{jobTaskSchedule.priority,jdbcType=CHAR}, #{jobTaskSchedule.remainingCount,jdbcType=INTEGER}, #{jobTaskSchedule.repeatCount,jdbcType=INTEGER},
#{jobTaskSchedule.retryInterval,jdbcType=BIGINT}, #{jobTaskSchedule.routingStrategy,jdbcType=VARCHAR}, #{jobTaskSchedule.runId,jdbcType=VARCHAR},
#{jobTaskSchedule.runParam,jdbcType=VARCHAR}, #{jobTaskSchedule.runSourceDesc,jdbcType=VARCHAR}, #{jobTaskSchedule.scriptUrls,jdbcType=VARCHAR},
#{jobTaskSchedule.sourcePrincipal,jdbcType=VARCHAR}, #{jobTaskSchedule.sourceUpdateTime,jdbcType=DATE}, #{jobTaskSchedule.triggerNextTime,jdbcType=BIGINT},
#{jobTaskSchedule.triggerStatus,jdbcType=CHAR}, #{jobTaskSchedule.runSource,jdbcType=LONGVARCHAR},#{jobTaskSchedule.addTime,jdbcType=DATE},
#{jobTaskSchedule.author,jdbcType=VARCHAR},#{jobTaskSchedule.versionId,jdbcType=INTEGER}, #{jobTaskSchedule.versionName,jdbcType=VARCHAR})
</foreach>
</insert>
<update id="updateByIdSelective" parameterType="com.byit.model.JobTaskSchedule"> <update id="updateByIdSelective" parameterType="com.byit.model.JobTaskSchedule">
<!-- generated @mbg.generated date: 2019-12-23 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_task_schedule update job_task_schedule
<set> <set>
<if test="nodeId != null"> <if test="nodeId != null">
node_id = #{nodeId,jdbcType=INTEGER}, node_id = #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, block_strategy = #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
callback_token = #{callbackToken,jdbcType=VARCHAR}, plugin_token = #{pluginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
...@@ -398,26 +286,14 @@ ...@@ -398,26 +286,14 @@
<if test="flowId != null"> <if test="flowId != null">
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
</if>
<if test="logId != null">
log_id = #{logId,jdbcType=INTEGER},
</if>
<if test="mailAction != null">
mail_action = #{mailAction,jdbcType=CHAR},
</if>
<if test="nodeCron != null">
node_cron = #{nodeCron,jdbcType=VARCHAR},
</if> </if>
<if test="nodeDesc != null"> <if test="nodeDesc != null">
node_desc = #{nodeDesc,jdbcType=VARCHAR}, node_desc = #{nodeDesc,jdbcType=VARCHAR},
...@@ -425,14 +301,14 @@ ...@@ -425,14 +301,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
...@@ -440,14 +316,8 @@ ...@@ -440,14 +316,8 @@
<if test="priority != null"> <if test="priority != null">
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingCount != null"> <if test="failedRetryInterval != null">
remaining_count = #{remainingCount,jdbcType=INTEGER}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
</if>
<if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER},
</if>
<if test="retryInterval != null">
retry_interval = #{retryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
...@@ -467,32 +337,90 @@ ...@@ -467,32 +337,90 @@
<if test="sourcePrincipal != null"> <if test="sourcePrincipal != null">
source_principal = #{sourcePrincipal,jdbcType=VARCHAR}, source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
</if> </if>
<if test="sourceUpdateTime != null"> <if test="triggerTime != null">
source_update_time = #{sourceUpdateTime,jdbcType=DATE}, trigger_time = #{triggerTime,jdbcType=BIGINT},
</if>
<if test="triggerNextTime != null">
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
</if> </if>
<if test="triggerStatus != null"> <if test="triggerStatus != null">
trigger_status = #{triggerStatus,jdbcType=CHAR}, trigger_status = #{triggerStatus,jdbcType=CHAR},
</if> </if>
<if test="runSource != null"> <if test="versionName != null">
run_source = #{runSource,jdbcType=LONGVARCHAR}, version_name = #{versionName,jdbcType=VARCHAR},
</if>
<if test="addTime != null">
add_time = #{addTime,jdbcType=DATE},
</if> </if>
<if test="author != null"> <if test="logId != null">
author = #{author,jdbcType=VARCHAR}, log_id = #{logId,jdbcType=INTEGER},
</if> </if>
<if test="runCommand != null">
<if test="versionId != null"> run_command = #{runCommand,jdbcType=VARCHAR},
version_id = #{versionId,jdbcType=INTEGER},
</if> </if>
<if test="versionName != null"> <if test="runSource != null">
version_name = #{versionName,jdbcType=VARCHAR}, run_source = #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.JobTaskSchedule">
<!-- generated @mbg.generated date: 2019-12-25 -->
update job_task_schedule
set node_id = #{nodeId,jdbcType=INTEGER},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
plugin_token = #{pluginToken,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER},
gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR},
handler_name = #{handlerName,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR},
map_flow_id = #{mapFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT},
is_virtual = #{isVirtual,jdbcType=CHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR},
failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
trigger_time = #{triggerTime,jdbcType=BIGINT},
trigger_status = #{triggerStatus,jdbcType=CHAR},
version_name = #{versionName,jdbcType=VARCHAR},
log_id = #{logId,jdbcType=INTEGER},
run_command = #{runCommand,jdbcType=VARCHAR},
run_source = #{runSource,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateById" parameterType="com.byit.model.JobTaskSchedule">
<!-- generated @mbg.generated date: 2019-12-25 -->
update job_task_schedule
set node_id = #{nodeId,jdbcType=INTEGER},
block_strategy = #{blockStrategy,jdbcType=VARCHAR},
plugin_token = #{pluginToken,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER},
gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR},
handler_name = #{handlerName,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR},
map_flow_id = #{mapFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT},
is_virtual = #{isVirtual,jdbcType=CHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR},
failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_id = #{runId,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
trigger_time = #{triggerTime,jdbcType=BIGINT},
trigger_status = #{triggerStatus,jdbcType=CHAR},
version_name = #{versionName,jdbcType=VARCHAR},
log_id = #{logId,jdbcType=INTEGER},
run_command = #{runCommand,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper> </mapper>
\ No newline at end of file
<?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.NodeDependencyMapper">
<resultMap id="BaseResultMap" type="com.byit.model.NodeDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="node_id" jdbcType="INTEGER" property="nodeId" />
<id column="dependency_id" jdbcType="INTEGER" property="dependencyId" />
</resultMap>
<delete id="deleteById" parameterType="com.byit.model.NodeDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from node_dependency
where node_id = #{nodeId,jdbcType=INTEGER}
and dependency_id = #{dependencyId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.byit.model.NodeDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into node_dependency (node_id, dependency_id)
values (#{nodeId,jdbcType=INTEGER}, #{dependencyId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.byit.model.NodeDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into node_dependency
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nodeId != null">
node_id,
</if>
<if test="dependencyId != null">
dependency_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nodeId != null">
#{nodeId,jdbcType=INTEGER},
</if>
<if test="dependencyId != null">
#{dependencyId,jdbcType=INTEGER},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobFlowNodeMapper"> <mapper namespace="com.byit.mapper.NodeMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobFlowNode"> <resultMap id="BaseResultMap" type="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<id column="node_id" jdbcType="INTEGER" property="nodeId" /> <id column="node_id" jdbcType="INTEGER" property="nodeId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" /> <result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" />
<result column="callback_token" jdbcType="VARCHAR" property="callbackToken" /> <result column="plugin_token" jdbcType="VARCHAR" property="pluginToken" />
<result column="dependency_nodes" jdbcType="VARCHAR" property="dependencyNodes" />
<result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" /> <result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" />
<result column="flow_id" jdbcType="INTEGER" property="flowId" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="follow_task_flow" jdbcType="CHAR" property="followTaskFlow" />
<result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" /> <result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" />
<result column="job_type" jdbcType="VARCHAR" property="jobType" /> <result column="job_type" jdbcType="VARCHAR" property="jobType" />
<result column="local_node_handler_name" jdbcType="VARCHAR" property="localNodeHandlerName" /> <result column="handler_name" jdbcType="VARCHAR" property="handlerName" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" /> <result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" /> <result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" /> <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_of_flow_id" jdbcType="INTEGER" property="nodeOfFlowId" /> <result column="map_flow_id" jdbcType="INTEGER" property="mapFlowId" />
<result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" /> <result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="is_virtual" jdbcType="CHAR" property="isVirtual" />
<result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" /> <result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remaining_count" jdbcType="INTEGER" property="remainingCount" /> <result column="remaining_count" jdbcType="INTEGER" property="remainingCount" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" /> <result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="retry_interval" jdbcType="BIGINT" property="retryInterval" /> <result column="failed_retry_interval" jdbcType="BIGINT" property="failedRetryInterval" />
<result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" /> <result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" />
<result column="run_param" jdbcType="VARCHAR" property="runParam" /> <result column="run_param" jdbcType="VARCHAR" property="runParam" />
<result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" /> <result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" />
...@@ -35,83 +31,77 @@ ...@@ -35,83 +31,77 @@
<result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" /> <result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" />
<result column="author" jdbcType="VARCHAR" property="author" /> <result column="author" jdbcType="VARCHAR" property="author" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" /> <result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="on_fork" jdbcType="CHAR" property="onFork" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.JobFlowNode"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<result column="run_source" jdbcType="LONGVARCHAR" property="runSource" /> <result column="run_source" jdbcType="LONGVARCHAR" property="runSource" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
node_id, alarm_email, block_strategy, callback_token, dependency_nodes, failed_retry_count, node_id, block_strategy, plugin_token, failed_retry_count, flow_id, gateway_token,
flow_id, follow_task_flow, gateway_token, job_type, local_node_handler_name, mail_action, job_type, handler_name, node_cron, node_desc, node_name, map_flow_id, node_timeout,
node_cron, node_desc, node_name, node_of_flow_id, node_timeout, node_type, plugin_urls, is_virtual, plugin_urls, priority, remaining_count, repeat_count, failed_retry_interval,
priority, remaining_count, repeat_count, retry_interval, routing_strategy, run_param, routing_strategy, run_param, run_source_desc, script_urls, source_principal, source_update_time,
run_source_desc, script_urls, source_principal, source_update_time, trigger_next_time, trigger_next_time, author, add_time, version_name, on_fork, run_command
author, add_time
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
run_source run_source
</sql> </sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs"> <select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
, ,
<include refid="Blob_Column_List" /> <include refid="Blob_Column_List" />
from job_flow_node_current from node
where node_id = #{nodeId,jdbcType=INTEGER} where node_id = #{nodeId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_flow_node_current delete from node
where node_id = #{nodeId,jdbcType=INTEGER} where node_id = #{nodeId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobFlowNode"> <insert id="insert" parameterType="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_node_current (node_id, alarm_email, block_strategy, insert into node (node_id, block_strategy, plugin_token,
callback_token, dependency_nodes, failed_retry_count, failed_retry_count, flow_id, gateway_token,
flow_id, follow_task_flow, gateway_token, job_type, handler_name, node_cron,
job_type, local_node_handler_name, mail_action, node_desc, node_name, map_flow_id,
node_cron, node_desc, node_name, node_timeout, is_virtual, plugin_urls,
node_of_flow_id, node_timeout, node_type, priority, remaining_count, repeat_count,
plugin_urls, priority, remaining_count, failed_retry_interval, routing_strategy, run_param,
repeat_count, retry_interval, routing_strategy, run_source_desc, script_urls, source_principal,
run_param, run_source_desc, script_urls, source_update_time, trigger_next_time, author,
source_principal, source_update_time, trigger_next_time, add_time, version_name, on_fork,
author, add_time, run_source run_command, run_source)
) values (#{nodeId,jdbcType=INTEGER}, #{blockStrategy,jdbcType=VARCHAR}, #{pluginToken,jdbcType=VARCHAR},
values (#{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR}, #{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{gatewayToken,jdbcType=VARCHAR},
#{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR}, #{failedRetryCount,jdbcType=INTEGER}, #{jobType,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR}, #{nodeCron,jdbcType=VARCHAR},
#{flowId,jdbcType=INTEGER}, #{followTaskFlow,jdbcType=CHAR}, #{gatewayToken,jdbcType=VARCHAR}, #{nodeDesc,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{mapFlowId,jdbcType=INTEGER},
#{jobType,jdbcType=VARCHAR}, #{localNodeHandlerName,jdbcType=VARCHAR}, #{mailAction,jdbcType=CHAR}, #{nodeTimeout,jdbcType=BIGINT}, #{isVirtual,jdbcType=CHAR}, #{pluginUrls,jdbcType=VARCHAR},
#{nodeCron,jdbcType=VARCHAR}, #{nodeDesc,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{priority,jdbcType=CHAR}, #{remainingCount,jdbcType=INTEGER}, #{repeatCount,jdbcType=INTEGER},
#{nodeOfFlowId,jdbcType=INTEGER}, #{nodeTimeout,jdbcType=BIGINT}, #{nodeType,jdbcType=VARCHAR}, #{failedRetryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR},
#{pluginUrls,jdbcType=VARCHAR}, #{priority,jdbcType=CHAR}, #{remainingCount,jdbcType=INTEGER}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
#{repeatCount,jdbcType=INTEGER}, #{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{author,jdbcType=VARCHAR},
#{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{versionName,jdbcType=VARCHAR}, #{onFork,jdbcType=CHAR},
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{runCommand,jdbcType=VARCHAR}, #{runSource,jdbcType=LONGVARCHAR})
#{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{runSource,jdbcType=LONGVARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobFlowNode"> <insert id="insertSelective" parameterType="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_node_current insert into node
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nodeId != null"> <if test="nodeId != null">
node_id, node_id,
</if> </if>
<if test="alarmEmail != null">
alarm_email,
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy, block_strategy,
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
callback_token, plugin_token,
</if>
<if test="dependencyNodes != null">
dependency_nodes,
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count, failed_retry_count,
...@@ -119,20 +109,14 @@ ...@@ -119,20 +109,14 @@
<if test="flowId != null"> <if test="flowId != null">
flow_id, flow_id,
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow,
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token, gateway_token,
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type, job_type,
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name, handler_name,
</if>
<if test="mailAction != null">
mail_action,
</if> </if>
<if test="nodeCron != null"> <if test="nodeCron != null">
node_cron, node_cron,
...@@ -143,14 +127,14 @@ ...@@ -143,14 +127,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name, node_name,
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id, map_flow_id,
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout, node_timeout,
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type, is_virtual,
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls, plugin_urls,
...@@ -164,8 +148,8 @@ ...@@ -164,8 +148,8 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
repeat_count, repeat_count,
</if> </if>
<if test="retryInterval != null"> <if test="failedRetryInterval != null">
retry_interval, failed_retry_interval,
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy, routing_strategy,
...@@ -194,6 +178,15 @@ ...@@ -194,6 +178,15 @@
<if test="addTime != null"> <if test="addTime != null">
add_time, add_time,
</if> </if>
<if test="versionName != null">
version_name,
</if>
<if test="onFork != null">
on_fork,
</if>
<if test="runCommand != null">
run_command,
</if>
<if test="runSource != null"> <if test="runSource != null">
run_source, run_source,
</if> </if>
...@@ -202,17 +195,11 @@ ...@@ -202,17 +195,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
#{nodeId,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
#{blockStrategy,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
#{callbackToken,jdbcType=VARCHAR}, #{pluginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
#{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
#{failedRetryCount,jdbcType=INTEGER}, #{failedRetryCount,jdbcType=INTEGER},
...@@ -220,20 +207,14 @@ ...@@ -220,20 +207,14 @@
<if test="flowId != null"> <if test="flowId != null">
#{flowId,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
#{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
#{gatewayToken,jdbcType=VARCHAR}, #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
#{jobType,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
#{localNodeHandlerName,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeCron != null"> <if test="nodeCron != null">
#{nodeCron,jdbcType=VARCHAR}, #{nodeCron,jdbcType=VARCHAR},
...@@ -244,14 +225,14 @@ ...@@ -244,14 +225,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
#{nodeName,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
#{nodeOfFlowId,jdbcType=INTEGER}, #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
#{nodeTimeout,jdbcType=BIGINT}, #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
#{nodeType,jdbcType=VARCHAR}, #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
#{pluginUrls,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR},
...@@ -265,8 +246,8 @@ ...@@ -265,8 +246,8 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER}, #{repeatCount,jdbcType=INTEGER},
</if> </if>
<if test="retryInterval != null"> <if test="failedRetryInterval != null">
#{retryInterval,jdbcType=BIGINT}, #{failedRetryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
#{routingStrategy,jdbcType=VARCHAR}, #{routingStrategy,jdbcType=VARCHAR},
...@@ -295,26 +276,29 @@ ...@@ -295,26 +276,29 @@
<if test="addTime != null"> <if test="addTime != null">
#{addTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="versionName != null">
#{versionName,jdbcType=VARCHAR},
</if>
<if test="onFork != null">
#{onFork,jdbcType=CHAR},
</if>
<if test="runCommand != null">
#{runCommand,jdbcType=VARCHAR},
</if>
<if test="runSource != null"> <if test="runSource != null">
#{runSource,jdbcType=LONGVARCHAR}, #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.JobFlowNode"> <update id="updateByIdSelective" parameterType="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_node_current update node
<set> <set>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, block_strategy = #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="pluginToken != null">
callback_token = #{callbackToken,jdbcType=VARCHAR}, plugin_token = #{pluginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
...@@ -322,20 +306,14 @@ ...@@ -322,20 +306,14 @@
<if test="flowId != null"> <if test="flowId != null">
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
mail_action = #{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeCron != null"> <if test="nodeCron != null">
node_cron = #{nodeCron,jdbcType=VARCHAR}, node_cron = #{nodeCron,jdbcType=VARCHAR},
...@@ -346,14 +324,14 @@ ...@@ -346,14 +324,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
...@@ -367,8 +345,8 @@ ...@@ -367,8 +345,8 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
</if> </if>
<if test="retryInterval != null"> <if test="failedRetryInterval != null">
retry_interval = #{retryInterval,jdbcType=BIGINT}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
...@@ -397,37 +375,42 @@ ...@@ -397,37 +375,42 @@
<if test="addTime != null"> <if test="addTime != null">
add_time = #{addTime,jdbcType=TIMESTAMP}, add_time = #{addTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="versionName != null">
version_name = #{versionName,jdbcType=VARCHAR},
</if>
<if test="onFork != null">
on_fork = #{onFork,jdbcType=CHAR},
</if>
<if test="runCommand != null">
run_command = #{runCommand,jdbcType=VARCHAR},
</if>
<if test="runSource != null"> <if test="runSource != null">
run_source = #{runSource,jdbcType=LONGVARCHAR}, run_source = #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
</set> </set>
where node_id = #{nodeId,jdbcType=INTEGER} where node_id = #{nodeId,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.JobFlowNode"> <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_node_current update node
set alarm_email = #{alarmEmail,jdbcType=VARCHAR}, set block_strategy = #{blockStrategy,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, plugin_token = #{pluginToken,jdbcType=VARCHAR},
callback_token = #{callbackToken,jdbcType=VARCHAR},
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
mail_action = #{mailAction,jdbcType=CHAR},
node_cron = #{nodeCron,jdbcType=VARCHAR}, node_cron = #{nodeCron,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR}, node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remaining_count = #{remainingCount,jdbcType=INTEGER}, remaining_count = #{remainingCount,jdbcType=INTEGER},
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
retry_interval = #{retryInterval,jdbcType=BIGINT}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR}, run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR}, run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
...@@ -437,34 +420,33 @@ ...@@ -437,34 +420,33 @@
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}, trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}, add_time = #{addTime,jdbcType=TIMESTAMP},
version_name = #{versionName,jdbcType=VARCHAR},
on_fork = #{onFork,jdbcType=CHAR},
run_command = #{runCommand,jdbcType=VARCHAR},
run_source = #{runSource,jdbcType=LONGVARCHAR} run_source = #{runSource,jdbcType=LONGVARCHAR}
where node_id = #{nodeId,jdbcType=INTEGER} where node_id = #{nodeId,jdbcType=INTEGER}
</update> </update>
<update id="updateById" parameterType="com.byit.model.JobFlowNode"> <update id="updateById" parameterType="com.byit.model.Node">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_node_current update node
set alarm_email = #{alarmEmail,jdbcType=VARCHAR}, set block_strategy = #{blockStrategy,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, plugin_token = #{pluginToken,jdbcType=VARCHAR},
callback_token = #{callbackToken,jdbcType=VARCHAR},
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
mail_action = #{mailAction,jdbcType=CHAR},
node_cron = #{nodeCron,jdbcType=VARCHAR}, node_cron = #{nodeCron,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR}, node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=CHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remaining_count = #{remainingCount,jdbcType=INTEGER}, remaining_count = #{remainingCount,jdbcType=INTEGER},
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
retry_interval = #{retryInterval,jdbcType=BIGINT}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR}, run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR}, run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
...@@ -473,7 +455,10 @@ ...@@ -473,7 +455,10 @@
source_update_time = #{sourceUpdateTime,jdbcType=DATE}, source_update_time = #{sourceUpdateTime,jdbcType=DATE},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}, trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP} add_time = #{addTime,jdbcType=TIMESTAMP},
version_name = #{versionName,jdbcType=VARCHAR},
on_fork = #{onFork,jdbcType=CHAR},
run_command = #{runCommand,jdbcType=VARCHAR}
where node_id = #{nodeId,jdbcType=INTEGER} where node_id = #{nodeId,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?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.NodeVersionDependencyMapper">
<resultMap id="BaseResultMap" type="com.byit.model.NodeVersionDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="node_version_id" jdbcType="INTEGER" property="nodeVersionId" />
<id column="dependency_id" jdbcType="INTEGER" property="dependencyId" />
</resultMap>
<delete id="deleteById" parameterType="com.byit.model.NodeVersionDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from node_version_dependency
where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
and dependency_id = #{dependencyId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.byit.model.NodeVersionDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into node_version_dependency (node_version_id, dependency_id)
values (#{nodeVersionId,jdbcType=INTEGER}, #{dependencyId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.byit.model.NodeVersionDependencyKey">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into node_version_dependency
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nodeVersionId != null">
node_version_id,
</if>
<if test="dependencyId != null">
dependency_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nodeVersionId != null">
#{nodeVersionId,jdbcType=INTEGER},
</if>
<if test="dependencyId != null">
#{dependencyId,jdbcType=INTEGER},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.jobFlowNodeVersionMapper"> <mapper namespace="com.byit.mapper.NodeVersionMapper">
<resultMap id="BaseResultMap" type="com.byit.model.jobFlowNodeVersion"> <resultMap id="BaseResultMap" type="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<id column="node_version_id" jdbcType="INTEGER" property="nodeVersionId" /> <id column="node_version_id" jdbcType="INTEGER" property="nodeVersionId" />
<result column="node_id" jdbcType="INTEGER" property="nodeId" /> <result column="node_id" jdbcType="INTEGER" property="nodeId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
<result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" /> <result column="block_strategy" jdbcType="VARCHAR" property="blockStrategy" />
<result column="callback_token" jdbcType="VARCHAR" property="callbackToken" /> <result column="pugin_token" jdbcType="VARCHAR" property="puginToken" />
<result column="dependency_nodes" jdbcType="VARCHAR" property="dependencyNodes" />
<result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" /> <result column="failed_retry_count" jdbcType="INTEGER" property="failedRetryCount" />
<result column="flow_id" jdbcType="INTEGER" property="flowId" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" /> <result column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" />
<result column="follow_task_flow" jdbcType="CHAR" property="followTaskFlow" />
<result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" /> <result column="gateway_token" jdbcType="VARCHAR" property="gatewayToken" />
<result column="job_type" jdbcType="VARCHAR" property="jobType" /> <result column="job_type" jdbcType="VARCHAR" property="jobType" />
<result column="local_node_handler_name" jdbcType="VARCHAR" property="localNodeHandlerName" /> <result column="handler_name" jdbcType="VARCHAR" property="handlerName" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" /> <result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" /> <result column="node_desc" jdbcType="VARCHAR" property="nodeDesc" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" /> <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_of_flow_id" jdbcType="INTEGER" property="nodeOfFlowId" /> <result column="map_flow_id" jdbcType="INTEGER" property="mapFlowId" />
<result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" /> <result column="node_timeout" jdbcType="BIGINT" property="nodeTimeout" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="is_virtual" jdbcType="VARCHAR" property="isVirtual" />
<result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" /> <result column="plugin_urls" jdbcType="VARCHAR" property="pluginUrls" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remove_mark" jdbcType="CHAR" property="removeMark" /> <result column="remove_mark" jdbcType="CHAR" property="removeMark" />
<result column="repeat_count" jdbcType="INTEGER" property="repeatCount" /> <result column="repeat_count" jdbcType="INTEGER" property="repeatCount" />
<result column="retry_interval" jdbcType="BIGINT" property="retryInterval" /> <result column="failed_retry_interval" jdbcType="BIGINT" property="failedRetryInterval" />
<result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" /> <result column="routing_strategy" jdbcType="VARCHAR" property="routingStrategy" />
<result column="run_param" jdbcType="VARCHAR" property="runParam" /> <result column="run_param" jdbcType="VARCHAR" property="runParam" />
<result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" /> <result column="run_source_desc" jdbcType="VARCHAR" property="runSourceDesc" />
<result column="script_urls" jdbcType="VARCHAR" property="scriptUrls" /> <result column="script_urls" jdbcType="VARCHAR" property="scriptUrls" />
<result column="source_principal" jdbcType="VARCHAR" property="sourcePrincipal" /> <result column="source_principal" jdbcType="VARCHAR" property="sourcePrincipal" />
<result column="source_update_time" jdbcType="DATE" property="sourceUpdateTime" /> <result column="source_update_time" jdbcType="TIMESTAMP" property="sourceUpdateTime" />
<result column="trigger_next_time" jdbcType="BIGINT" property="triggerNextTime" /> <result column="version_mark" jdbcType="VARCHAR" property="versionMark" />
<result column="version_mark" jdbcType="CHAR" property="versionMark" />
<result column="author" jdbcType="VARCHAR" property="author" /> <result column="author" jdbcType="VARCHAR" property="author" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" /> <result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
<result column="version_name" jdbcType="VARCHAR" property="versionName" />
<result column="on_fork" jdbcType="CHAR" property="onFork" />
<result column="run_command" jdbcType="VARCHAR" property="runCommand" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.jobFlowNodeVersion"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<result column="run_source" jdbcType="LONGVARCHAR" property="runSource" /> <result column="run_source" jdbcType="LONGVARCHAR" property="runSource" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
node_version_id, node_id, alarm_email, block_strategy, callback_token, dependency_nodes, node_version_id, node_id, block_strategy, pugin_token, failed_retry_count, flow_id,
failed_retry_count, flow_id, flow_version_id, follow_task_flow, gateway_token, job_type, flow_version_id, gateway_token, job_type, handler_name, node_cron, node_desc, node_name,
local_node_handler_name, mail_action, node_cron, node_desc, node_name, node_of_flow_id, map_flow_id, node_timeout, is_virtual, plugin_urls, priority, remove_mark, repeat_count,
node_timeout, node_type, plugin_urls, priority, remove_mark, repeat_count, retry_interval, failed_retry_interval, routing_strategy, run_param, run_source_desc, script_urls,
routing_strategy, run_param, run_source_desc, script_urls, source_principal, source_update_time, source_principal, source_update_time, version_mark, author, add_time, version_name,
trigger_next_time, version_mark, author, add_time on_fork, run_command
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
run_source run_source
</sql> </sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs"> <select id="getById" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
, ,
<include refid="Blob_Column_List" /> <include refid="Blob_Column_List" />
from job_flow_node_version from node_version
where node_version_id = #{nodeVersionId,jdbcType=INTEGER} where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_flow_node_version delete from node_version
where node_version_id = #{nodeVersionId,jdbcType=INTEGER} where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.jobFlowNodeVersion"> <insert id="insert" parameterType="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_node_version (node_version_id, node_id, alarm_email, insert into node_version (node_version_id, node_id, block_strategy,
block_strategy, callback_token, dependency_nodes, pugin_token, failed_retry_count, flow_id,
failed_retry_count, flow_id, flow_version_id, flow_version_id, gateway_token, job_type,
follow_task_flow, gateway_token, job_type, handler_name, node_cron, node_desc,
local_node_handler_name, mail_action, node_cron, node_name, map_flow_id, node_timeout,
node_desc, node_name, node_of_flow_id, is_virtual, plugin_urls, priority,
node_timeout, node_type, plugin_urls, remove_mark, repeat_count, failed_retry_interval,
priority, remove_mark, repeat_count, routing_strategy, run_param, run_source_desc,
retry_interval, routing_strategy, run_param, script_urls, source_principal, source_update_time,
run_source_desc, script_urls, source_principal, version_mark, author, add_time,
source_update_time, trigger_next_time, version_mark, version_name, on_fork, run_command,
author, add_time, run_source run_source)
) values (#{nodeVersionId,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{blockStrategy,jdbcType=VARCHAR},
values (#{nodeVersionId,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER}, #{alarmEmail,jdbcType=VARCHAR}, #{puginToken,jdbcType=VARCHAR}, #{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER},
#{blockStrategy,jdbcType=VARCHAR}, #{callbackToken,jdbcType=VARCHAR}, #{dependencyNodes,jdbcType=VARCHAR}, #{flowVersionId,jdbcType=INTEGER}, #{gatewayToken,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR},
#{failedRetryCount,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{flowVersionId,jdbcType=INTEGER}, #{handlerName,jdbcType=VARCHAR}, #{nodeCron,jdbcType=VARCHAR}, #{nodeDesc,jdbcType=VARCHAR},
#{followTaskFlow,jdbcType=CHAR}, #{gatewayToken,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{mapFlowId,jdbcType=INTEGER}, #{nodeTimeout,jdbcType=BIGINT},
#{localNodeHandlerName,jdbcType=VARCHAR}, #{mailAction,jdbcType=CHAR}, #{nodeCron,jdbcType=VARCHAR}, #{isVirtual,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR}, #{priority,jdbcType=CHAR},
#{nodeDesc,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR}, #{nodeOfFlowId,jdbcType=INTEGER}, #{removeMark,jdbcType=CHAR}, #{repeatCount,jdbcType=INTEGER}, #{failedRetryInterval,jdbcType=BIGINT},
#{nodeTimeout,jdbcType=BIGINT}, #{nodeType,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR}, #{routingStrategy,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR}, #{runSourceDesc,jdbcType=VARCHAR},
#{priority,jdbcType=CHAR}, #{removeMark,jdbcType=CHAR}, #{repeatCount,jdbcType=INTEGER}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR}, #{sourceUpdateTime,jdbcType=TIMESTAMP},
#{retryInterval,jdbcType=BIGINT}, #{routingStrategy,jdbcType=VARCHAR}, #{runParam,jdbcType=VARCHAR}, #{versionMark,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP},
#{runSourceDesc,jdbcType=VARCHAR}, #{scriptUrls,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR}, #{versionName,jdbcType=VARCHAR}, #{onFork,jdbcType=CHAR}, #{runCommand,jdbcType=VARCHAR},
#{sourceUpdateTime,jdbcType=DATE}, #{triggerNextTime,jdbcType=BIGINT}, #{versionMark,jdbcType=CHAR}, #{runSource,jdbcType=LONGVARCHAR})
#{author,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{runSource,jdbcType=LONGVARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.jobFlowNodeVersion"> <insert id="insertSelective" parameterType="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_node_version insert into node_version
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nodeVersionId != null"> <if test="nodeVersionId != null">
node_version_id, node_version_id,
...@@ -109,17 +105,11 @@ ...@@ -109,17 +105,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
node_id, node_id,
</if> </if>
<if test="alarmEmail != null">
alarm_email,
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy, block_strategy,
</if> </if>
<if test="callbackToken != null"> <if test="puginToken != null">
callback_token, pugin_token,
</if>
<if test="dependencyNodes != null">
dependency_nodes,
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count, failed_retry_count,
...@@ -130,20 +120,14 @@ ...@@ -130,20 +120,14 @@
<if test="flowVersionId != null"> <if test="flowVersionId != null">
flow_version_id, flow_version_id,
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow,
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token, gateway_token,
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type, job_type,
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name, handler_name,
</if>
<if test="mailAction != null">
mail_action,
</if> </if>
<if test="nodeCron != null"> <if test="nodeCron != null">
node_cron, node_cron,
...@@ -154,14 +138,14 @@ ...@@ -154,14 +138,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name, node_name,
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id, map_flow_id,
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout, node_timeout,
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type, is_virtual,
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls, plugin_urls,
...@@ -175,8 +159,8 @@ ...@@ -175,8 +159,8 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
repeat_count, repeat_count,
</if> </if>
<if test="retryInterval != null"> <if test="failedRetryInterval != null">
retry_interval, failed_retry_interval,
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy, routing_strategy,
...@@ -196,9 +180,6 @@ ...@@ -196,9 +180,6 @@
<if test="sourceUpdateTime != null"> <if test="sourceUpdateTime != null">
source_update_time, source_update_time,
</if> </if>
<if test="triggerNextTime != null">
trigger_next_time,
</if>
<if test="versionMark != null"> <if test="versionMark != null">
version_mark, version_mark,
</if> </if>
...@@ -208,6 +189,15 @@ ...@@ -208,6 +189,15 @@
<if test="addTime != null"> <if test="addTime != null">
add_time, add_time,
</if> </if>
<if test="versionName != null">
version_name,
</if>
<if test="onFork != null">
on_fork,
</if>
<if test="runCommand != null">
run_command,
</if>
<if test="runSource != null"> <if test="runSource != null">
run_source, run_source,
</if> </if>
...@@ -219,17 +209,11 @@ ...@@ -219,17 +209,11 @@
<if test="nodeId != null"> <if test="nodeId != null">
#{nodeId,jdbcType=INTEGER}, #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
#{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
#{blockStrategy,jdbcType=VARCHAR}, #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="puginToken != null">
#{callbackToken,jdbcType=VARCHAR}, #{puginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
#{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
#{failedRetryCount,jdbcType=INTEGER}, #{failedRetryCount,jdbcType=INTEGER},
...@@ -240,20 +224,14 @@ ...@@ -240,20 +224,14 @@
<if test="flowVersionId != null"> <if test="flowVersionId != null">
#{flowVersionId,jdbcType=INTEGER}, #{flowVersionId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
#{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
#{gatewayToken,jdbcType=VARCHAR}, #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
#{jobType,jdbcType=VARCHAR}, #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
#{localNodeHandlerName,jdbcType=VARCHAR}, #{handlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeCron != null"> <if test="nodeCron != null">
#{nodeCron,jdbcType=VARCHAR}, #{nodeCron,jdbcType=VARCHAR},
...@@ -264,14 +242,14 @@ ...@@ -264,14 +242,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
#{nodeName,jdbcType=VARCHAR}, #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
#{nodeOfFlowId,jdbcType=INTEGER}, #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
#{nodeTimeout,jdbcType=BIGINT}, #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
#{nodeType,jdbcType=VARCHAR}, #{isVirtual,jdbcType=VARCHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
#{pluginUrls,jdbcType=VARCHAR}, #{pluginUrls,jdbcType=VARCHAR},
...@@ -285,8 +263,8 @@ ...@@ -285,8 +263,8 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
#{repeatCount,jdbcType=INTEGER}, #{repeatCount,jdbcType=INTEGER},
</if> </if>
<if test="retryInterval != null"> <if test="failedRetryInterval != null">
#{retryInterval,jdbcType=BIGINT}, #{failedRetryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
#{routingStrategy,jdbcType=VARCHAR}, #{routingStrategy,jdbcType=VARCHAR},
...@@ -304,13 +282,10 @@ ...@@ -304,13 +282,10 @@
#{sourcePrincipal,jdbcType=VARCHAR}, #{sourcePrincipal,jdbcType=VARCHAR},
</if> </if>
<if test="sourceUpdateTime != null"> <if test="sourceUpdateTime != null">
#{sourceUpdateTime,jdbcType=DATE}, #{sourceUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="triggerNextTime != null">
#{triggerNextTime,jdbcType=BIGINT},
</if> </if>
<if test="versionMark != null"> <if test="versionMark != null">
#{versionMark,jdbcType=CHAR}, #{versionMark,jdbcType=VARCHAR},
</if> </if>
<if test="author != null"> <if test="author != null">
#{author,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
...@@ -318,29 +293,32 @@ ...@@ -318,29 +293,32 @@
<if test="addTime != null"> <if test="addTime != null">
#{addTime,jdbcType=TIMESTAMP}, #{addTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="versionName != null">
#{versionName,jdbcType=VARCHAR},
</if>
<if test="onFork != null">
#{onFork,jdbcType=CHAR},
</if>
<if test="runCommand != null">
#{runCommand,jdbcType=VARCHAR},
</if>
<if test="runSource != null"> <if test="runSource != null">
#{runSource,jdbcType=LONGVARCHAR}, #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.jobFlowNodeVersion"> <update id="updateByIdSelective" parameterType="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_node_version update node_version
<set> <set>
<if test="nodeId != null"> <if test="nodeId != null">
node_id = #{nodeId,jdbcType=INTEGER}, node_id = #{nodeId,jdbcType=INTEGER},
</if> </if>
<if test="alarmEmail != null">
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
</if>
<if test="blockStrategy != null"> <if test="blockStrategy != null">
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, block_strategy = #{blockStrategy,jdbcType=VARCHAR},
</if> </if>
<if test="callbackToken != null"> <if test="puginToken != null">
callback_token = #{callbackToken,jdbcType=VARCHAR}, pugin_token = #{puginToken,jdbcType=VARCHAR},
</if>
<if test="dependencyNodes != null">
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
</if> </if>
<if test="failedRetryCount != null"> <if test="failedRetryCount != null">
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
...@@ -351,20 +329,14 @@ ...@@ -351,20 +329,14 @@
<if test="flowVersionId != null"> <if test="flowVersionId != null">
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_version_id = #{flowVersionId,jdbcType=INTEGER},
</if> </if>
<if test="followTaskFlow != null">
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
</if>
<if test="gatewayToken != null"> <if test="gatewayToken != null">
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
</if> </if>
<if test="jobType != null"> <if test="jobType != null">
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
</if> </if>
<if test="localNodeHandlerName != null"> <if test="handlerName != null">
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
</if>
<if test="mailAction != null">
mail_action = #{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeCron != null"> <if test="nodeCron != null">
node_cron = #{nodeCron,jdbcType=VARCHAR}, node_cron = #{nodeCron,jdbcType=VARCHAR},
...@@ -375,14 +347,14 @@ ...@@ -375,14 +347,14 @@
<if test="nodeName != null"> <if test="nodeName != null">
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
</if> </if>
<if test="nodeOfFlowId != null"> <if test="mapFlowId != null">
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
</if> </if>
<if test="nodeTimeout != null"> <if test="nodeTimeout != null">
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
</if> </if>
<if test="nodeType != null"> <if test="isVirtual != null">
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=VARCHAR},
</if> </if>
<if test="pluginUrls != null"> <if test="pluginUrls != null">
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
...@@ -396,8 +368,8 @@ ...@@ -396,8 +368,8 @@
<if test="repeatCount != null"> <if test="repeatCount != null">
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
</if> </if>
<if test="retryInterval != null"> <if test="failedRetryInterval != null">
retry_interval = #{retryInterval,jdbcType=BIGINT}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
</if> </if>
<if test="routingStrategy != null"> <if test="routingStrategy != null">
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
...@@ -415,13 +387,10 @@ ...@@ -415,13 +387,10 @@
source_principal = #{sourcePrincipal,jdbcType=VARCHAR}, source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
</if> </if>
<if test="sourceUpdateTime != null"> <if test="sourceUpdateTime != null">
source_update_time = #{sourceUpdateTime,jdbcType=DATE}, source_update_time = #{sourceUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="triggerNextTime != null">
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT},
</if> </if>
<if test="versionMark != null"> <if test="versionMark != null">
version_mark = #{versionMark,jdbcType=CHAR}, version_mark = #{versionMark,jdbcType=VARCHAR},
</if> </if>
<if test="author != null"> <if test="author != null">
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
...@@ -429,89 +398,94 @@ ...@@ -429,89 +398,94 @@
<if test="addTime != null"> <if test="addTime != null">
add_time = #{addTime,jdbcType=TIMESTAMP}, add_time = #{addTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="versionName != null">
version_name = #{versionName,jdbcType=VARCHAR},
</if>
<if test="onFork != null">
on_fork = #{onFork,jdbcType=CHAR},
</if>
<if test="runCommand != null">
run_command = #{runCommand,jdbcType=VARCHAR},
</if>
<if test="runSource != null"> <if test="runSource != null">
run_source = #{runSource,jdbcType=LONGVARCHAR}, run_source = #{runSource,jdbcType=LONGVARCHAR},
</if> </if>
</set> </set>
where node_version_id = #{nodeVersionId,jdbcType=INTEGER} where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</update> </update>
<update id="updateByIdWithBLOBs" parameterType="com.byit.model.jobFlowNodeVersion"> <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_node_version update node_version
set node_id = #{nodeId,jdbcType=INTEGER}, set node_id = #{nodeId,jdbcType=INTEGER},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, block_strategy = #{blockStrategy,jdbcType=VARCHAR},
callback_token = #{callbackToken,jdbcType=VARCHAR}, pugin_token = #{puginToken,jdbcType=VARCHAR},
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_version_id = #{flowVersionId,jdbcType=INTEGER},
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
mail_action = #{mailAction,jdbcType=CHAR},
node_cron = #{nodeCron,jdbcType=VARCHAR}, node_cron = #{nodeCron,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR}, node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=VARCHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remove_mark = #{removeMark,jdbcType=CHAR}, remove_mark = #{removeMark,jdbcType=CHAR},
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
retry_interval = #{retryInterval,jdbcType=BIGINT}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR}, run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR}, run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
script_urls = #{scriptUrls,jdbcType=VARCHAR}, script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR}, source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE}, source_update_time = #{sourceUpdateTime,jdbcType=TIMESTAMP},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}, version_mark = #{versionMark,jdbcType=VARCHAR},
version_mark = #{versionMark,jdbcType=CHAR},
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}, add_time = #{addTime,jdbcType=TIMESTAMP},
version_name = #{versionName,jdbcType=VARCHAR},
on_fork = #{onFork,jdbcType=CHAR},
run_command = #{runCommand,jdbcType=VARCHAR},
run_source = #{runSource,jdbcType=LONGVARCHAR} run_source = #{runSource,jdbcType=LONGVARCHAR}
where node_version_id = #{nodeVersionId,jdbcType=INTEGER} where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</update> </update>
<update id="updateById" parameterType="com.byit.model.jobFlowNodeVersion"> <update id="updateById" parameterType="com.byit.model.NodeVersion">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_node_version update node_version
set node_id = #{nodeId,jdbcType=INTEGER}, set node_id = #{nodeId,jdbcType=INTEGER},
alarm_email = #{alarmEmail,jdbcType=VARCHAR},
block_strategy = #{blockStrategy,jdbcType=VARCHAR}, block_strategy = #{blockStrategy,jdbcType=VARCHAR},
callback_token = #{callbackToken,jdbcType=VARCHAR}, pugin_token = #{puginToken,jdbcType=VARCHAR},
dependency_nodes = #{dependencyNodes,jdbcType=VARCHAR},
failed_retry_count = #{failedRetryCount,jdbcType=INTEGER}, failed_retry_count = #{failedRetryCount,jdbcType=INTEGER},
flow_id = #{flowId,jdbcType=INTEGER}, flow_id = #{flowId,jdbcType=INTEGER},
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_version_id = #{flowVersionId,jdbcType=INTEGER},
follow_task_flow = #{followTaskFlow,jdbcType=CHAR},
gateway_token = #{gatewayToken,jdbcType=VARCHAR}, gateway_token = #{gatewayToken,jdbcType=VARCHAR},
job_type = #{jobType,jdbcType=VARCHAR}, job_type = #{jobType,jdbcType=VARCHAR},
local_node_handler_name = #{localNodeHandlerName,jdbcType=VARCHAR}, handler_name = #{handlerName,jdbcType=VARCHAR},
mail_action = #{mailAction,jdbcType=CHAR},
node_cron = #{nodeCron,jdbcType=VARCHAR}, node_cron = #{nodeCron,jdbcType=VARCHAR},
node_desc = #{nodeDesc,jdbcType=VARCHAR}, node_desc = #{nodeDesc,jdbcType=VARCHAR},
node_name = #{nodeName,jdbcType=VARCHAR}, node_name = #{nodeName,jdbcType=VARCHAR},
node_of_flow_id = #{nodeOfFlowId,jdbcType=INTEGER}, map_flow_id = #{mapFlowId,jdbcType=INTEGER},
node_timeout = #{nodeTimeout,jdbcType=BIGINT}, node_timeout = #{nodeTimeout,jdbcType=BIGINT},
node_type = #{nodeType,jdbcType=VARCHAR}, is_virtual = #{isVirtual,jdbcType=VARCHAR},
plugin_urls = #{pluginUrls,jdbcType=VARCHAR}, plugin_urls = #{pluginUrls,jdbcType=VARCHAR},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remove_mark = #{removeMark,jdbcType=CHAR}, remove_mark = #{removeMark,jdbcType=CHAR},
repeat_count = #{repeatCount,jdbcType=INTEGER}, repeat_count = #{repeatCount,jdbcType=INTEGER},
retry_interval = #{retryInterval,jdbcType=BIGINT}, failed_retry_interval = #{failedRetryInterval,jdbcType=BIGINT},
routing_strategy = #{routingStrategy,jdbcType=VARCHAR}, routing_strategy = #{routingStrategy,jdbcType=VARCHAR},
run_param = #{runParam,jdbcType=VARCHAR}, run_param = #{runParam,jdbcType=VARCHAR},
run_source_desc = #{runSourceDesc,jdbcType=VARCHAR}, run_source_desc = #{runSourceDesc,jdbcType=VARCHAR},
script_urls = #{scriptUrls,jdbcType=VARCHAR}, script_urls = #{scriptUrls,jdbcType=VARCHAR},
source_principal = #{sourcePrincipal,jdbcType=VARCHAR}, source_principal = #{sourcePrincipal,jdbcType=VARCHAR},
source_update_time = #{sourceUpdateTime,jdbcType=DATE}, source_update_time = #{sourceUpdateTime,jdbcType=TIMESTAMP},
trigger_next_time = #{triggerNextTime,jdbcType=BIGINT}, version_mark = #{versionMark,jdbcType=VARCHAR},
version_mark = #{versionMark,jdbcType=CHAR},
author = #{author,jdbcType=VARCHAR}, author = #{author,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP} add_time = #{addTime,jdbcType=TIMESTAMP},
version_name = #{versionName,jdbcType=VARCHAR},
on_fork = #{onFork,jdbcType=CHAR},
run_command = #{runCommand,jdbcType=VARCHAR}
where node_version_id = #{nodeVersionId,jdbcType=INTEGER} where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.byit.mapper.JobFlowRunRecordingMapper"> <mapper namespace="com.byit.mapper.RunRecordingMapper">
<resultMap id="BaseResultMap" type="com.byit.model.JobFlowRunRecording"> <resultMap id="BaseResultMap" type="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
<id column="recording_id" jdbcType="INTEGER" property="recordingId" /> <id column="recording_id" jdbcType="INTEGER" property="recordingId" />
<result column="run_id" jdbcType="VARCHAR" property="runId" /> <result column="run_id" jdbcType="VARCHAR" property="runId" />
<result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" /> <result column="alarm_email" jdbcType="VARCHAR" property="alarmEmail" />
...@@ -11,52 +11,52 @@ ...@@ -11,52 +11,52 @@
<result column="flow_run_result" jdbcType="CHAR" property="flowRunResult" /> <result column="flow_run_result" jdbcType="CHAR" property="flowRunResult" />
<result column="flow_status" jdbcType="CHAR" property="flowStatus" /> <result column="flow_status" jdbcType="CHAR" property="flowStatus" />
<result column="flow_timeout" jdbcType="BIGINT" property="flowTimeout" /> <result column="flow_timeout" jdbcType="BIGINT" property="flowTimeout" />
<result column="flow_version_id" jdbcType="INTEGER" property="flowVersionId" /> <result column="flow_version_name" jdbcType="INTEGER" property="flowVersionName" />
<result column="mail_action" jdbcType="CHAR" property="mailAction" /> <result column="alarml_action" jdbcType="CHAR" property="alarmlAction" />
<result column="node_count" jdbcType="INTEGER" property="nodeCount" />
<result column="priority" jdbcType="CHAR" property="priority" /> <result column="priority" jdbcType="CHAR" property="priority" />
<result column="remaining_node" jdbcType="INTEGER" property="remainingNode" />
<result column="trigger_status" jdbcType="CHAR" property="triggerStatus" />
<result column="trigger_time" jdbcType="BIGINT" property="triggerTime" /> <result column="trigger_time" jdbcType="BIGINT" property="triggerTime" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" /> <result column="principal" jdbcType="VARCHAR" property="principal" />
<result column="author" jdbcType="VARCHAR" property="author" /> <result column="flow_id" jdbcType="INTEGER" property="flowId" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="is_alarm" jdbcType="CHAR" property="isAlarm" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
recording_id, run_id, alarm_email, dispatch_ip, flow_name, flow_run_result, flow_status, recording_id, run_id, alarm_email, dispatch_ip, flow_name, flow_run_result, flow_status,
flow_timeout, flow_version_id, mail_action, node_count, priority, remaining_node, flow_timeout, flow_version_name, alarml_action, priority, trigger_time, principal,
trigger_status, trigger_time, add_time, author flow_id, start_time, end_time, is_alarm
</sql> </sql>
<select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="getById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from job_flow_run_recording from run_recording
where recording_id = #{recordingId,jdbcType=INTEGER} where recording_id = #{recordingId,jdbcType=INTEGER}
</select> </select>
<delete id="deleteById" parameterType="java.lang.Integer"> <delete id="deleteById" parameterType="java.lang.Integer">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
delete from job_flow_run_recording delete from run_recording
where recording_id = #{recordingId,jdbcType=INTEGER} where recording_id = #{recordingId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.byit.model.JobFlowRunRecording"> <insert id="insert" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_run_recording (recording_id, run_id, alarm_email, insert into run_recording (recording_id, run_id, alarm_email,
dispatch_ip, flow_name, flow_run_result, dispatch_ip, flow_name, flow_run_result,
flow_status, flow_timeout, flow_version_id, flow_status, flow_timeout, flow_version_name,
mail_action, node_count, priority, alarml_action, priority, trigger_time,
remaining_node, trigger_status, trigger_time, principal, flow_id, start_time,
add_time, author) end_time, is_alarm)
values (#{recordingId,jdbcType=INTEGER}, #{runId,jdbcType=VARCHAR}, #{alarmEmail,jdbcType=VARCHAR}, values (#{recordingId,jdbcType=INTEGER}, #{runId,jdbcType=VARCHAR}, #{alarmEmail,jdbcType=VARCHAR},
#{dispatchIp,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR}, #{flowRunResult,jdbcType=CHAR}, #{dispatchIp,jdbcType=VARCHAR}, #{flowName,jdbcType=VARCHAR}, #{flowRunResult,jdbcType=CHAR},
#{flowStatus,jdbcType=CHAR}, #{flowTimeout,jdbcType=BIGINT}, #{flowVersionId,jdbcType=INTEGER}, #{flowStatus,jdbcType=CHAR}, #{flowTimeout,jdbcType=BIGINT}, #{flowVersionName,jdbcType=INTEGER},
#{mailAction,jdbcType=CHAR}, #{nodeCount,jdbcType=INTEGER}, #{priority,jdbcType=CHAR}, #{alarmlAction,jdbcType=CHAR}, #{priority,jdbcType=CHAR}, #{triggerTime,jdbcType=BIGINT},
#{remainingNode,jdbcType=INTEGER}, #{triggerStatus,jdbcType=CHAR}, #{triggerTime,jdbcType=BIGINT}, #{principal,jdbcType=VARCHAR}, #{flowId,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
#{addTime,jdbcType=TIMESTAMP}, #{author,jdbcType=VARCHAR}) #{endTime,jdbcType=TIMESTAMP}, #{isAlarm,jdbcType=CHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.byit.model.JobFlowRunRecording"> <insert id="insertSelective" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
insert into job_flow_run_recording insert into run_recording
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="recordingId != null"> <if test="recordingId != null">
recording_id, recording_id,
...@@ -82,32 +82,32 @@ ...@@ -82,32 +82,32 @@
<if test="flowTimeout != null"> <if test="flowTimeout != null">
flow_timeout, flow_timeout,
</if> </if>
<if test="flowVersionId != null"> <if test="flowVersionName != null">
flow_version_id, flow_version_name,
</if> </if>
<if test="mailAction != null"> <if test="alarmlAction != null">
mail_action, alarml_action,
</if>
<if test="nodeCount != null">
node_count,
</if> </if>
<if test="priority != null"> <if test="priority != null">
priority, priority,
</if> </if>
<if test="remainingNode != null">
remaining_node,
</if>
<if test="triggerStatus != null">
trigger_status,
</if>
<if test="triggerTime != null"> <if test="triggerTime != null">
trigger_time, trigger_time,
</if> </if>
<if test="addTime != null"> <if test="principal != null">
add_time, principal,
</if>
<if test="flowId != null">
flow_id,
</if>
<if test="startTime != null">
start_time,
</if> </if>
<if test="author != null"> <if test="endTime != null">
author, end_time,
</if>
<if test="isAlarm != null">
is_alarm,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -135,38 +135,38 @@ ...@@ -135,38 +135,38 @@
<if test="flowTimeout != null"> <if test="flowTimeout != null">
#{flowTimeout,jdbcType=BIGINT}, #{flowTimeout,jdbcType=BIGINT},
</if> </if>
<if test="flowVersionId != null"> <if test="flowVersionName != null">
#{flowVersionId,jdbcType=INTEGER}, #{flowVersionName,jdbcType=INTEGER},
</if>
<if test="mailAction != null">
#{mailAction,jdbcType=CHAR},
</if> </if>
<if test="nodeCount != null"> <if test="alarmlAction != null">
#{nodeCount,jdbcType=INTEGER}, #{alarmlAction,jdbcType=CHAR},
</if> </if>
<if test="priority != null"> <if test="priority != null">
#{priority,jdbcType=CHAR}, #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingNode != null">
#{remainingNode,jdbcType=INTEGER},
</if>
<if test="triggerStatus != null">
#{triggerStatus,jdbcType=CHAR},
</if>
<if test="triggerTime != null"> <if test="triggerTime != null">
#{triggerTime,jdbcType=BIGINT}, #{triggerTime,jdbcType=BIGINT},
</if> </if>
<if test="addTime != null"> <if test="principal != null">
#{addTime,jdbcType=TIMESTAMP}, #{principal,jdbcType=VARCHAR},
</if> </if>
<if test="author != null"> <if test="flowId != null">
#{author,jdbcType=VARCHAR}, #{flowId,jdbcType=INTEGER},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="isAlarm != null">
#{isAlarm,jdbcType=CHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByIdSelective" parameterType="com.byit.model.JobFlowRunRecording"> <update id="updateByIdSelective" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_run_recording update run_recording
<set> <set>
<if test="runId != null"> <if test="runId != null">
run_id = #{runId,jdbcType=VARCHAR}, run_id = #{runId,jdbcType=VARCHAR},
...@@ -189,39 +189,39 @@ ...@@ -189,39 +189,39 @@
<if test="flowTimeout != null"> <if test="flowTimeout != null">
flow_timeout = #{flowTimeout,jdbcType=BIGINT}, flow_timeout = #{flowTimeout,jdbcType=BIGINT},
</if> </if>
<if test="flowVersionId != null"> <if test="flowVersionName != null">
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_version_name = #{flowVersionName,jdbcType=INTEGER},
</if> </if>
<if test="mailAction != null"> <if test="alarmlAction != null">
mail_action = #{mailAction,jdbcType=CHAR}, alarml_action = #{alarmlAction,jdbcType=CHAR},
</if>
<if test="nodeCount != null">
node_count = #{nodeCount,jdbcType=INTEGER},
</if> </if>
<if test="priority != null"> <if test="priority != null">
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
</if> </if>
<if test="remainingNode != null">
remaining_node = #{remainingNode,jdbcType=INTEGER},
</if>
<if test="triggerStatus != null">
trigger_status = #{triggerStatus,jdbcType=CHAR},
</if>
<if test="triggerTime != null"> <if test="triggerTime != null">
trigger_time = #{triggerTime,jdbcType=BIGINT}, trigger_time = #{triggerTime,jdbcType=BIGINT},
</if> </if>
<if test="addTime != null"> <if test="principal != null">
add_time = #{addTime,jdbcType=TIMESTAMP}, principal = #{principal,jdbcType=VARCHAR},
</if>
<if test="flowId != null">
flow_id = #{flowId,jdbcType=INTEGER},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="author != null"> <if test="isAlarm != null">
author = #{author,jdbcType=VARCHAR}, is_alarm = #{isAlarm,jdbcType=CHAR},
</if> </if>
</set> </set>
where recording_id = #{recordingId,jdbcType=INTEGER} where recording_id = #{recordingId,jdbcType=INTEGER}
</update> </update>
<update id="updateById" parameterType="com.byit.model.JobFlowRunRecording"> <update id="updateById" parameterType="com.byit.model.RunRecording">
<!-- generated @mbg.generated date: 2019-12-24 --> <!-- generated @mbg.generated date: 2019-12-25 -->
update job_flow_run_recording update run_recording
set run_id = #{runId,jdbcType=VARCHAR}, set run_id = #{runId,jdbcType=VARCHAR},
alarm_email = #{alarmEmail,jdbcType=VARCHAR}, alarm_email = #{alarmEmail,jdbcType=VARCHAR},
dispatch_ip = #{dispatchIp,jdbcType=VARCHAR}, dispatch_ip = #{dispatchIp,jdbcType=VARCHAR},
...@@ -229,15 +229,15 @@ ...@@ -229,15 +229,15 @@
flow_run_result = #{flowRunResult,jdbcType=CHAR}, flow_run_result = #{flowRunResult,jdbcType=CHAR},
flow_status = #{flowStatus,jdbcType=CHAR}, flow_status = #{flowStatus,jdbcType=CHAR},
flow_timeout = #{flowTimeout,jdbcType=BIGINT}, flow_timeout = #{flowTimeout,jdbcType=BIGINT},
flow_version_id = #{flowVersionId,jdbcType=INTEGER}, flow_version_name = #{flowVersionName,jdbcType=INTEGER},
mail_action = #{mailAction,jdbcType=CHAR}, alarml_action = #{alarmlAction,jdbcType=CHAR},
node_count = #{nodeCount,jdbcType=INTEGER},
priority = #{priority,jdbcType=CHAR}, priority = #{priority,jdbcType=CHAR},
remaining_node = #{remainingNode,jdbcType=INTEGER},
trigger_status = #{triggerStatus,jdbcType=CHAR},
trigger_time = #{triggerTime,jdbcType=BIGINT}, trigger_time = #{triggerTime,jdbcType=BIGINT},
add_time = #{addTime,jdbcType=TIMESTAMP}, principal = #{principal,jdbcType=VARCHAR},
author = #{author,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} where recording_id = #{recordingId,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
<?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.SourceHistoryMapper">
<resultMap id="BaseResultMap" type="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="job_node_id" jdbcType="VARCHAR" property="jobNodeId" />
<result column="glue_remark" jdbcType="VARCHAR" property="glueRemark" />
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
<result column="glue_source" jdbcType="LONGVARCHAR" property="glueSource" />
</resultMap>
<sql id="Base_Column_List">
<!-- generated @mbg.generated date: 2019-12-25 -->
id, job_node_id, glue_remark, add_time
</sql>
<sql id="Blob_Column_List">
<!-- generated @mbg.generated date: 2019-12-25 -->
glue_source
</sql>
<select id="getById" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
<!-- generated @mbg.generated date: 2019-12-25 -->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from source_history
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteById" parameterType="java.lang.String">
<!-- generated @mbg.generated date: 2019-12-25 -->
delete from source_history
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into source_history (id, job_node_id, glue_remark,
add_time, glue_source)
values (#{id,jdbcType=VARCHAR}, #{jobNodeId,jdbcType=VARCHAR}, #{glueRemark,jdbcType=VARCHAR},
#{addTime,jdbcType=TIMESTAMP}, #{glueSource,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
insert into source_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="jobNodeId != null">
job_node_id,
</if>
<if test="glueRemark != null">
glue_remark,
</if>
<if test="addTime != null">
add_time,
</if>
<if test="glueSource != null">
glue_source,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="jobNodeId != null">
#{jobNodeId,jdbcType=VARCHAR},
</if>
<if test="glueRemark != null">
#{glueRemark,jdbcType=VARCHAR},
</if>
<if test="addTime != null">
#{addTime,jdbcType=TIMESTAMP},
</if>
<if test="glueSource != null">
#{glueSource,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByIdSelective" parameterType="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
update source_history
<set>
<if test="jobNodeId != null">
job_node_id = #{jobNodeId,jdbcType=VARCHAR},
</if>
<if test="glueRemark != null">
glue_remark = #{glueRemark,jdbcType=VARCHAR},
</if>
<if test="addTime != null">
add_time = #{addTime,jdbcType=TIMESTAMP},
</if>
<if test="glueSource != null">
glue_source = #{glueSource,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
update source_history
set job_node_id = #{jobNodeId,jdbcType=VARCHAR},
glue_remark = #{glueRemark,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP},
glue_source = #{glueSource,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateById" parameterType="com.byit.model.SourceHistory">
<!-- generated @mbg.generated date: 2019-12-25 -->
update source_history
set job_node_id = #{jobNodeId,jdbcType=VARCHAR},
glue_remark = #{glueRemark,jdbcType=VARCHAR},
add_time = #{addTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</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