Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzwf
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzwf
提交
d033f60d
提交
d033f60d
编写于
12月 24, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-wf,统一工作流]
上级
eabd981f
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
171 行增加
和
22 行删除
+171
-22
WFGroupServiceImpl.java
...bizlab/core/workflow/service/impl/WFGroupServiceImpl.java
+34
-3
WFMemberServiceImpl.java
...izlab/core/workflow/service/impl/WFMemberServiceImpl.java
+34
-6
WFProcessDefinitionServiceImpl.java
...workflow/service/impl/WFProcessDefinitionServiceImpl.java
+34
-3
WFSystemServiceImpl.java
...izlab/core/workflow/service/impl/WFSystemServiceImpl.java
+34
-3
WFUserServiceImpl.java
...ibizlab/core/workflow/service/impl/WFUserServiceImpl.java
+34
-3
pom.xml
ibzwf-dependencies/pom.xml
+1
-4
未找到文件。
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFGroupServiceImpl.java
浏览文件 @
d033f60d
...
...
@@ -51,6 +51,9 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
workflow
.
service
.
IWFMemberService
wfmemberService
;
@Autowired
@Lazy
IWFGroupService
proxyService
;
protected
int
batchSize
=
500
;
...
...
@@ -140,21 +143,49 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
WFGroup
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFGroup
>
create
=
new
ArrayList
<>();
List
<
WFGroup
>
update
=
new
ArrayList
<>();
for
(
WFGroup
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getId
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getId
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
WFGroup
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFGroup
>
create
=
new
ArrayList
<>();
List
<
WFGroup
>
update
=
new
ArrayList
<>();
for
(
WFGroup
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getId
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getId
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFMemberServiceImpl.java
浏览文件 @
d033f60d
...
...
@@ -54,6 +54,9 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
workflow
.
service
.
IWFUserService
wfuserService
;
@Autowired
@Lazy
IWFMemberService
proxyService
;
protected
int
batchSize
=
500
;
...
...
@@ -144,7 +147,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
}
}
...
...
@@ -152,7 +155,21 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Transactional
public
boolean
saveBatch
(
Collection
<
WFMember
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFMember
>
create
=
new
ArrayList
<>();
List
<
WFMember
>
update
=
new
ArrayList
<>();
for
(
WFMember
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getMemberid
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getMemberid
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
return
true
;
}
...
...
@@ -160,7 +177,21 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Transactional
public
void
saveBatch
(
List
<
WFMember
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFMember
>
create
=
new
ArrayList
<>();
List
<
WFMember
>
update
=
new
ArrayList
<>();
for
(
WFMember
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getMemberid
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getMemberid
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
}
...
...
@@ -173,9 +204,6 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
this
.
remove
(
new
QueryWrapper
<
WFMember
>().
eq
(
"groupid"
,
id
));
}
@Autowired
@Lazy
IWFMemberService
proxyService
;
@Override
public
void
saveByGroupid
(
String
id
,
List
<
WFMember
>
list
)
{
if
(
list
==
null
)
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFProcessDefinitionServiceImpl.java
浏览文件 @
d033f60d
...
...
@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service
(
"WFProcessDefinitionServiceImpl"
)
public
class
WFProcessDefinitionServiceImpl
extends
ServiceImpl
<
WFProcessDefinitionMapper
,
WFProcessDefinition
>
implements
IWFProcessDefinitionService
{
@Autowired
@Lazy
IWFProcessDefinitionService
proxyService
;
protected
int
batchSize
=
500
;
...
...
@@ -133,21 +136,49 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
WFProcessDefinition
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFProcessDefinition
>
create
=
new
ArrayList
<>();
List
<
WFProcessDefinition
>
update
=
new
ArrayList
<>();
for
(
WFProcessDefinition
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getDefinitionkey
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getDefinitionkey
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
WFProcessDefinition
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFProcessDefinition
>
create
=
new
ArrayList
<>();
List
<
WFProcessDefinition
>
update
=
new
ArrayList
<>();
for
(
WFProcessDefinition
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getDefinitionkey
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getDefinitionkey
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFSystemServiceImpl.java
浏览文件 @
d033f60d
...
...
@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service
(
"WFSystemServiceImpl"
)
public
class
WFSystemServiceImpl
extends
ServiceImpl
<
WFSystemMapper
,
WFSystem
>
implements
IWFSystemService
{
@Autowired
@Lazy
IWFSystemService
proxyService
;
protected
int
batchSize
=
500
;
...
...
@@ -133,21 +136,49 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
WFSystem
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFSystem
>
create
=
new
ArrayList
<>();
List
<
WFSystem
>
update
=
new
ArrayList
<>();
for
(
WFSystem
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getPssystemid
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getPssystemid
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
WFSystem
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFSystem
>
create
=
new
ArrayList
<>();
List
<
WFSystem
>
update
=
new
ArrayList
<>();
for
(
WFSystem
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getPssystemid
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getPssystemid
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
}
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/workflow/service/impl/WFUserServiceImpl.java
浏览文件 @
d033f60d
...
...
@@ -51,6 +51,9 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
workflow
.
service
.
IWFMemberService
wfmemberService
;
@Autowired
@Lazy
IWFUserService
proxyService
;
protected
int
batchSize
=
500
;
...
...
@@ -136,21 +139,49 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
WFUser
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFUser
>
create
=
new
ArrayList
<>();
List
<
WFUser
>
update
=
new
ArrayList
<>();
for
(
WFUser
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getId
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getId
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
WFUser
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
List
<
WFUser
>
create
=
new
ArrayList
<>();
List
<
WFUser
>
update
=
new
ArrayList
<>();
for
(
WFUser
et
:
list
)
{
if
(
ObjectUtils
.
isEmpty
(
et
.
getId
())
||
ObjectUtils
.
isEmpty
(
getById
(
et
.
getId
())))
{
create
.
add
(
et
);
}
else
{
update
.
add
(
et
);
}
}
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
}
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
}
}
...
...
ibzwf-dependencies/pom.xml
浏览文件 @
d033f60d
...
...
@@ -31,9 +31,6 @@
<mybatis-plus.version>
3.3.1
</mybatis-plus.version>
<mybatis-plus-dynamic-datasource.version>
3.0.0
</mybatis-plus-dynamic-datasource.version>
<!-- Liquibase -->
<liquibase.version>
3.6.3
</liquibase.version>
<!-- Swagger2 -->
<springfox-swagger.version>
2.9.2
</springfox-swagger.version>
...
...
@@ -60,7 +57,7 @@
<jsonwebtoken-jjwt.version>
0.9.1
</jsonwebtoken-jjwt.version>
<!--Liquibase数据库版本更新工具-->
<liquibase.version>
3.
8.7
</liquibase.version>
<liquibase.version>
3.
9.0
</liquibase.version>
<!--H2内存数据库-->
<h2.version>
1.4.200
</h2.version>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录