Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzwf
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzwf
提交
d0fb3e1e
提交
d0fb3e1e
编写于
9月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 部署微服务接口
上级
4e0eb3ea
变更
21
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
2053 行增加
和
6 行删除
+2053
-6
config.xml
config.xml
+5
-0
pom.xml
ibzwf-app/ibzwf-app-web/pom.xml
+20
-0
application-web-prod.yml
...ibzwf-app-web/src/main/resources/application-web-prod.yml
+1
-1
WFGroup.java
...rc/main/java/cn/ibizlab/core/workflow/domain/WFGroup.java
+12
-0
WFMember.java
...c/main/java/cn/ibizlab/core/workflow/domain/WFMember.java
+12
-0
WFProcessDefinition.java
.../cn/ibizlab/core/workflow/domain/WFProcessDefinition.java
+12
-0
WFSystem.java
...c/main/java/cn/ibizlab/core/workflow/domain/WFSystem.java
+12
-0
WFUser.java
...src/main/java/cn/ibizlab/core/workflow/domain/WFUser.java
+12
-0
ibzwf.json
ibzwf-core/src/main/resources/sysmodel/ibzwf.json
+1825
-0
pom.xml
ibzwf-provider/ibzwf-provider-api/pom.xml
+20
-0
Dockerfile
ibzwf-provider/ibzwf-provider-api/src/main/docker/Dockerfile
+1
-1
ibzwf-provider-api.yaml
...bzwf-provider-api/src/main/docker/ibzwf-provider-api.yaml
+14
-1
application-api-prod.yml
...-provider-api/src/main/resources/application-api-prod.yml
+1
-1
IBZLiteFallback.java
...src/main/java/cn/ibizlab/util/client/IBZLiteFallback.java
+13
-0
IBZLiteFeignClient.java
.../main/java/cn/ibizlab/util/client/IBZLiteFeignClient.java
+17
-0
EntityBase.java
...util/src/main/java/cn/ibizlab/util/domain/EntityBase.java
+30
-0
EntityClient.java
...il/src/main/java/cn/ibizlab/util/domain/EntityClient.java
+11
-0
EntityMP.java
...f-util/src/main/java/cn/ibizlab/util/domain/EntityMP.java
+10
-0
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+23
-0
application-nacos.yml
ibzwf-util/src/main/resources/application-nacos.yml
+1
-1
application-sys.yml
ibzwf-util/src/main/resources/application-sys.yml
+1
-1
未找到文件。
config.xml
浏览文件 @
d0fb3e1e
...
...
@@ -37,6 +37,11 @@
git clone -b master $para2 ibzwf/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzwf/
mvn clean package -Papi
cd ibzwf-provider/ibzwf-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzwf-provider-api.yaml ibzlab-rt --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
ibzwf-app/ibzwf-app-web/pom.xml
浏览文件 @
d0fb3e1e
...
...
@@ -21,6 +21,9 @@
</dependency>
</dependencies>
<properties>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
</properties>
<profiles>
...
...
@@ -95,6 +98,23 @@
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
${docker.image.prefix}/${project.artifactId}:latest
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
../../
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
...
...
ibzwf-app/ibzwf-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
d0fb3e1e
server
:
port
:
8080
port
:
30003
#Log配置
logging
:
level
:
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFGroup.java
浏览文件 @
d0fb3e1e
...
...
@@ -92,6 +92,18 @@ public class WFGroup extends EntityMP implements Serializable {
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"groupid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFMember.java
浏览文件 @
d0fb3e1e
...
...
@@ -172,6 +172,18 @@ public class WFMember extends EntityMP implements Serializable {
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s"
,
this
.
getGroupid
(),
this
.
getUserid
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"memberid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFProcessDefinition.java
浏览文件 @
d0fb3e1e
...
...
@@ -188,6 +188,18 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"definitionkey"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFSystem.java
浏览文件 @
d0fb3e1e
...
...
@@ -68,6 +68,18 @@ public class WFSystem extends EntityMP implements Serializable {
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"pssystemid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/domain/WFUser.java
浏览文件 @
d0fb3e1e
...
...
@@ -176,6 +176,18 @@ public class WFUser extends EntityMP implements Serializable {
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"userid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzwf-core/src/main/resources/sysmodel/ibzwf.json
0 → 100644
浏览文件 @
d0fb3e1e
{
"systemid"
:
"ibzwf"
,
"systemname"
:
"ibzwf"
,
"entities"
:[
{
"entity_name"
:
"WF_GROUP"
,
"logicname"
:
"角色/用户组"
,
"code_name"
:
"WFGroup"
,
"table_name"
:
"IBZWFGROUP"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"GROUPID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"组标识"
,
"entity_name"
:
"WFGroup"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"GROUPNAME"
,
"codename"
:
"Name"
,
"field_logic_name"
:
"组名称"
,
"entity_name"
:
"WFGroup"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"GROUPSCOPE"
,
"codename"
:
"GroupScope"
,
"field_logic_name"
:
"范围"
,
"entity_name"
:
"WFGroup"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
{
"name"
:
"DER1N_WF_GROUP_MEMBER_WF_GROUP_GROUPID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"Group"
,
"entity_name"
:
"WFGroup"
,
"ref_entity_name"
:
"WFMember"
,
"nested_name"
:
""
,
"lookup"
:
""
}
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_HISTORY"
,
"logicname"
:
"历史"
,
"code_name"
:
"WFHistory"
,
"table_name"
:
"IBZWFHISTORY"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"HISTID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"标识"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"AUTHOR"
,
"codename"
:
"Author"
,
"field_logic_name"
:
"操作者标识"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"AUTHORNAME"
,
"codename"
:
"AuthorName"
,
"field_logic_name"
:
"操作者"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"MESSAGE"
,
"codename"
:
"FullMessage"
,
"field_logic_name"
:
"意见"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
2000
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ACTIONTIME"
,
"codename"
:
"Time"
,
"field_logic_name"
:
"时间"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Timestamp"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ACTIONTYPE"
,
"codename"
:
"Type"
,
"field_logic_name"
:
"意见类型"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"TASKID"
,
"codename"
:
"TaskId"
,
"field_logic_name"
:
"任务标识"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"INSTANCEID"
,
"codename"
:
"ProcessInstanceId"
,
"field_logic_name"
:
"实例标识"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"BUSINESSKEY"
,
"codename"
:
"ProcessInstanceBusinessKey"
,
"field_logic_name"
:
"业务键值"
,
"entity_name"
:
"WFHistory"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_GROUP_MEMBER"
,
"logicname"
:
"成员"
,
"code_name"
:
"WFMember"
,
"table_name"
:
"IBZWFMEMBER"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"MEMBERID"
,
"codename"
:
"MemberId"
,
"field_logic_name"
:
"组成员标识"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MEMBERNAME"
,
"codename"
:
"MemberName"
,
"field_logic_name"
:
"组成员名称"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"GROUPID"
,
"codename"
:
"GroupId"
,
"field_logic_name"
:
"组标识"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"Id"
,
"relation_name"
:
"DER1N_WF_GROUP_MEMBER_WF_GROUP_GROUPID"
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
"KEY1"
},
{
"fieldname"
:
"GROUPNAME"
,
"codename"
:
"GroupName"
,
"field_logic_name"
:
"用户组"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"Name"
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
0
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"USERID"
,
"codename"
:
"UserId"
,
"field_logic_name"
:
"用户标识"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"Id"
,
"relation_name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
"KEY2"
},
{
"fieldname"
:
"PERSONNAME"
,
"codename"
:
"PersonName"
,
"field_logic_name"
:
"用户"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"DisplayName"
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
0
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ORGID"
,
"codename"
:
"OrgId"
,
"field_logic_name"
:
"单位"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"OrgId"
,
"relation_name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
0
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
"ORGID"
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ORGNAME"
,
"codename"
:
"OrgName"
,
"field_logic_name"
:
"单位"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"OrgName"
,
"relation_name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
0
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
"ORGNAME"
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MDEPTID"
,
"codename"
:
"MDeptId"
,
"field_logic_name"
:
"主部门"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"MdeptId"
,
"relation_name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
0
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MDEPTNAME"
,
"codename"
:
"MDeptName"
,
"field_logic_name"
:
"主部门"
,
"entity_name"
:
"WFMember"
,
"ref_field_name"
:
"MDeptName"
,
"relation_name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
0
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
{
"name"
:
"DER1N_WF_GROUP_MEMBER_WF_GROUP_GROUPID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"Group"
,
"entity_name"
:
"WFGroup"
,
"ref_entity_name"
:
"WFMember"
,
"nested_name"
:
""
,
"lookup"
:
""
},
{
"name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"User"
,
"entity_name"
:
"WFUser"
,
"ref_entity_name"
:
"WFMember"
,
"nested_name"
:
""
,
"lookup"
:
""
}
]
}
,
{
"entity_name"
:
"WF_DEFINITION"
,
"logicname"
:
"流程定义"
,
"code_name"
:
"WFProcessDefinition"
,
"table_name"
:
"IBZWFDEFINITION"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"DEFINITIONKEY"
,
"codename"
:
"DefinitionKey"
,
"field_logic_name"
:
"DefinitionKey"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONNAME"
,
"codename"
:
"DefinitionName"
,
"field_logic_name"
:
"流程定义名称"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"MODELVERSION"
,
"codename"
:
"ModelVersion"
,
"field_logic_name"
:
"模型版本"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Integer"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MODELENABLE"
,
"codename"
:
"ModelEnable"
,
"field_logic_name"
:
"模型是否启用"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Integer"
,
"dict"
:
"YesNo"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"PSSYSTEMID"
,
"codename"
:
"PSSystemId"
,
"field_logic_name"
:
"系统标识"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MD5CHECK"
,
"codename"
:
"MD5Check"
,
"field_logic_name"
:
"校验"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"BPMNFILE"
,
"codename"
:
"BPMNFile"
,
"field_logic_name"
:
"BPMN"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
1000
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEPLOYKEY"
,
"codename"
:
"DeployKey"
,
"field_logic_name"
:
"DeployKey"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"WEBSERVICEIDS"
,
"codename"
:
"WebServiceIds"
,
"field_logic_name"
:
"WebServiceIds"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MOBILESERVICEIDS"
,
"codename"
:
"MobileServiceIds"
,
"field_logic_name"
:
"MobileServiceIds"
,
"entity_name"
:
"WFProcessDefinition"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_INSTANCE"
,
"logicname"
:
"流程实例"
,
"code_name"
:
"WFProcessInstance"
,
"table_name"
:
"IBZWFINSTANCE"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"INSTANCEID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"实例标识"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"INSTANCENAME"
,
"codename"
:
"Name"
,
"field_logic_name"
:
"实例名称"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
300
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONKEY"
,
"codename"
:
"ProcessDefinitionKey"
,
"field_logic_name"
:
"DefinitionKey"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONNAME"
,
"codename"
:
"ProcessDefinitionName"
,
"field_logic_name"
:
"流程定义名称"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"BUSINESSKEY"
,
"codename"
:
"BusinessKey"
,
"field_logic_name"
:
"业务键值"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"STARTTIME"
,
"codename"
:
"StartTime"
,
"field_logic_name"
:
"启动时间"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Timestamp"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ENDTIME"
,
"codename"
:
"EndTime"
,
"field_logic_name"
:
"结束时间"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Timestamp"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"STARTUSERID"
,
"codename"
:
"StartUserId"
,
"field_logic_name"
:
"发起人标识"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"STARTUSERNAME"
,
"codename"
:
"StartUserName"
,
"field_logic_name"
:
"发起人"
,
"entity_name"
:
"WFProcessInstance"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_DEFINITION_NODE"
,
"logicname"
:
"流程定义节点"
,
"code_name"
:
"WFProcessNode"
,
"table_name"
:
"IBZWFNODE"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"NODEID"
,
"codename"
:
"UserTaskId"
,
"field_logic_name"
:
"节点标识"
,
"entity_name"
:
"WFProcessNode"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"NODENAME"
,
"codename"
:
"UserTaskName"
,
"field_logic_name"
:
"节点名称"
,
"entity_name"
:
"WFProcessNode"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONKEY"
,
"codename"
:
"ProcessDefinitionKey"
,
"field_logic_name"
:
"DefinitionKey"
,
"entity_name"
:
"WFProcessNode"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONNAME"
,
"codename"
:
"ProcessDefinitionName"
,
"field_logic_name"
:
"流程定义名称"
,
"entity_name"
:
"WFProcessNode"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"VERSION"
,
"codename"
:
"Version"
,
"field_logic_name"
:
"版本"
,
"entity_name"
:
"WFProcessNode"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Integer"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"CNT"
,
"codename"
:
"Cnt"
,
"field_logic_name"
:
"数量"
,
"entity_name"
:
"WFProcessNode"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Integer"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_MODEL"
,
"logicname"
:
"流程模型"
,
"code_name"
:
"WFREModel"
,
"table_name"
:
"IBZWFMODEL"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"MODELID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"ID"
,
"entity_name"
:
"WFREModel"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MODELNAME"
,
"codename"
:
"Name"
,
"field_logic_name"
:
"名称"
,
"entity_name"
:
"WFREModel"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"BPMNFILE"
,
"codename"
:
"BPMNFile"
,
"field_logic_name"
:
"BPMN"
,
"entity_name"
:
"WFREModel"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
1000
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_PSSYSTEM"
,
"logicname"
:
"系统"
,
"code_name"
:
"WFSystem"
,
"table_name"
:
"IBZPSSYSTEM"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"PSSYSTEMID"
,
"codename"
:
"PSSystemId"
,
"field_logic_name"
:
"系统标识"
,
"entity_name"
:
"WFSystem"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"PSSYSTEMNAME"
,
"codename"
:
"PSSystemName"
,
"field_logic_name"
:
"系统名称"
,
"entity_name"
:
"WFSystem"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_TASK"
,
"logicname"
:
"工作流任务"
,
"code_name"
:
"WFTask"
,
"table_name"
:
"IBZTASK"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"TASKID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"任务标识"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"TASKNAME"
,
"codename"
:
"Name"
,
"field_logic_name"
:
"状态"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONID"
,
"codename"
:
"ProcessDefinitionId"
,
"field_logic_name"
:
"DefinitionId"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONKEY"
,
"codename"
:
"ProcessDefinitionKey"
,
"field_logic_name"
:
"DefinitionKey"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONNAME"
,
"codename"
:
"ProcessDefinitionName"
,
"field_logic_name"
:
"流程"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"TASKDEFINITIONKEY"
,
"codename"
:
"TaskDefinitionKey"
,
"field_logic_name"
:
"TaskDefinitionKey"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DESCRIPTION"
,
"codename"
:
"Description"
,
"field_logic_name"
:
"待办事项"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
1000
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"CREATETIME"
,
"codename"
:
"CreateTime"
,
"field_logic_name"
:
"发起时间"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"Timestamp"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
null
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"INSTANCEID"
,
"codename"
:
"ProcessInstanceId"
,
"field_logic_name"
:
"实例标识"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"BUSINESSKEY"
,
"codename"
:
"ProcessInstanceBusinessKey"
,
"field_logic_name"
:
"业务键值"
,
"entity_name"
:
"WFTask"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_TASK_WAY"
,
"logicname"
:
"操作路径"
,
"code_name"
:
"WFTaskWay"
,
"table_name"
:
"IBZWFTASKWAY"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"WAYID"
,
"codename"
:
"SequenceFlowId"
,
"field_logic_name"
:
"路径标识"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"WAYNAME"
,
"codename"
:
"SequenceFlowName"
,
"field_logic_name"
:
"路径标识"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"TASKID"
,
"codename"
:
"TaskId"
,
"field_logic_name"
:
"任务标识"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"TASKDEFINITIONKEY"
,
"codename"
:
"TaskDefinitionKey"
,
"field_logic_name"
:
"TaskDefinitionKey"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"INSTANCEID"
,
"codename"
:
"ProcessInstanceId"
,
"field_logic_name"
:
"实例标识"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"DEFINITIONKEY"
,
"codename"
:
"ProcessDefinitionKey"
,
"field_logic_name"
:
"DefinitionKey"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"BUSINESSKEY"
,
"codename"
:
"ProcessInstanceBusinessKey"
,
"field_logic_name"
:
"业务键值"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"REFVIEWKEY"
,
"codename"
:
"RefViewKey"
,
"field_logic_name"
:
"引用视图"
,
"entity_name"
:
"WFTaskWay"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
],
"subEntitys"
:[
]
}
,
{
"entity_name"
:
"WF_USER"
,
"logicname"
:
"用户"
,
"code_name"
:
"WFUser"
,
"table_name"
:
"IBZUSER"
,
"system_id"
:
"ibzwf"
,
"system_name"
:
"ibzwf"
,
"ds_id"
:
null
,
"ds_name"
:
""
,
"fields"
:[
{
"fieldname"
:
"USERID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"用户标识"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
1
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"USERNAME"
,
"codename"
:
"FirstName"
,
"field_logic_name"
:
"用户全局名"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"PERSONNAME"
,
"codename"
:
"DisplayName"
,
"field_logic_name"
:
"用户名称"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
1
,
"union_key"
:
""
},
{
"fieldname"
:
"MDEPTID"
,
"codename"
:
"MdeptId"
,
"field_logic_name"
:
"主部门"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MDEPTCODE"
,
"codename"
:
"MDeptCode"
,
"field_logic_name"
:
"主部门代码"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"MDEPTNAME"
,
"codename"
:
"MDeptName"
,
"field_logic_name"
:
"主部门名称"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"BCODE"
,
"codename"
:
"BCode"
,
"field_logic_name"
:
"业务编码"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ORGID"
,
"codename"
:
"OrgId"
,
"field_logic_name"
:
"单位"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
"ORGID"
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ORGCODE"
,
"codename"
:
"OrgCode"
,
"field_logic_name"
:
"单位代码"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
""
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
},
{
"fieldname"
:
"ORGNAME"
,
"codename"
:
"OrgName"
,
"field_logic_name"
:
"单位名称"
,
"entity_name"
:
"WFUser"
,
"ref_field_name"
:
""
,
"relation_name"
:
""
,
"field_type"
:
"String"
,
"dict"
:
""
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_preci"
:
0
,
"expression"
:
""
,
"predefined"
:
"ORGNAME"
,
"key_field"
:
0
,
"major_field"
:
0
,
"union_key"
:
""
}
],
"parentEntitys"
:[
{
"name"
:
"DER1N_WF_GROUP_MEMBER_WF_USER_USERID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"User"
,
"entity_name"
:
"WFUser"
,
"ref_entity_name"
:
"WFMember"
,
"nested_name"
:
""
,
"lookup"
:
""
}
],
"subEntitys"
:[
]
}
]
}
ibzwf-provider/ibzwf-provider-api/pom.xml
浏览文件 @
d0fb3e1e
...
...
@@ -21,6 +21,9 @@
</dependency>
</dependencies>
<properties>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
</properties>
<profiles>
<profile>
...
...
@@ -54,6 +57,23 @@
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
${docker.image.prefix}/${project.artifactId}:latest
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
../../
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
...
...
ibzwf-provider/ibzwf-provider-api/src/main/docker/Dockerfile
浏览文件 @
d0fb3e1e
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar
EXPOSE
8081
EXPOSE
40003
ADD
ibzwf-provider-api.jar /ibzwf-provider-api.jar
ibzwf-provider/ibzwf-provider-api/src/main/docker/ibzwf-provider-api.yaml
浏览文件 @
d0fb3e1e
...
...
@@ -3,9 +3,22 @@ services:
ibzwf-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest
ports
:
-
"
8081:8081
"
-
"
40003:40003
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40003
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.102.211:8848
deploy
:
resources
:
limits
:
...
...
ibzwf-provider/ibzwf-provider-api/src/main/resources/application-api-prod.yml
浏览文件 @
d0fb3e1e
server
:
port
:
8081
port
:
40003
#Log配置
logging
:
level
:
...
...
ibzwf-util/src/main/java/cn/ibizlab/util/client/IBZLiteFallback.java
0 → 100644
浏览文件 @
d0fb3e1e
package
cn
.
ibizlab
.
util
.
client
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.stereotype.Component
;
@Component
public
class
IBZLiteFallback
implements
IBZLiteFeignClient
{
@Override
public
Boolean
syncSysModel
(
JSONObject
system
)
{
return
null
;
}
}
ibzwf-util/src/main/java/cn/ibizlab/util/client/IBZLiteFeignClient.java
0 → 100644
浏览文件 @
d0fb3e1e
package
cn
.
ibizlab
.
util
.
client
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
@FeignClient
(
value
=
"${ibiz.ref.service.lite:ibzlite-api}"
,
contextId
=
"lite"
,
fallback
=
IBZLiteFallback
.
class
)
public
interface
IBZLiteFeignClient
{
/**
* 同步系统资模型到lite
* @param system 系统模型信息
* @return
*/
@PostMapping
(
"/dstsystems/save"
)
Boolean
syncSysModel
(
@RequestBody
JSONObject
system
);
}
ibzwf-util/src/main/java/cn/ibizlab/util/domain/EntityBase.java
浏览文件 @
d0fb3e1e
...
...
@@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import
org.springframework.cglib.beans.BeanMap
;
import
org.springframework.data.annotation.Transient
;
import
org.springframework.util.AlternativeJdkIdGenerator
;
import
org.springframework.util.ObjectUtils
;
import
java.io.Serializable
;
import
java.lang.reflect.Field
;
import
org.springframework.util.StringUtils
;
import
java.util.*
;
...
...
@@ -96,4 +98,32 @@ public class EntityBase implements Serializable {
this
.
extensionparams
.
put
(
field
.
toLowerCase
(),
value
);
}
/**
* 复制当前对象数据到目标对象
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
){
if
(
targetEntity
instanceof
EntityBase
){
EntityBase
target
=
(
EntityBase
)
targetEntity
;
Hashtable
<
String
,
Field
>
sourceFields
=
DEFieldCacheMap
.
getFieldMap
(
this
.
getClass
());
for
(
String
field
:
sourceFields
.
keySet
()){
Object
value
=
this
.
get
(
field
);
if
(
!
ObjectUtils
.
isEmpty
(
value
)
||
ObjectUtils
.
isEmpty
(
value
)
&&
getFocusNull
().
contains
(
field
)
&&
bIncEmpty
){
target
.
set
(
field
,
value
);
}
}
}
return
targetEntity
;
}
/**
* 重置当前数据对象属性值
* @param field
*/
public
void
reset
(
String
field
){
}
}
\ No newline at end of file
ibzwf-util/src/main/java/cn/ibizlab/util/domain/EntityClient.java
浏览文件 @
d0fb3e1e
package
cn
.
ibizlab
.
util
.
domain
;
import
org.springframework.util.StringUtils
;
public
class
EntityClient
extends
EntityBase
{
@Override
...
...
@@ -15,5 +17,14 @@ public class EntityClient extends EntityBase {
}
}
@Override
public
void
reset
(
String
field
)
{
if
(!
StringUtils
.
isEmpty
(
field
)){
String
resetField
=
field
.
toLowerCase
();
this
.
set
(
resetField
,
null
);
this
.
getFocusNull
().
remove
(
resetField
);
getExtensionparams
().
remove
(
resetField
+
"dirtyflag"
);
}
}
}
ibzwf-util/src/main/java/cn/ibizlab/util/domain/EntityMP.java
浏览文件 @
d0fb3e1e
package
cn
.
ibizlab
.
util
.
domain
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
org.springframework.util.StringUtils
;
public
class
EntityMP
extends
EntityBase
{
...
...
@@ -24,5 +25,14 @@ public class EntityMP extends EntityBase {
this
.
getFocusNull
().
remove
(
field
.
toLowerCase
());
}
@Override
public
void
reset
(
String
field
){
if
(!
StringUtils
.
isEmpty
(
field
)){
String
resetField
=
field
.
toLowerCase
();
this
.
set
(
resetField
,
null
);
getFocusNull
().
remove
(
resetField
);
}
}
}
ibzwf-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
d0fb3e1e
package
cn
.
ibizlab
.
util
.
job
;
import
cn.ibizlab.util.client.IBZUAAFeignClient
;
import
cn.ibizlab.util.client.IBZLiteFeignClient
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONArray
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -39,6 +40,10 @@ public class PermissionSyncJob implements ApplicationRunner {
@Lazy
private
cn
.
ibizlab
.
util
.
client
.
IBZNotifyFeignClient
notifyFeignClient
;
@Autowired
@Lazy
IBZLiteFeignClient
liteFeignClient
;
@Override
public
void
run
(
ApplicationArguments
args
)
{
try
{
...
...
@@ -60,6 +65,24 @@ public class PermissionSyncJob implements ApplicationRunner {
log
.
error
(
String
.
format
(
"向[UAA]同步系统资源失败,请检查[UAA]服务是否正常! [%s]"
,
ex
));
}
try
{
InputStream
sysModel
=
this
.
getClass
().
getResourceAsStream
(
"/sysmodel/ibzwf.json"
);
//获取当前系统所有实体资源能力
String
strSysModel
=
IOUtils
.
toString
(
sysModel
,
"UTF-8"
);
JSONObject
system
=
new
JSONObject
();
system
.
put
(
"pssystemid"
,
systemId
);
system
.
put
(
"pssystemname"
,
systemName
);
system
.
put
(
"sysstructure"
,
JSONObject
.
parseObject
(
strSysModel
));
system
.
put
(
"md5check"
,
DigestUtils
.
md5DigestAsHex
(
strSysModel
.
getBytes
()));
if
(
liteFeignClient
.
syncSysModel
(
system
)){
log
.
info
(
"向[lite]同步系统模型成功"
);
}
else
{
log
.
error
(
"向[lite]同步系统模型失败"
);
}
}
catch
(
Exception
ex
)
{
log
.
error
(
String
.
format
(
"向[lite]同步系统模型失败,请检查[lite]服务是否正常! [%s]"
,
ex
));
}
try
{
InputStream
msgTemplate
=
this
.
getClass
().
getResourceAsStream
(
"/msgtempl/systemMsgTempl.json"
);
//获取当前系统所有实体资源能力
...
...
ibzwf-util/src/main/resources/application-nacos.yml
浏览文件 @
d0fb3e1e
...
...
@@ -3,7 +3,7 @@ spring:
cloud
:
nacos
:
discovery
:
server-addr
:
1
27.0.0.
1:8848
server-addr
:
1
72.16.102.21
1:8848
enabled
:
true
eureka
:
...
...
ibzwf-util/src/main/resources/application-sys.yml
浏览文件 @
d0fb3e1e
...
...
@@ -7,7 +7,7 @@ spring:
caffeine
:
spec
:
initialCapacity=5,maximumSize=500,expireAfterWrite=3600s
redis
:
host
:
1
27.0.0.1
host
:
1
72.16.100.243
port
:
6379
password
:
database
:
0
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录