Commit d735d971 by tiger

Merge branch 'v1.0.1' of http://192.168.3.233:8090/platform/platform-process-server into v1.0.1

# Conflicts:
#	platform-process/src/main/java/cn/com/glsx/process/job/DynamicConfig.java
#	platform-process/src/main/java/cn/com/glsx/process/job/DynamicTaskAdd.java
#	platform-process/src/main/java/cn/com/glsx/process/modules/controller/TestJobController.java
#	platform-process/src/main/resources/mapper/SopInstBatchMapper.xml
#	platform-process/src/main/resources/mapper/SopInstMapper.xml
#	platform-process/src/main/resources/mapper/SopInstNodeBatchMapper.xml
#	platform-process/src/main/resources/mapper/SopInstNodeMapper.xml
#	platform-process/src/main/resources/mapper/SopTplNodeMapper.xml
2 parents 79a831ca 7d17e0ee
Showing 26 changed files with 332 additions and 186 deletions
...@@ -5,13 +5,6 @@ import javax.persistence.*; ...@@ -5,13 +5,6 @@ import javax.persistence.*;
@Table(name = "sop_inst") @Table(name = "sop_inst")
public class SopInst { public class SopInst {
/**
* 启用状态:0,未启用;1,启用;-1,已删除/过期;
*/
public static final Byte INST_STATUS_UNUSED = 0;
public static final Byte INST_STATUS_DELETED = -1;
/** /**
* 实例id,一般sop只允许一个实例。特殊情况可以根据输入参数来区分不同实例。实例名可以用于在cdp保存状态 * 实例id,一般sop只允许一个实例。特殊情况可以根据输入参数来区分不同实例。实例名可以用于在cdp保存状态
*/ */
...@@ -55,7 +48,6 @@ public class SopInst { ...@@ -55,7 +48,6 @@ public class SopInst {
@Column(name = "inst_status") @Column(name = "inst_status")
private Byte instStatus; private Byte instStatus;
/** /**
* 实例默认输入参数 * 实例默认输入参数
*/ */
...@@ -63,6 +55,12 @@ public class SopInst { ...@@ -63,6 +55,12 @@ public class SopInst {
private String instParam; private String instParam;
/** /**
* 实例快照,每天任务均从快照取数,修改的数据写回快照,与快照表做冗余;
*/
@Column(name = "inst_snapshot")
private String instSnapshot;
/**
* sop有效期,每个sop都设置一个有效期,到期自动停止。 * sop有效期,每个sop都设置一个有效期,到期自动停止。
*/ */
@Column(name = "expire_time") @Column(name = "expire_time")
...@@ -210,12 +208,40 @@ public class SopInst { ...@@ -210,12 +208,40 @@ public class SopInst {
this.instStatus = instStatus; this.instStatus = instStatus;
} }
/**
* 获取实例默认输入参数
*
* @return inst_param - 实例默认输入参数
*/
public String getInstParam() { public String getInstParam() {
return instParam; return instParam;
} }
/**
* 设置实例默认输入参数
*
* @param instParam 实例默认输入参数
*/
public void setInstParam(String instParam) { public void setInstParam(String instParam) {
this.instParam = instParam; this.instParam = instParam == null ? null : instParam.trim();
}
/**
* 获取实例快照,每天任务均从快照取数,修改的数据写回快照,与快照表做冗余;
*
* @return inst_snapshot - 实例快照,每天任务均从快照取数,修改的数据写回快照,与快照表做冗余;
*/
public String getInstSnapshot() {
return instSnapshot;
}
/**
* 设置实例快照,每天任务均从快照取数,修改的数据写回快照,与快照表做冗余;
*
* @param instSnapshot 实例快照,每天任务均从快照取数,修改的数据写回快照,与快照表做冗余;
*/
public void setInstSnapshot(String instSnapshot) {
this.instSnapshot = instSnapshot == null ? null : instSnapshot.trim();
} }
/** /**
......
...@@ -13,6 +13,11 @@ public class SopInstBatch { ...@@ -13,6 +13,11 @@ public class SopInstBatch {
private Integer instId; private Integer instId;
/** /**
* 执行快照
*/
private String snapshot;
/**
* 批次启动时间 * 批次启动时间
*/ */
@Column(name = "create_time") @Column(name = "create_time")
...@@ -25,11 +30,6 @@ public class SopInstBatch { ...@@ -25,11 +30,6 @@ public class SopInstBatch {
private Date updateTime; private Date updateTime;
/** /**
* 执行快照
*/
private String snapshot;
/**
* @return batch_no * @return batch_no
*/ */
public String getBatchNo() { public String getBatchNo() {
...@@ -58,6 +58,24 @@ public class SopInstBatch { ...@@ -58,6 +58,24 @@ public class SopInstBatch {
} }
/** /**
* 获取执行快照
*
* @return snapshot - 执行快照
*/
public String getSnapshot() {
return snapshot;
}
/**
* 设置执行快照
*
* @param snapshot 执行快照
*/
public void setSnapshot(String snapshot) {
this.snapshot = snapshot == null ? null : snapshot.trim();
}
/**
* 获取批次启动时间 * 获取批次启动时间
* *
* @return create_time - 批次启动时间 * @return create_time - 批次启动时间
...@@ -92,22 +110,4 @@ public class SopInstBatch { ...@@ -92,22 +110,4 @@ public class SopInstBatch {
public void setUpdateTime(Date updateTime) { public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
/**
* 获取执行快照
*
* @return snapshot - 执行快照
*/
public String getSnapshot() {
return snapshot;
}
/**
* 设置执行快照
*
* @param snapshot 执行快照
*/
public void setSnapshot(String snapshot) {
this.snapshot = snapshot == null ? null : snapshot.trim();
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,14 +4,6 @@ import javax.persistence.*; ...@@ -4,14 +4,6 @@ import javax.persistence.*;
@Table(name = "sop_inst_node") @Table(name = "sop_inst_node")
public class SopInstNode { public class SopInstNode {
public static final byte NODE_SKIP_FALSE = 0;
public static final byte NODE_SKIP_TRUE = 1;
public static final int NODE_STATUS_DELETED = 0;
public static final int NODE_STATUS_NORMAL = 1;
/** /**
* 实例节点id * 实例节点id
*/ */
...@@ -240,20 +232,40 @@ public class SopInstNode { ...@@ -240,20 +232,40 @@ public class SopInstNode {
this.nodeShow = nodeShow == null ? null : nodeShow.trim(); this.nodeShow = nodeShow == null ? null : nodeShow.trim();
} }
/**
* 获取输入参数格式:Json,开始节点的输入参数全局共用
*
* @return node_param - 输入参数格式:Json,开始节点的输入参数全局共用
*/
public String getNodeParam() { public String getNodeParam() {
return nodeParam; return nodeParam;
} }
/**
* 设置输入参数格式:Json,开始节点的输入参数全局共用
*
* @param nodeParam 输入参数格式:Json,开始节点的输入参数全局共用
*/
public void setNodeParam(String nodeParam) { public void setNodeParam(String nodeParam) {
this.nodeParam = nodeParam; this.nodeParam = nodeParam == null ? null : nodeParam.trim();
} }
/**
* 获取节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*
* @return node_content - 节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*/
public String getNodeContent() { public String getNodeContent() {
return nodeContent; return nodeContent;
} }
/**
* 设置节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*
* @param nodeContent 节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*/
public void setNodeContent(String nodeContent) { public void setNodeContent(String nodeContent) {
this.nodeContent = nodeContent; this.nodeContent = nodeContent == null ? null : nodeContent.trim();
} }
/** /**
......
...@@ -18,6 +18,11 @@ public class SopInstNodeBatch { ...@@ -18,6 +18,11 @@ public class SopInstNodeBatch {
@Column(name = "batch_no") @Column(name = "batch_no")
private String batchNo; private String batchNo;
/**
* 执行快照
*/
private String snapshot;
@Column(name = "create_time") @Column(name = "create_time")
private Date createTime; private Date createTime;
...@@ -25,11 +30,6 @@ public class SopInstNodeBatch { ...@@ -25,11 +30,6 @@ public class SopInstNodeBatch {
private Date updateTime; private Date updateTime;
/** /**
* 执行快照
*/
private String snapshot;
/**
* @return node_batch_no * @return node_batch_no
*/ */
public String getNodeBatchNo() { public String getNodeBatchNo() {
...@@ -76,6 +76,24 @@ public class SopInstNodeBatch { ...@@ -76,6 +76,24 @@ public class SopInstNodeBatch {
} }
/** /**
* 获取执行快照
*
* @return snapshot - 执行快照
*/
public String getSnapshot() {
return snapshot;
}
/**
* 设置执行快照
*
* @param snapshot 执行快照
*/
public void setSnapshot(String snapshot) {
this.snapshot = snapshot == null ? null : snapshot.trim();
}
/**
* @return create_time * @return create_time
*/ */
public Date getCreateTime() { public Date getCreateTime() {
...@@ -102,22 +120,4 @@ public class SopInstNodeBatch { ...@@ -102,22 +120,4 @@ public class SopInstNodeBatch {
public void setUpdateTime(Date updateTime) { public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
/**
* 获取执行快照
*
* @return snapshot - 执行快照
*/
public String getSnapshot() {
return snapshot;
}
/**
* 设置执行快照
*
* @param snapshot 执行快照
*/
public void setSnapshot(String snapshot) {
this.snapshot = snapshot == null ? null : snapshot.trim();
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -42,9 +42,6 @@ public class SopTpl { ...@@ -42,9 +42,6 @@ public class SopTpl {
@Column(name = "tpl_param_def") @Column(name = "tpl_param_def")
private String tplParamDef; private String tplParamDef;
/**
* JSON结构,sop默认输入参数定义,可以在分配门店时配置的参数,比如旅程阶段列表
*/
@Column(name = "tpl_result_def") @Column(name = "tpl_result_def")
private String tplResultDef; private String tplResultDef;
...@@ -61,11 +58,6 @@ public class SopTpl { ...@@ -61,11 +58,6 @@ public class SopTpl {
private Date updateTime; private Date updateTime;
/** /**
* 分发门店数
*/
private int grantCount;
/**
* 获取模板id,模板代码,建议使用模板名拼音首字母缩写,不要超过8位 * 获取模板id,模板代码,建议使用模板名拼音首字母缩写,不要超过8位
* *
* @return tpl_id - 模板id,模板代码,建议使用模板名拼音首字母缩写,不要超过8位 * @return tpl_id - 模板id,模板代码,建议使用模板名拼音首字母缩写,不要超过8位
...@@ -146,29 +138,45 @@ public class SopTpl { ...@@ -146,29 +138,45 @@ public class SopTpl {
return tplStatus; return tplStatus;
} }
/**
* 设置启用状态:0,禁用;1,启用;
*
* @param tplStatus 启用状态:0,禁用;1,启用;
*/
public void setTplStatus(Byte tplStatus) {
this.tplStatus = tplStatus;
}
/**
* 获取JSON结构,sop默认输入参数定义,可以在分配门店时配置的参数,比如旅程阶段列表
*
* @return tpl_param_def - JSON结构,sop默认输入参数定义,可以在分配门店时配置的参数,比如旅程阶段列表
*/
public String getTplParamDef() { public String getTplParamDef() {
return tplParamDef; return tplParamDef;
} }
/**
* 设置JSON结构,sop默认输入参数定义,可以在分配门店时配置的参数,比如旅程阶段列表
*
* @param tplParamDef JSON结构,sop默认输入参数定义,可以在分配门店时配置的参数,比如旅程阶段列表
*/
public void setTplParamDef(String tplParamDef) { public void setTplParamDef(String tplParamDef) {
this.tplParamDef = tplParamDef; this.tplParamDef = tplParamDef == null ? null : tplParamDef.trim();
} }
/**
* @return tpl_result_def
*/
public String getTplResultDef() { public String getTplResultDef() {
return tplResultDef; return tplResultDef;
} }
public void setTplResultDef(String tplResultDef) {
this.tplResultDef = tplResultDef;
}
/** /**
* 设置启用状态:0,禁用;1,启用; * @param tplResultDef
*
* @param tplStatus 启用状态:0,禁用;1,启用;
*/ */
public void setTplStatus(Byte tplStatus) { public void setTplResultDef(String tplResultDef) {
this.tplStatus = tplStatus; this.tplResultDef = tplResultDef == null ? null : tplResultDef.trim();
} }
/** /**
...@@ -216,12 +224,4 @@ public class SopTpl { ...@@ -216,12 +224,4 @@ public class SopTpl {
public void setUpdateTime(Date updateTime) { public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
public int getGrantCount() {
return grantCount;
}
public void setGrantCount(int grantCount) {
this.grantCount = grantCount;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,13 +5,6 @@ import javax.persistence.*; ...@@ -5,13 +5,6 @@ import javax.persistence.*;
@Table(name = "sop_tpl_grant") @Table(name = "sop_tpl_grant")
public class SopTplGrant { public class SopTplGrant {
/**
* 授权状态:0,未启用;1,启用;-1,删除;
*/
public static final Byte GRANT_STATUS_DELETED = -1;
public static final Byte GRANT_STATUS_NORMAL = 1;
/** /**
* 授权id * 授权id
*/ */
...@@ -41,7 +34,7 @@ public class SopTplGrant { ...@@ -41,7 +34,7 @@ public class SopTplGrant {
private Date updateTime; private Date updateTime;
/** /**
* 授权状态:0,未启用;1,启用;-1,删除; * 授权状态:0,未启用;1,启用;
*/ */
@Column(name = "grant_status") @Column(name = "grant_status")
private Byte grantStatus; private Byte grantStatus;
...@@ -143,18 +136,18 @@ public class SopTplGrant { ...@@ -143,18 +136,18 @@ public class SopTplGrant {
} }
/** /**
* 获取授权状态:0,未启用;1,启用;-1,删除; * 获取授权状态:0,未启用;1,启用;
* *
* @return grant_status - 授权状态:0,未启用;1,启用;-1,删除; * @return grant_status - 授权状态:0,未启用;1,启用;
*/ */
public Byte getGrantStatus() { public Byte getGrantStatus() {
return grantStatus; return grantStatus;
} }
/** /**
* 设置授权状态:0,未启用;1,启用;-1,删除; * 设置授权状态:0,未启用;1,启用;
* *
* @param grantStatus 授权状态:0,未启用;1,启用;-1,删除; * @param grantStatus 授权状态:0,未启用;1,启用;
*/ */
public void setGrantStatus(Byte grantStatus) { public void setGrantStatus(Byte grantStatus) {
this.grantStatus = grantStatus; this.grantStatus = grantStatus;
......
...@@ -60,6 +60,12 @@ public class SopTplNode { ...@@ -60,6 +60,12 @@ public class SopTplNode {
private String nodeKey; private String nodeKey;
/** /**
* 节点输出数据格式模板,主要用于后续节点参考
*/
@Column(name = "node_result_def")
private String nodeResultDef;
/**
* 节点可见状态,复制时不可变 * 节点可见状态,复制时不可变
*/ */
@Column(name = "node_visible") @Column(name = "node_visible")
...@@ -191,20 +197,40 @@ public class SopTplNode { ...@@ -191,20 +197,40 @@ public class SopTplNode {
this.nodeShow = nodeShow == null ? null : nodeShow.trim(); this.nodeShow = nodeShow == null ? null : nodeShow.trim();
} }
/**
* 获取输入参数格式:Json,开始节点的输入参数全局共用
*
* @return node_param_def - 输入参数格式:Json,开始节点的输入参数全局共用
*/
public String getNodeParamDef() { public String getNodeParamDef() {
return nodeParamDef; return nodeParamDef;
} }
/**
* 设置输入参数格式:Json,开始节点的输入参数全局共用
*
* @param nodeParamDef 输入参数格式:Json,开始节点的输入参数全局共用
*/
public void setNodeParamDef(String nodeParamDef) { public void setNodeParamDef(String nodeParamDef) {
this.nodeParamDef = nodeParamDef; this.nodeParamDef = nodeParamDef == null ? null : nodeParamDef.trim();
} }
/**
* 获取节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*
* @return node_content_def - 节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*/
public String getNodeContentDef() { public String getNodeContentDef() {
return nodeContentDef; return nodeContentDef;
} }
/**
* 设置节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*
* @param nodeContentDef 节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*/
public void setNodeContentDef(String nodeContentDef) { public void setNodeContentDef(String nodeContentDef) {
this.nodeContentDef = nodeContentDef; this.nodeContentDef = nodeContentDef == null ? null : nodeContentDef.trim();
} }
/** /**
...@@ -226,6 +252,24 @@ public class SopTplNode { ...@@ -226,6 +252,24 @@ public class SopTplNode {
} }
/** /**
* 获取节点输出数据格式模板,主要用于后续节点参考
*
* @return node_result_def - 节点输出数据格式模板,主要用于后续节点参考
*/
public String getNodeResultDef() {
return nodeResultDef;
}
/**
* 设置节点输出数据格式模板,主要用于后续节点参考
*
* @param nodeResultDef 节点输出数据格式模板,主要用于后续节点参考
*/
public void setNodeResultDef(String nodeResultDef) {
this.nodeResultDef = nodeResultDef == null ? null : nodeResultDef.trim();
}
/**
* 获取节点可见状态,复制时不可变 * 获取节点可见状态,复制时不可变
* *
* @return node_visible - 节点可见状态,复制时不可变 * @return node_visible - 节点可见状态,复制时不可变
......
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstBatch; import cn.com.glsx.process.modules.entity.SopInstBatch;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstBatchMapper extends CommonBaseMapper<SopInstBatch> { public interface SopInstBatchMapper extends CommonBaseMapper<SopInstBatch> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstLink; import cn.com.glsx.process.modules.entity.SopInstLink;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstLinkMapper extends CommonBaseMapper<SopInstLink> { public interface SopInstLinkMapper extends CommonBaseMapper<SopInstLink> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInst; import cn.com.glsx.process.modules.entity.SopInst;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstMapper extends CommonBaseMapper<SopInst> { public interface SopInstMapper extends CommonBaseMapper<SopInst> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstNodeBatch; import cn.com.glsx.process.modules.entity.SopInstNodeBatch;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstNodeBatchMapper extends CommonBaseMapper<SopInstNodeBatch> { public interface SopInstNodeBatchMapper extends CommonBaseMapper<SopInstNodeBatch> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstNode; import cn.com.glsx.process.modules.entity.SopInstNode;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstNodeMapper extends CommonBaseMapper<SopInstNode> { public interface SopInstNodeMapper extends CommonBaseMapper<SopInstNode> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopTplLink; import cn.com.glsx.process.modules.entity.SopTplLink;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopTplLinkMapper extends CommonBaseMapper<SopTplLink> { public interface SopTplLinkMapper extends CommonBaseMapper<SopTplLink> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,8 +2,6 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopTplNode; import cn.com.glsx.process.modules.entity.SopTplNode;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopTplNodeMapper extends CommonBaseMapper<SopTplNode> { public interface SopTplNodeMapper extends CommonBaseMapper<SopTplNode> {
} }
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.process.job; package cn.com.glsx.process.job;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
@Configuration @Configuration
@Data
public class DynamicConfig { public class DynamicConfig {
@Value("${elaticjob.zookeeper.dynamiczk}") @Value("${elaticjob.zookeeper.dynamiczk}")
private String dynamiczk; private String dynamiczk;
@Value("${elaticjob.zookeeper.namespace}") @Value("${elaticjob.zookeeper.namespace}")
private String dynamicnamespace; private String dynamicnamespace;
@Bean @Bean
public ZookeeperConfiguration zookeeperConfiguration() { public ZookeeperConfiguration zookeeperConfiguration() {
return new ZookeeperConfiguration(dynamiczk, dynamicnamespace); return new ZookeeperConfiguration(dynamiczk,dynamicnamespace);
} }
@Bean(initMethod = "init") @Bean(initMethod = "init")
public ZookeeperRegistryCenter zookeeperRegistryCenter(ZookeeperConfiguration zookeeperConfiguration) { public ZookeeperRegistryCenter zookeeperRegistryCenter(ZookeeperConfiguration zookeeperConfiguration){
return new ZookeeperRegistryCenter(zookeeperConfiguration); return new ZookeeperRegistryCenter(zookeeperConfiguration);
} }
@Bean
public ElasticJobListener elasticJobListener(){
return new ElasticJobListener(100, 100) ;
}
} }
package cn.com.glsx.process.job; package cn.com.glsx.process.job;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.dangdang.ddframe.job.api.simple.SimpleJob; import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.dangdang.ddframe.job.config.JobCoreConfiguration; import com.dangdang.ddframe.job.config.JobCoreConfiguration;
import com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration; import com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration;
import com.dangdang.ddframe.job.lite.api.listener.ElasticJobListener;
import com.dangdang.ddframe.job.lite.config.LiteJobConfiguration; import com.dangdang.ddframe.job.lite.config.LiteJobConfiguration;
import com.dangdang.ddframe.job.lite.internal.schedule.JobRegistry;
import com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController;
import com.dangdang.ddframe.job.lite.spring.api.SpringJobScheduler; import com.dangdang.ddframe.job.lite.spring.api.SpringJobScheduler;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter; import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component @Component
@Slf4j
public class DynamicTaskAdd { public class DynamicTaskAdd {
@Autowired @Autowired
private ZookeeperRegistryCenter zookeeperRegistryCenter; private ZookeeperRegistryCenter zookeeperRegistryCenter;
@Resource
private ElasticJobListener elasticJobListener;
private static LiteJobConfiguration.Builder simpleJobConfigBuilder(String jobName,
Class<? extends SimpleJob> jobClass,
int shardTotalCount,
String cron,
String id) {
return LiteJobConfiguration.newBuilder(new SimpleJobConfiguration(
JobCoreConfiguration.newBuilder(jobName,cron,shardTotalCount).jobParameter(id).build(),jobClass.getCanonicalName()
));
}
/*** /***
* 动态创建定时任务 * 动态创建定时任务
*
* @param jobName:定时任务名称 * @param jobName:定时任务名称
* @param cron:表达式 * @param cron:表达式
* @param shardingTotalCount:分片数量 * @param shardingTotalCount:分片数量
* @param instance:定时任务实例 * @param instance:定时任务实例
* @param parameters:参数 * @param parameters:参数
*/ */
public void create(String jobName, String cron, int shardingTotalCount, SimpleJob instance, String parameters) { public void create(String jobName, String cron, int shardingTotalCount, SimpleJob instance, String parameters){
LiteJobConfiguration.Builder builder = LiteJobConfiguration.newBuilder(new SimpleJobConfiguration( LiteJobConfiguration jobConfig = simpleJobConfigBuilder(jobName, instance.getClass(), shardingTotalCount, cron, parameters)
JobCoreConfiguration.newBuilder(jobName, cron, shardingTotalCount).jobParameter(parameters).build(), instance.getClass().getName())) .overwrite(true).build();
.overwrite(true); new SpringJobScheduler(instance,zookeeperRegistryCenter,jobConfig,elasticJobListener).init();
}
LiteJobConfiguration liteJobConfiguration = builder.build(); /**
* 更新定时任务
* @param jobName
* @param cron
*/
public void updateJob(String jobName, String cron) {
log.info("更新定时任务:jobName = {}, cron = {}", jobName, cron);
JobScheduleController jobScheduleController = JobRegistry.getInstance().getJobScheduleController(jobName);
if(jobScheduleController==null){
log.info("未找到该job或者job已经下线{}",jobName);
}else{
jobScheduleController.rescheduleJob(cron);
}
}
new SpringJobScheduler(instance, zookeeperRegistryCenter, liteJobConfiguration).init(); /**
* 删除定时任务
* @param jobName
*/
public void removeJob(String jobName){
log.info("删除定时任务:jobName = {}", jobName);
JobScheduleController jobScheduleController = JobRegistry.getInstance().getJobScheduleController(jobName);
if(jobScheduleController==null){
log.info("未找到该job或者job已经下线{}",jobName);
}else{
jobScheduleController.shutdown();
}
} }
} }
package cn.com.glsx.process.job;
import com.dangdang.ddframe.job.executor.ShardingContexts;
import com.dangdang.ddframe.job.lite.api.listener.AbstractDistributeOnceElasticJobListener;
public class ElasticJobListener extends AbstractDistributeOnceElasticJobListener {
public ElasticJobListener(long startedTimeoutMilliseconds, long completedTimeoutMilliseconds) {
super(startedTimeoutMilliseconds,completedTimeoutMilliseconds);
}
@Override
public void doBeforeJobExecutedAtLastStarted(ShardingContexts shardingContexts) {
}
@Override
public void doAfterJobExecutedAtLastCompleted(ShardingContexts shardingContexts) {
}
}
package cn.com.glsx.process.modules.controller; package cn.com.glsx.process.modules.controller;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -29,17 +28,30 @@ public class TestJobController { ...@@ -29,17 +28,30 @@ public class TestJobController {
@Autowired @Autowired
private DynamicTaskAdd dynamicTaskAdd; private DynamicTaskAdd dynamicTaskAdd;
@Resource @Autowired
private SopService sopService; private SopService sopService;
@GetMapping("/jobtest") @GetMapping("/jobtest")
@Operation(summary = "动态任务添加", description = "动态任务添加") @Operation(summary = "动态任务添加", description = "动态任务添加")
public void test(@RequestParam("cron") String cron) { public void addtest(@RequestParam("cron") String cron) {
// cron表达式 // cron表达式
dynamicTaskAdd.create("job001", cron, 1, new DynamicJob(), "test"); dynamicTaskAdd.create("job001", cron, 1, new DynamicJob(), "test");
} }
@PostMapping("/jobtestupdate")
@Operation(summary = "动态任务更新", description = "动态任务更新")
public void updatetest(@RequestParam("cron") String cron, @RequestParam("jobName") String jobName) {
dynamicTaskAdd.updateJob(jobName, cron);
}
@PostMapping("/jobtestdel")
@Operation(summary = "动态任务删除", description = "动态任务删除")
public void deltest(@RequestParam("jobName") String jobName) {
dynamicTaskAdd.removeJob(jobName);
}
@GetMapping("/inst") @GetMapping("/inst")
@Operation(summary = "动态任务添加", description = "动态任务添加") @Operation(summary = "动态任务添加", description = "动态任务添加")
public void inst(@RequestParam("instId") String instId) { public void inst(@RequestParam("instId") String instId) {
......
...@@ -7,18 +7,14 @@ ...@@ -7,18 +7,14 @@
--> -->
<id column="batch_no" jdbcType="VARCHAR" property="batchNo" /> <id column="batch_no" jdbcType="VARCHAR" property="batchNo" />
<result column="inst_id" jdbcType="INTEGER" property="instId" /> <result column="inst_id" jdbcType="INTEGER" property="instId" />
<result column="snapshot" jdbcType="VARCHAR" property="snapshot" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="snapshot" jdbcType="LONGVARCHAR" property="snapshot" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
batch_no, inst_id, create_time, update_time batch_no, inst_id, snapshot, create_time, update_time
<!--
WARNING - @mbg.generated
-->
,snapshot
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -13,20 +13,16 @@ ...@@ -13,20 +13,16 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="inst_status" jdbcType="TINYINT" property="instStatus" /> <result column="inst_status" jdbcType="TINYINT" property="instStatus" />
<result column="inst_param" jdbcType="VARCHAR" property="instParam" />
<result column="inst_snapshot" jdbcType="VARCHAR" property="instSnapshot" />
<result column="expire_time" jdbcType="TIMESTAMP" property="expireTime" /> <result column="expire_time" jdbcType="TIMESTAMP" property="expireTime" />
<result column="batch_no" jdbcType="VARCHAR" property="batchNo" /> <result column="batch_no" jdbcType="VARCHAR" property="batchNo" />
<result column="inst_param" jdbcType="LONGVARCHAR" property="instParam" />
<result column="inst_snapshot" jdbcType="LONGVARCHAR" property="instSnapshot" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
inst_id, grant_id, inst_name, inst_cron, inst_remark, create_time, update_time, inst_status, inst_id, grant_id, inst_name, inst_cron, inst_remark, create_time, update_time, inst_status,
expire_time, batch_no inst_param, inst_snapshot, expire_time, batch_no
<!--
WARNING - @mbg.generated
-->
,inst_param, inst_snapshot
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -8,18 +8,14 @@ ...@@ -8,18 +8,14 @@
<id column="node_batch_no" jdbcType="VARCHAR" property="nodeBatchNo" /> <id column="node_batch_no" jdbcType="VARCHAR" property="nodeBatchNo" />
<result column="inst_node_id" jdbcType="INTEGER" property="instNodeId" /> <result column="inst_node_id" jdbcType="INTEGER" property="instNodeId" />
<result column="batch_no" jdbcType="VARCHAR" property="batchNo" /> <result column="batch_no" jdbcType="VARCHAR" property="batchNo" />
<result column="snapshot" jdbcType="VARCHAR" property="snapshot" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="snapshot" jdbcType="LONGVARCHAR" property="snapshot" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
node_batch_no, inst_node_id, batch_no, create_time, update_time node_batch_no, inst_node_id, batch_no, snapshot, create_time, update_time
<!--
WARNING - @mbg.generated
-->
,snapshot
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -13,23 +13,19 @@ ...@@ -13,23 +13,19 @@
<result column="node_label" jdbcType="VARCHAR" property="nodeLabel" /> <result column="node_label" jdbcType="VARCHAR" property="nodeLabel" />
<result column="node_key" jdbcType="VARCHAR" property="nodeKey" /> <result column="node_key" jdbcType="VARCHAR" property="nodeKey" />
<result column="node_show" jdbcType="VARCHAR" property="nodeShow" /> <result column="node_show" jdbcType="VARCHAR" property="nodeShow" />
<result column="node_param" jdbcType="VARCHAR" property="nodeParam" />
<result column="node_content" jdbcType="VARCHAR" property="nodeContent" />
<result column="node_visible" jdbcType="TINYINT" property="nodeVisible" /> <result column="node_visible" jdbcType="TINYINT" property="nodeVisible" />
<result column="node_skip" jdbcType="TINYINT" property="nodeSkip" /> <result column="node_skip" jdbcType="TINYINT" property="nodeSkip" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" /> <result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_expire_cron" jdbcType="VARCHAR" property="nodeExpireCron" /> <result column="node_expire_cron" jdbcType="VARCHAR" property="nodeExpireCron" />
<result column="node_status" jdbcType="INTEGER" property="nodeStatus" /> <result column="node_status" jdbcType="INTEGER" property="nodeStatus" />
<result column="node_param" jdbcType="LONGVARCHAR" property="nodeParam" />
<result column="node_content" jdbcType="LONGVARCHAR" property="nodeContent" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
inst_node_id, inst_id, node_id, node_name, node_type, node_label, node_key, node_show, inst_node_id, inst_id, node_id, node_name, node_type, node_label, node_key, node_show,
node_visible, node_skip, node_cron, node_expire_cron, node_status node_param, node_content, node_visible, node_skip, node_cron, node_expire_cron, node_status
<!--
WARNING - @mbg.generated
-->
,node_param, node_content
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</select> </select>
<select id="list" resultMap="BaseResultMap"> <select id="list" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from sop_tpl_grant from sop_tpl_grant
where tpl_id = #{tplId} and grant_status != -1 where tpl_id = #{tplId} and grant_status != -1
</select> </select>
......
...@@ -10,27 +10,23 @@ ...@@ -10,27 +10,23 @@
<result column="tpl_cron" jdbcType="VARCHAR" property="tplCron" /> <result column="tpl_cron" jdbcType="VARCHAR" property="tplCron" />
<result column="tpl_remark" jdbcType="VARCHAR" property="tplRemark" /> <result column="tpl_remark" jdbcType="VARCHAR" property="tplRemark" />
<result column="tpl_status" jdbcType="TINYINT" property="tplStatus" /> <result column="tpl_status" jdbcType="TINYINT" property="tplStatus" />
<result column="tpl_param_def" jdbcType="VARCHAR" property="tplParamDef" />
<result column="tpl_result_def" jdbcType="VARCHAR" property="tplResultDef" />
<result column="tpl_singleton" jdbcType="TINYINT" property="tplSingleton" /> <result column="tpl_singleton" jdbcType="TINYINT" property="tplSingleton" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
tpl_id, tpl_name, tpl_cron, tpl_remark, tpl_status, tpl_singleton, create_time, update_time tpl_id, tpl_name, tpl_cron, tpl_remark, tpl_status, tpl_param_def, tpl_result_def,
</sql> tpl_singleton, create_time, update_time
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
-->
tpl_param_def, tpl_result_def
</sql> </sql>
<select id="page" resultMap="BaseResultMap"> <select id="page" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from sop_tpl from sop_tpl
<where> <where>
<if test="id != null and id !=''"> <if test="id != null and id !=''">
......
...@@ -11,21 +11,20 @@ ...@@ -11,21 +11,20 @@
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="node_type" jdbcType="VARCHAR" property="nodeType" />
<result column="node_label" jdbcType="VARCHAR" property="nodeLabel" /> <result column="node_label" jdbcType="VARCHAR" property="nodeLabel" />
<result column="node_show" jdbcType="VARCHAR" property="nodeShow" /> <result column="node_show" jdbcType="VARCHAR" property="nodeShow" />
<result column="node_param_def" jdbcType="VARCHAR" property="nodeParamDef" />
<result column="node_content_def" jdbcType="VARCHAR" property="nodeContentDef" />
<result column="node_key" jdbcType="VARCHAR" property="nodeKey" /> <result column="node_key" jdbcType="VARCHAR" property="nodeKey" />
<result column="node_result_def" jdbcType="VARCHAR" property="nodeResultDef" />
<result column="node_visible" jdbcType="TINYINT" property="nodeVisible" /> <result column="node_visible" jdbcType="TINYINT" property="nodeVisible" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" /> <result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_expire_cron" jdbcType="VARCHAR" property="nodeExpireCron" /> <result column="node_expire_cron" jdbcType="VARCHAR" property="nodeExpireCron" />
<result column="node_skipable" jdbcType="TINYINT" property="nodeSkipable" /> <result column="node_skipable" jdbcType="TINYINT" property="nodeSkipable" />
<result column="node_param_def" jdbcType="LONGVARCHAR" property="nodeParamDef" />
<result column="node_content_def" jdbcType="LONGVARCHAR" property="nodeContentDef" />
<result column="node_result_def" jdbcType="LONGVARCHAR" property="nodeResultDef" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
node_id, tpl_id, node_name, node_type, node_label, node_show, node_key, node_visible, node_id, tpl_id, node_name, node_type, node_label, node_show, node_param_def, node_content_def,
node_cron, node_expire_cron, node_skipable node_key, node_result_def, node_visible, node_cron, node_expire_cron, node_skipable
,node_param_def, node_content_def, node_result_def
</sql> </sql>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -31,29 +31,52 @@ ...@@ -31,29 +31,52 @@
<property name="enableSubPackages" value="true" /> <property name="enableSubPackages" value="true" />
</javaClientGenerator> </javaClientGenerator>
<!-- 可配置多个 --> <!-- 可配置多个 -->
<table tableName="sop_data_source" domainObjectName="SopDataSource" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <!--<table tableName="sop_data_source" domainObjectName="SopDataSource" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>-->
<table tableName="sop_tpl_node" domainObjectName="SopTplNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="node_param_def" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="node_content_def" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="node_result_def" javaType="java.lang.String" jdbcType="VARCHAR" />
</table>
<table tableName="sop_tpl" domainObjectName="SopTpl" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="tpl_param_def" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="tpl_result_def" javaType="java.lang.String" jdbcType="VARCHAR" />
</table>
<table tableName="sop_tpl_grant" domainObjectName="SopTplGrant" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="sop_tpl_link" domainObjectName="SopTplLink" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table> </table>
<!--<table tableName="sop_tpl_node" domainObjectName="SopTplNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="sop_node_tpl" domainObjectName="SopNodeTpl" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="node_param_def" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="node_content_def" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="node_result_def" javaType="java.lang.String" jdbcType="VARCHAR" />
</table> </table>
<table tableName="sop_inst_node_batch" domainObjectName="SopInstNodeBatch" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="sop_inst_node_batch" domainObjectName="SopInstNodeBatch" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="snapshot" javaType="java.lang.String" jdbcType="VARCHAR" />
</table> </table>
<table tableName="sop_inst_node" domainObjectName="SopInstNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="sop_inst_node" domainObjectName="SopInstNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="node_param" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="node_content" javaType="java.lang.String" jdbcType="VARCHAR" />
</table> </table>
<table tableName="sop_inst_link" domainObjectName="SopInstLink" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="sop_inst_link" domainObjectName="SopInstLink" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table> </table>
<table tableName="sop_inst_batch" domainObjectName="SopInstBatch" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="sop_inst_batch" domainObjectName="SopInstBatch" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="snapshot" javaType="java.lang.String" jdbcType="VARCHAR" />
</table> </table>
<table tableName="sop_inst" domainObjectName="SopInst" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false"> <table tableName="sop_inst" domainObjectName="SopInst" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/> <generatedKey column="id" sqlStatement="MySql" identity="true"/>
<columnOverride column="inst_param" javaType="java.lang.String" jdbcType="VARCHAR" />
<columnOverride column="inst_snapshot" javaType="java.lang.String" jdbcType="VARCHAR" />
</table> </table>
<table tableName="node_tpl" domainObjectName="NodeTpl" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>-->
</context> </context>
</generatorConfiguration> </generatorConfiguration>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!