Commit 5991e44b by tiger

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

2 parents d735d971 8ec690e9
...@@ -5,6 +5,13 @@ import javax.persistence.*; ...@@ -5,6 +5,13 @@ 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保存状态
*/ */
......
...@@ -4,6 +4,13 @@ import javax.persistence.*; ...@@ -4,6 +4,13 @@ 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
*/ */
......
package cn.com.glsx.process.modules.entity;
import javax.persistence.*;
@Table(name = "sop_node_tpl")
public class SopNodeTpl {
/**
* 节点id
*/
@Id
@Column(name = "tpl_node_id")
private Integer tplNodeId;
/**
* 节点任务描述
*/
@Column(name = "node_name")
private String nodeName;
/**
* 节点类型:可扩展,包括:start,end,java,python,js,
*/
@Column(name = "node_type")
private String nodeType;
/**
* 节点标签:Java、Js脚本、Sql查询等
*/
@Column(name = "node_label")
private String nodeLabel;
/**
* Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class
*/
@Column(name = "node_show")
private String nodeShow;
/**
* 输入参数格式:Json,开始节点的输入参数全局共用
*/
@Column(name = "node_param_def")
private String nodeParamDef;
/**
* 节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*/
@Column(name = "node_content_def")
private String nodeContentDef;
/**
* 节点输出数据格式模板,主要用于后续节点参考
*/
@Column(name = "node_result_def")
private String nodeResultDef;
/**
* 节点可见状态,复制时不可变
*/
@Column(name = "node_visible")
private Byte nodeVisible;
/**
* 调度表达式,为空则立即执行,执行前记得检查sop批次状态
*/
@Column(name = "node_cron")
private String nodeCron;
/**
* 节点终止调度,为空则不执行过期操作
*/
@Column(name = "node_expire_cron")
private String nodeExpireCron;
/**
* 节点是否可以跳过,复制时不可变
*/
@Column(name = "node_skipable")
private Byte nodeSkipable;
/**
* 获取节点id
*
* @return tpl_node_id - 节点id
*/
public Integer getTplNodeId() {
return tplNodeId;
}
/**
* 设置节点id
*
* @param tplNodeId 节点id
*/
public void setTplNodeId(Integer tplNodeId) {
this.tplNodeId = tplNodeId;
}
/**
* 获取节点任务描述
*
* @return node_name - 节点任务描述
*/
public String getNodeName() {
return nodeName;
}
/**
* 设置节点任务描述
*
* @param nodeName 节点任务描述
*/
public void setNodeName(String nodeName) {
this.nodeName = nodeName == null ? null : nodeName.trim();
}
/**
* 获取节点类型:可扩展,包括:start,end,java,python,js,
*
* @return node_type - 节点类型:可扩展,包括:start,end,java,python,js,
*/
public String getNodeType() {
return nodeType;
}
/**
* 设置节点类型:可扩展,包括:start,end,java,python,js,
*
* @param nodeType 节点类型:可扩展,包括:start,end,java,python,js,
*/
public void setNodeType(String nodeType) {
this.nodeType = nodeType == null ? null : nodeType.trim();
}
/**
* 获取节点标签:Java、Js脚本、Sql查询等
*
* @return node_label - 节点标签:Java、Js脚本、Sql查询等
*/
public String getNodeLabel() {
return nodeLabel;
}
/**
* 设置节点标签:Java、Js脚本、Sql查询等
*
* @param nodeLabel 节点标签:Java、Js脚本、Sql查询等
*/
public void setNodeLabel(String nodeLabel) {
this.nodeLabel = nodeLabel == null ? null : nodeLabel.trim();
}
/**
* 获取Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class
*
* @return node_show - Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class
*/
public String getNodeShow() {
return nodeShow;
}
/**
* 设置Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class
*
* @param nodeShow Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class
*/
public void setNodeShow(String nodeShow) {
this.nodeShow = nodeShow == null ? null : nodeShow.trim();
}
/**
* 获取输入参数格式:Json,开始节点的输入参数全局共用
*
* @return node_param_def - 输入参数格式:Json,开始节点的输入参数全局共用
*/
public String getNodeParamDef() {
return nodeParamDef;
}
/**
* 设置输入参数格式:Json,开始节点的输入参数全局共用
*
* @param nodeParamDef 输入参数格式:Json,开始节点的输入参数全局共用
*/
public void setNodeParamDef(String 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() {
return nodeContentDef;
}
/**
* 设置节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*
* @param nodeContentDef 节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等
*/
public void setNodeContentDef(String nodeContentDef) {
this.nodeContentDef = nodeContentDef == null ? null : nodeContentDef.trim();
}
/**
* 获取节点输出数据格式模板,主要用于后续节点参考
*
* @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 - 节点可见状态,复制时不可变
*/
public Byte getNodeVisible() {
return nodeVisible;
}
/**
* 设置节点可见状态,复制时不可变
*
* @param nodeVisible 节点可见状态,复制时不可变
*/
public void setNodeVisible(Byte nodeVisible) {
this.nodeVisible = nodeVisible;
}
/**
* 获取调度表达式,为空则立即执行,执行前记得检查sop批次状态
*
* @return node_cron - 调度表达式,为空则立即执行,执行前记得检查sop批次状态
*/
public String getNodeCron() {
return nodeCron;
}
/**
* 设置调度表达式,为空则立即执行,执行前记得检查sop批次状态
*
* @param nodeCron 调度表达式,为空则立即执行,执行前记得检查sop批次状态
*/
public void setNodeCron(String nodeCron) {
this.nodeCron = nodeCron == null ? null : nodeCron.trim();
}
/**
* 获取节点终止调度,为空则不执行过期操作
*
* @return node_expire_cron - 节点终止调度,为空则不执行过期操作
*/
public String getNodeExpireCron() {
return nodeExpireCron;
}
/**
* 设置节点终止调度,为空则不执行过期操作
*
* @param nodeExpireCron 节点终止调度,为空则不执行过期操作
*/
public void setNodeExpireCron(String nodeExpireCron) {
this.nodeExpireCron = nodeExpireCron == null ? null : nodeExpireCron.trim();
}
/**
* 获取节点是否可以跳过,复制时不可变
*
* @return node_skipable - 节点是否可以跳过,复制时不可变
*/
public Byte getNodeSkipable() {
return nodeSkipable;
}
/**
* 设置节点是否可以跳过,复制时不可变
*
* @param nodeSkipable 节点是否可以跳过,复制时不可变
*/
public void setNodeSkipable(Byte nodeSkipable) {
this.nodeSkipable = nodeSkipable;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -5,6 +5,14 @@ import javax.persistence.*; ...@@ -5,6 +5,14 @@ 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
*/ */
......
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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
package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopNodeTpl;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopNodeTplMapper extends CommonBaseMapper<SopNodeTpl> {
}
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ 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
<?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="cn.com.glsx.process.modules.mapper.SopNodeTplMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.process.modules.entity.SopNodeTpl">
<!--
WARNING - @mbg.generated
-->
<id column="tpl_node_id" jdbcType="INTEGER" property="tplNodeId" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" />
<result column="node_label" jdbcType="VARCHAR" property="nodeLabel" />
<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_result_def" jdbcType="VARCHAR" property="nodeResultDef" />
<result column="node_visible" jdbcType="TINYINT" property="nodeVisible" />
<result column="node_cron" jdbcType="VARCHAR" property="nodeCron" />
<result column="node_expire_cron" jdbcType="VARCHAR" property="nodeExpireCron" />
<result column="node_skipable" jdbcType="TINYINT" property="nodeSkipable" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
tpl_node_id, node_name, node_type, node_label, node_show, node_param_def, node_content_def,
node_result_def, node_visible, node_cron, node_expire_cron, node_skipable
</sql>
</mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!