Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fd754179
authored
Sep 11, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]sop增加sql脚本执行器
1 parent
7d17e0ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
339 additions
and
0 deletions
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopNodeTpl.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopTplGrant.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/mapper/SopNodeTplMapper.java
platform-process/src/main/resources/mapper/SopNodeTplMapper.xml
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopNodeTpl.java
0 → 100644
View file @
fd75417
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
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopTplGrant.java
View file @
fd75417
...
...
@@ -5,6 +5,14 @@ import javax.persistence.*;
@Table
(
name
=
"sop_tpl_grant"
)
public
class
SopTplGrant
{
/**
* 授权状态:0,未启用;1,启用;-1,删除;
*/
public
static
final
Byte
GRANT_STATUS_DELETED
=
-
1
;
public
static
final
Byte
GRANT_STATUS_NORMAL
=
1
;
/**
* 授权id
*/
...
...
platform-process-api/src/main/java/cn/com/glsx/process/modules/mapper/SopNodeTplMapper.java
0 → 100644
View file @
fd75417
package
cn
.
com
.
glsx
.
process
.
modules
.
mapper
;
import
cn.com.glsx.process.modules.entity.SopNodeTpl
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
public
interface
SopNodeTplMapper
extends
CommonBaseMapper
<
SopNodeTpl
>
{
}
\ No newline at end of file
platform-process/src/main/resources/mapper/SopNodeTplMapper.xml
0 → 100644
View file @
fd75417
<?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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment