Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
80e35038
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
80e35038
编写于
11月 05, 2020
作者:
Z
zhourui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
route field
上级
d6dc33d9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
29 deletion
+4
-29
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/work/V2GetWorkOrWorkCompleted.java
...assemble/surface/jaxrs/work/V2GetWorkOrWorkCompleted.java
+4
-29
未找到文件。
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/work/V2GetWorkOrWorkCompleted.java
浏览文件 @
80e35038
...
...
@@ -126,7 +126,6 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
data
(
Business
business
,
Work
work
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
List
<
Item
>
list
=
business
.
entityManagerContainer
().
listEqualAndEqual
(
Item
.
class
,
DataItem
.
bundle_FIELDNAME
,
work
.
getJob
(),
DataItem
.
itemCategory_FIELDNAME
,
ItemCategory
.
pp
);
if
(!
list
.
isEmpty
())
{
...
...
@@ -136,8 +135,6 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
wo
.
setData
(
gson
.
fromJson
(
jsonElement
,
Data
.
class
));
}
}
// System.out.println("!!!!!!!!!!!!!!!!data:" + ((new Date()).getTime() -
// s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -177,7 +174,6 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
activity
(
Business
business
,
Work
work
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
Activity
activity
=
business
.
getActivity
(
work
);
if
(
null
!=
activity
)
{
WoActivity
woActivity
=
new
WoActivity
();
...
...
@@ -196,13 +192,10 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
task
(
EffectivePerson
effectivePerson
,
Business
business
,
Work
work
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
wo
.
setTaskList
(
WoTask
.
copier
.
copy
(
business
.
entityManagerContainer
().
listEqual
(
Task
.
class
,
Task
.
work_FIELDNAME
,
work
.
getId
())));
wo
.
setCurrentTaskIndex
(
ListUtils
.
indexOf
(
wo
.
getTaskList
(),
e
->
effectivePerson
.
isPerson
(
e
.
getPerson
())));
// System.out.println("!!!!!!!!!!!!!!!!task:" + ((new Date()).getTime() -
// s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -212,7 +205,6 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
attachment
(
EffectivePerson
effectivePerson
,
Business
business
,
String
job
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
List
<
String
>
identities
=
business
.
organization
().
identity
().
listWithPerson
(
effectivePerson
);
List
<
String
>
units
=
business
.
organization
().
unit
().
listWithPerson
(
effectivePerson
);
List
<
WoAttachment
>
wos
=
new
ArrayList
<>();
...
...
@@ -236,8 +228,6 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
Comparator
.
nullsLast
(
Date:
:
compareTo
))))
.
collect
(
Collectors
.
toList
());
wo
.
setAttachmentList
(
wos
);
// System.out.println("!!!!!!!!!!!!!!!!attachment:" + ((new Date()).getTime() -
// s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -247,13 +237,10 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
read
(
EffectivePerson
effectivePerson
,
Business
business
,
String
job
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
wo
.
setReadList
(
WoRead
.
copier
.
copy
(
business
.
entityManagerContainer
().
listEqual
(
Read
.
class
,
Read
.
job_FIELDNAME
,
job
)));
wo
.
setCurrentReadIndex
(
ListUtils
.
indexOf
(
wo
.
getReadList
(),
e
->
effectivePerson
.
isPerson
(
e
.
getPerson
())));
// System.out.println("!!!!!!!!!!!!!!!!read:" + ((new Date()).getTime() -
// s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -263,10 +250,7 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
workJson
(
Work
work
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
wo
.
setWork
(
gson
.
toJsonTree
(
WoWork
.
copier
.
copy
(
work
)));
// System.out.println("!!!!!!!!!!!!!!!!workJson:" + ((new Date()).getTime() -
// s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -276,10 +260,7 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
creatorIdentity
(
Business
business
,
String
creatorIdentity
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
wo
.
setCreatorIdentity
(
business
.
organization
().
identity
().
getObject
(
creatorIdentity
));
// System.out.println("!!!!!!!!!!!!!!!!creatorIdentity:" + ((new
// Date()).getTime() - s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -289,10 +270,7 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
creatorPerson
(
Business
business
,
String
creatorPerson
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
wo
.
setCreatorPerson
(
business
.
organization
().
person
().
getObject
(
creatorPerson
));
// System.out.println("!!!!!!!!!!!!!!!!creatorPerson:" + ((new Date()).getTime()
// - s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -302,10 +280,7 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
CompletableFuture
<
Void
>
creatorUnit
(
Business
business
,
String
creatorUnit
,
Wo
wo
)
{
return
CompletableFuture
.
runAsync
(()
->
{
try
{
// Date s = new Date();
wo
.
setCreatorUnit
(
business
.
organization
().
unit
().
getObject
(
creatorUnit
));
// System.out.println("!!!!!!!!!!!!!!!!creatorUnit:" + ((new Date()).getTime() -
// s.getTime()));
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
...
...
@@ -695,10 +670,10 @@ class V2GetWorkOrWorkCompleted extends BaseAction {
private
static
final
long
serialVersionUID
=
556378904185283486L
;
static
WrapCopier
<
Route
,
WoRoute
>
copier
=
WrapCopierFactory
.
wo
(
Route
.
class
,
WoRoute
.
class
,
ListTools
.
toList
(
JpaObject
.
id_FIELDNAME
,
Route
.
name_FIELDNAME
,
Route
.
descrip
tion_FIELDNAME
,
Route
.
alias_FIELDNAME
)
,
null
);
static
WrapCopier
<
Route
,
WoRoute
>
copier
=
WrapCopierFactory
.
wo
(
Route
.
class
,
WoRoute
.
class
,
null
,
ListTools
.
toList
(
Route
.
createTime_FIELDNAME
,
Route
.
edition_FIELDNAME
,
Route
.
posi
tion_FIELDNAME
,
Route
.
process_FIELDNAME
,
Route
.
updateTime_FIELDNAME
,
Route
.
track_FIELDNAME
,
Route
.
properties_FIELDNAME
)
);
}
public
static
class
WoAttachment
extends
Attachment
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录