Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzwf
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzwf
提交
a960dd14
提交
a960dd14
编写于
5月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
1eb00bed
变更
18
显示空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
119 行增加
和
41 行删除
+119
-41
entity-service.ts
app_web/src/service/entity-service.ts
+93
-25
wfgroup-service-base.ts
app_web/src/service/wfgroup/wfgroup-service-base.ts
+2
-0
wfmember-service-base.ts
app_web/src/service/wfmember/wfmember-service-base.ts
+2
-0
wfprocess-definition-service-base.ts
...wfprocess-definition/wfprocess-definition-service-base.ts
+2
-0
wfsystem-service-base.ts
app_web/src/service/wfsystem/wfsystem-service-base.ts
+2
-0
wfuser-service-base.ts
app_web/src/service/wfuser/wfuser-service-base.ts
+2
-0
config.xml
config.xml
+5
-5
Dockerfile
ibzwf-app/ibzwf-app-web/src/main/docker/Dockerfile
+1
-1
ibzwf-app-web.yaml
ibzwf-app/ibzwf-app-web/src/main/docker/ibzwf-app-web.yaml
+1
-1
application-web-dev.yml
.../ibzwf-app-web/src/main/resources/application-web-dev.yml
+1
-1
application-web-prod.yml
...ibzwf-app-web/src/main/resources/application-web-prod.yml
+1
-1
application-dev.yml
ibzwf-boot/src/main/resources/application-dev.yml
+1
-1
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
+1
-1
application-api-dev.yml
...f-provider-api/src/main/resources/application-api-dev.yml
+1
-1
application-api-prod.yml
...-provider-api/src/main/resources/application-api-prod.yml
+1
-1
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+1
-1
SimpleUserService.java
.../main/java/cn/ibizlab/util/service/SimpleUserService.java
+1
-1
未找到文件。
app_web/src/service/entity-service.ts
浏览文件 @
a960dd14
...
@@ -33,47 +33,65 @@ export default class EntityService {
...
@@ -33,47 +33,65 @@ export default class EntityService {
/**
/**
* 零时储存,localStorage指向
* 零时储存,localStorage指向
*
*
* @p
rotected
* @p
ublic
* @type {(string)}
* @type {(string)}
* @memberof EntityService
* @memberof EntityService
*/
*/
p
rotected
tempStorage
:
any
;
p
ublic
tempStorage
:
any
;
/**
/**
* 当前DE标识
* 当前DE标识
*
*
* @p
rotected
* @p
ublic
* @type {(string)}
* @type {(string)}
* @memberof EntityService
* @memberof EntityService
*/
*/
p
rotected
APPDEKEY
:
string
=
''
;
p
ublic
APPDEKEY
:
string
=
''
;
/**
/**
* 当前APPDE标识
* 当前APPDE标识
*
*
* @p
rotected
* @p
ublic
* @type {(string)}
* @type {(string)}
* @memberof EntityService
* @memberof EntityService
*/
*/
p
rotected
APPLYDEKEY
:
string
=
''
;
p
ublic
APPLYDEKEY
:
string
=
''
;
/**
/**
* 当前NAME
* 当前NAME
*
*
* @p
rotected
* @p
ublic
* @type {(string)}
* @type {(string)}
* @memberof EntityService
* @memberof EntityService
*/
*/
p
rotected
APPDENAME
:
string
=
''
;
p
ublic
APPDENAME
:
string
=
''
;
/**
/**
* 当前主信息名
* 当前主信息名
*
*
* @protected
* @public
* @type {(string)}
* @memberof EntityService
*/
public
APPDETEXT
:
string
=
''
;
/**
* 当前系统名
*
* @public
* @type {(string)}
* @memberof EntityService
*/
public
SYSTEMNAME
:
string
=
''
;
/**
* 当前应用名
*
* @public
* @type {(string)}
* @type {(string)}
* @memberof EntityService
* @memberof EntityService
*/
*/
p
rotected
APPDETEXT
:
string
=
''
;
p
ublic
APPNAME
:
string
=
''
;
/**
/**
* Creates an instance of EntityService.
* Creates an instance of EntityService.
...
@@ -610,14 +628,19 @@ export default class EntityService {
...
@@ -610,14 +628,19 @@ export default class EntityService {
* @param {*} [context={}]
* @param {*} [context={}]
* @param {*} [data={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {boolean} [isloading]
* @param {boolean} [isEmbeddedApp]
* @returns {Promise<any>}
* @returns {Promise<any>}
* @memberof EntityService
* @memberof EntityService
*/
*/
public
async
WFStart
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
WFStart
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
isEmbeddedApp
?:
boolean
):
Promise
<
any
>
{
if
(
isEmbeddedApp
){
return
Http
.
getInstance
().
post
(
`/wfcore/
${
this
.
SYSTEMNAME
}
-app-
${
this
.
APPNAME
}
/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/process-instances`
,
data
,
isloading
);
}
else
{
const
requestData
:
any
=
{};
const
requestData
:
any
=
{};
Object
.
assign
(
requestData
,{
wfdata
:
data
});
Object
.
assign
(
requestData
,{
wfdata
:
data
});
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/wfstart`
,
requestData
,
isloading
);
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/wfstart`
,
requestData
,
isloading
);
}
}
}
/**
/**
...
@@ -699,16 +722,60 @@ export default class EntityService {
...
@@ -699,16 +722,60 @@ export default class EntityService {
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/wfreassign`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/wfreassign`
,
data
,
isloading
);
}
}
/**
* WFGetWorkFlow接口方法(获取工作流定义)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public
async
WFGetWorkFlow
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
get
(
`/wfcore/
${
this
.
SYSTEMNAME
}
-app-
${
this
.
APPNAME
}
/
${
this
.
APPDENAME
}
/process-definitions`
);
}
/**
* WFGetWFStep接口方法(根据系统实体查找当前适配的工作流模型步骤)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public
async
WFGetWFStep
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
get
(
`/wfcore/
${
this
.
SYSTEMNAME
}
-app-
${
this
.
APPNAME
}
/
${
this
.
APPDENAME
}
/process-definitions-nodes`
);
}
/**
* GetWFLink接口方法(根据业务主键和当前步骤获取操作路径)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public
async
GetWFLink
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
get
(
`/wfcore/
${
this
.
SYSTEMNAME
}
-app-
${
this
.
APPNAME
}
/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/usertasks/
${
data
[
'taskDefinitionKey'
]}
/ways`
);
}
/**
/**
* WFSubmit接口方法
* WFSubmit接口方法
*
*
* @param {*} [context={}]
* @param {*} [context={}]
* @param {*} [data={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {boolean} [isloading]
* @param {boolean} [isEmbeddedApp]
* @returns {Promise<any>}
* @returns {Promise<any>}
* @memberof EntityService
* @memberof EntityService
*/
*/
public
async
WFSubmit
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
WFSubmit
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
isEmbeddedApp
?:
boolean
):
Promise
<
any
>
{
if
(
isEmbeddedApp
){
return
Http
.
getInstance
().
post
(
`/wfcore/
${
this
.
SYSTEMNAME
}
-app-
${
this
.
APPNAME
}
/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/tasks/
${
data
[
'taskId'
]}
`
);
}
else
{
const
requestData
:
any
=
{};
const
requestData
:
any
=
{};
if
(
data
.
srfwfmemo
){
if
(
data
.
srfwfmemo
){
requestData
.
srfwfmemo
=
JSON
.
parse
(
JSON
.
stringify
(
data
)).
srfwfmemo
;
requestData
.
srfwfmemo
=
JSON
.
parse
(
JSON
.
stringify
(
data
)).
srfwfmemo
;
...
@@ -721,6 +788,7 @@ export default class EntityService {
...
@@ -721,6 +788,7 @@ export default class EntityService {
Object
.
assign
(
requestData
,{
opdata
:{
srfwfiatag
:
context
.
srfwfiatag
,
srfwfstep
:
context
.
srfwfstep
}});
Object
.
assign
(
requestData
,{
opdata
:{
srfwfiatag
:
context
.
srfwfiatag
,
srfwfstep
:
context
.
srfwfstep
}});
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/wfsubmit`
,
requestData
,
isloading
);
return
Http
.
getInstance
().
post
(
`/
${
this
.
APPDENAME
}
/
${
data
[
this
.
APPDEKEY
]}
/wfsubmit`
,
requestData
,
isloading
);
}
}
}
/**
/**
* WFGetProxyData接口方法
* WFGetProxyData接口方法
...
...
app_web/src/service/wfgroup/wfgroup-service-base.ts
浏览文件 @
a960dd14
...
@@ -32,6 +32,8 @@ export default class WFGroupServiceBase extends EntityService {
...
@@ -32,6 +32,8 @@ export default class WFGroupServiceBase extends EntityService {
this
.
APPDEKEY
=
'id'
;
this
.
APPDEKEY
=
'id'
;
this
.
APPDENAME
=
'wfgroups'
;
this
.
APPDENAME
=
'wfgroups'
;
this
.
APPDETEXT
=
'name'
;
this
.
APPDETEXT
=
'name'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'ibzwf'
;
}
}
// 实体接口
// 实体接口
...
...
app_web/src/service/wfmember/wfmember-service-base.ts
浏览文件 @
a960dd14
...
@@ -32,6 +32,8 @@ export default class WFMemberServiceBase extends EntityService {
...
@@ -32,6 +32,8 @@ export default class WFMemberServiceBase extends EntityService {
this
.
APPDEKEY
=
'memberid'
;
this
.
APPDEKEY
=
'memberid'
;
this
.
APPDENAME
=
'wfmembers'
;
this
.
APPDENAME
=
'wfmembers'
;
this
.
APPDETEXT
=
'membername'
;
this
.
APPDETEXT
=
'membername'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'ibzwf'
;
}
}
// 实体接口
// 实体接口
...
...
app_web/src/service/wfprocess-definition/wfprocess-definition-service-base.ts
浏览文件 @
a960dd14
...
@@ -32,6 +32,8 @@ export default class WFProcessDefinitionServiceBase extends EntityService {
...
@@ -32,6 +32,8 @@ export default class WFProcessDefinitionServiceBase extends EntityService {
this
.
APPDEKEY
=
'definitionkey'
;
this
.
APPDEKEY
=
'definitionkey'
;
this
.
APPDENAME
=
'wfprocessdefinitions'
;
this
.
APPDENAME
=
'wfprocessdefinitions'
;
this
.
APPDETEXT
=
'definitionname'
;
this
.
APPDETEXT
=
'definitionname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'ibzwf'
;
}
}
// 实体接口
// 实体接口
...
...
app_web/src/service/wfsystem/wfsystem-service-base.ts
浏览文件 @
a960dd14
...
@@ -32,6 +32,8 @@ export default class WFSystemServiceBase extends EntityService {
...
@@ -32,6 +32,8 @@ export default class WFSystemServiceBase extends EntityService {
this
.
APPDEKEY
=
'pssystemid'
;
this
.
APPDEKEY
=
'pssystemid'
;
this
.
APPDENAME
=
'wfsystems'
;
this
.
APPDENAME
=
'wfsystems'
;
this
.
APPDETEXT
=
'pssystemname'
;
this
.
APPDETEXT
=
'pssystemname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'ibzwf'
;
}
}
// 实体接口
// 实体接口
...
...
app_web/src/service/wfuser/wfuser-service-base.ts
浏览文件 @
a960dd14
...
@@ -32,6 +32,8 @@ export default class WFUserServiceBase extends EntityService {
...
@@ -32,6 +32,8 @@ export default class WFUserServiceBase extends EntityService {
this
.
APPDEKEY
=
'id'
;
this
.
APPDEKEY
=
'id'
;
this
.
APPDENAME
=
'wfusers'
;
this
.
APPDENAME
=
'wfusers'
;
this
.
APPDETEXT
=
'displayname'
;
this
.
APPDETEXT
=
'displayname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'ibzwf'
;
}
}
// 实体接口
// 实体接口
...
...
config.xml
浏览文件 @
a960dd14
...
@@ -38,11 +38,11 @@
...
@@ -38,11 +38,11 @@
git clone -b master $para2 ibzwf/
git clone -b master $para2 ibzwf/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzwf/
cd ibzwf/
mvn clean package -P
api
mvn clean package -P
web
cd ibzwf-
provider/ibzwf-provider-api
cd ibzwf-
app/ibzwf-app-web
mvn -P
api
docker:build
mvn -P
web
docker:build
mvn -P
api
docker:push
mvn -P
web
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzwf-
provider-api.yaml dev --with-registry-auth
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzwf-
app-web.yaml dev --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzwf-app/ibzwf-app-web/src/main/docker/Dockerfile
浏览文件 @
a960dd14
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-app-web.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-app-web.jar
EXPOSE
8080
EXPOSE
30003
ADD
ibzwf-app-web.jar /ibzwf-app-web.jar
ADD
ibzwf-app-web.jar /ibzwf-app-web.jar
ibzwf-app/ibzwf-app-web/src/main/docker/ibzwf-app-web.yaml
浏览文件 @
a960dd14
...
@@ -3,7 +3,7 @@ services:
...
@@ -3,7 +3,7 @@ services:
ibzwf-app-web
:
ibzwf-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-app-web:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-app-web:latest
ports
:
ports
:
-
"
8080:8080
"
-
"
30003:30003
"
networks
:
networks
:
-
agent_network
-
agent_network
deploy
:
deploy
:
...
...
ibzwf-app/ibzwf-app-web/src/main/resources/application-web-dev.yml
浏览文件 @
a960dd14
server
:
server
:
port
:
8080
port
:
30003
\ No newline at end of file
\ No newline at end of file
ibzwf-app/ibzwf-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
a960dd14
server
:
server
:
port
:
8080
port
:
30003
#zuul网关路由设置
#zuul网关路由设置
zuul
:
zuul
:
...
...
ibzwf-boot/src/main/resources/application-dev.yml
浏览文件 @
a960dd14
server
:
server
:
port
:
40003
port
:
8080
ibzwf-provider/ibzwf-provider-api/src/main/docker/Dockerfile
浏览文件 @
a960dd14
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar
EXPOSE
40003
EXPOSE
8081
ADD
ibzwf-provider-api.jar /ibzwf-provider-api.jar
ADD
ibzwf-provider-api.jar /ibzwf-provider-api.jar
ibzwf-provider/ibzwf-provider-api/src/main/docker/ibzwf-provider-api.yaml
浏览文件 @
a960dd14
...
@@ -3,7 +3,7 @@ services:
...
@@ -3,7 +3,7 @@ services:
ibzwf-provider-api
:
ibzwf-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest
ports
:
ports
:
-
"
40003:40003
"
-
"
8081:8081
"
networks
:
networks
:
-
agent_network
-
agent_network
deploy
:
deploy
:
...
...
ibzwf-provider/ibzwf-provider-api/src/main/resources/application-api-dev.yml
浏览文件 @
a960dd14
server
:
server
:
port
:
40003
port
:
8081
\ No newline at end of file
\ No newline at end of file
ibzwf-provider/ibzwf-provider-api/src/main/resources/application-api-prod.yml
浏览文件 @
a960dd14
server
:
server
:
port
:
40003
port
:
8081
ibzwf-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
a960dd14
...
@@ -32,7 +32,7 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -32,7 +32,7 @@ public class PermissionSyncJob implements ApplicationRunner {
@Value
(
"${ibiz.enablePermissionValid:false}"
)
@Value
(
"${ibiz.enablePermissionValid:false}"
)
boolean
enablePermissionValid
;
//是否开启权限校验
boolean
enablePermissionValid
;
//是否开启权限校验
@Value
(
"${ibiz.systemid:
2C40DFCD-0DF5-47BF-91A5-C45F810B0001
}"
)
@Value
(
"${ibiz.systemid:
0A91C1B1-3B67-4EDA-9572-5DB491871FEE
}"
)
private
String
systemId
;
private
String
systemId
;
@Override
@Override
...
...
ibzwf-util/src/main/java/cn/ibizlab/util/service/SimpleUserService.java
浏览文件 @
a960dd14
...
@@ -22,7 +22,7 @@ public class SimpleUserService implements AuthenticationUserService{
...
@@ -22,7 +22,7 @@ public class SimpleUserService implements AuthenticationUserService{
@Value
(
"${ibiz.enablePermissionValid:false}"
)
@Value
(
"${ibiz.enablePermissionValid:false}"
)
boolean
enablePermissionValid
;
//是否开启权限校验
boolean
enablePermissionValid
;
//是否开启权限校验
@Value
(
"${ibiz.systemid:
2C40DFCD-0DF5-47BF-91A5-C45F810B0001
}"
)
@Value
(
"${ibiz.systemid:
0A91C1B1-3B67-4EDA-9572-5DB491871FEE
}"
)
private
String
systemid
;
private
String
systemid
;
@Autowired
@Autowired
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录