Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
fb02511b
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
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,发现更多精彩内容 >>
提交
fb02511b
编写于
1月 08, 2021
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设计搜索内存优化,减少对象创建,减少数据输出
上级
c51727e4
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
158 addition
and
122 deletion
+158
-122
o2server/x_base_core_project/src/main/java/com/x/base/core/project/jaxrs/WrapDesigner.java
...main/java/com/x/base/core/project/jaxrs/WrapDesigner.java
+8
-3
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/designer/ActionSearch.java
...m/x/cms/assemble/control/jaxrs/designer/ActionSearch.java
+4
-2
o2server/x_portal_assemble_designer/src/main/java/com/x/portal/assemble/designer/jaxrs/designer/ActionSearch.java
...portal/assemble/designer/jaxrs/designer/ActionSearch.java
+6
-3
o2server/x_processplatform_assemble_designer/src/main/java/com/x/processplatform/assemble/designer/jaxrs/designer/ActionSearch.java
...atform/assemble/designer/jaxrs/designer/ActionSearch.java
+127
-106
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/designer/ActionSearch.java
...ava/com/x/program/center/jaxrs/designer/ActionSearch.java
+2
-0
o2server/x_query_assemble_designer/src/main/java/com/x/query/assemble/designer/jaxrs/designer/ActionSearch.java
.../query/assemble/designer/jaxrs/designer/ActionSearch.java
+7
-4
o2server/x_query_service_processing/src/main/java/com/x/query/service/processing/jaxrs/design/ActionSearch.java
...x/query/service/processing/jaxrs/design/ActionSearch.java
+4
-4
未找到文件。
o2server/x_base_core_project/src/main/java/com/x/base/core/project/jaxrs/WrapDesigner.java
浏览文件 @
fb02511b
...
...
@@ -86,7 +86,6 @@ public class WrapDesigner extends GsonPropertyObject {
public
void
setPatternList
(
Map
<
String
,
String
>
map
)
{
if
(
map
!=
null
&&
!
map
.
isEmpty
()){
List
<
DesignerPattern
>
patternList
=
new
ArrayList
<>();
for
(
String
key
:
map
.
keySet
()){
DesignerPattern
pattern
=
new
DesignerPattern
();
pattern
.
setProperty
(
key
);
...
...
@@ -97,9 +96,10 @@ public class WrapDesigner extends GsonPropertyObject {
}
}
pattern
.
setPropertyValue
(
propertyValue
);
patternList
.
add
(
pattern
);
this
.
patternList
.
add
(
pattern
);
}
this
.
patternList
=
patternList
;
map
.
clear
();
map
=
null
;
}
}
...
...
@@ -118,6 +118,8 @@ public class WrapDesigner extends GsonPropertyObject {
pattern
.
setPropertyValue
(
propertyValue
);
this
.
patternList
.
add
(
pattern
);
}
map
.
clear
();
map
=
null
;
}
}
...
...
@@ -138,6 +140,8 @@ public class WrapDesigner extends GsonPropertyObject {
pattern
.
setPropertyValue
(
propertyValue
);
this
.
patternList
.
add
(
pattern
);
}
map
.
clear
();
map
=
null
;
}
}
...
...
@@ -190,6 +194,7 @@ public class WrapDesigner extends GsonPropertyObject {
}
this
.
lines
=
lines
;
map
.
clear
();
map
=
null
;
}
}
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/designer/ActionSearch.java
浏览文件 @
fb02511b
...
...
@@ -88,7 +88,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
AppInfo
appInfo
=
emc
.
f
ind
(
woScript
.
getAppId
(),
AppInfo
.
class
);
AppInfo
appInfo
=
emc
.
f
etch
(
woScript
.
getAppId
(),
AppInfo
.
class
,
ListTools
.
toList
(
AppInfo
.
id_FIELDNAME
,
AppInfo
.
appName_FIELDNAME
)
);
if
(
appInfo
!=
null
){
wo
.
setAppId
(
appInfo
.
getId
());
wo
.
setAppName
(
appInfo
.
getAppName
());
...
...
@@ -102,6 +102,7 @@ class ActionSearch extends BaseAction {
}
}
woScripts
.
clear
();
woScripts
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
@@ -126,7 +127,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
AppInfo
appInfo
=
emc
.
f
ind
(
woForm
.
getAppId
(),
AppInfo
.
class
);
AppInfo
appInfo
=
emc
.
f
etch
(
woForm
.
getAppId
(),
AppInfo
.
class
,
ListTools
.
toList
(
AppInfo
.
id_FIELDNAME
,
AppInfo
.
appName_FIELDNAME
)
);
if
(
appInfo
!=
null
){
wo
.
setAppId
(
appInfo
.
getId
());
wo
.
setAppName
(
appInfo
.
getAppName
());
...
...
@@ -140,6 +141,7 @@ class ActionSearch extends BaseAction {
}
}
woForms
.
clear
();
woForms
=
null
;
}
}
catch
(
Exception
e
){
...
...
o2server/x_portal_assemble_designer/src/main/java/com/x/portal/assemble/designer/jaxrs/designer/ActionSearch.java
浏览文件 @
fb02511b
...
...
@@ -91,7 +91,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Portal
portal
=
emc
.
f
ind
(
woScript
.
getPortal
(),
Portal
.
class
);
Portal
portal
=
emc
.
f
etch
(
woScript
.
getPortal
(),
Portal
.
class
,
ListTools
.
toList
(
Portal
.
id_FIELDNAME
,
Portal
.
name_FIELDNAME
)
);
if
(
portal
!=
null
){
wo
.
setAppId
(
portal
.
getId
());
wo
.
setAppName
(
portal
.
getName
());
...
...
@@ -105,6 +105,7 @@ class ActionSearch extends BaseAction {
}
}
woScripts
.
clear
();
woScripts
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
@@ -129,7 +130,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Portal
portal
=
emc
.
f
ind
(
wopage
.
getPortal
(),
Portal
.
class
);
Portal
portal
=
emc
.
f
etch
(
wopage
.
getPortal
(),
Portal
.
class
,
ListTools
.
toList
(
Portal
.
id_FIELDNAME
,
Portal
.
name_FIELDNAME
)
);
if
(
portal
!=
null
){
wo
.
setAppId
(
portal
.
getId
());
wo
.
setAppName
(
portal
.
getName
());
...
...
@@ -143,6 +144,7 @@ class ActionSearch extends BaseAction {
}
}
wos
.
clear
();
wos
=
null
;
}
}
catch
(
Exception
e
){
...
...
@@ -169,7 +171,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Portal
portal
=
emc
.
f
ind
(
woWidget
.
getPortal
(),
Portal
.
class
);
Portal
portal
=
emc
.
f
etch
(
woWidget
.
getPortal
(),
Portal
.
class
,
ListTools
.
toList
(
Portal
.
id_FIELDNAME
,
Portal
.
name_FIELDNAME
)
);
if
(
portal
!=
null
){
wo
.
setAppId
(
portal
.
getId
());
wo
.
setAppName
(
portal
.
getName
());
...
...
@@ -183,6 +185,7 @@ class ActionSearch extends BaseAction {
}
}
wos
.
clear
();
wos
=
null
;
}
}
catch
(
Exception
e
){
...
...
o2server/x_processplatform_assemble_designer/src/main/java/com/x/processplatform/assemble/designer/jaxrs/designer/ActionSearch.java
浏览文件 @
fb02511b
此差异已折叠。
点击以展开。
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/designer/ActionSearch.java
浏览文件 @
fb02511b
...
...
@@ -93,6 +93,7 @@ class ActionSearch extends BaseAction {
}
}
woAgents
.
clear
();
woAgents
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
@@ -127,6 +128,7 @@ class ActionSearch extends BaseAction {
}
}
woInvokes
.
clear
();
woInvokes
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
o2server/x_query_assemble_designer/src/main/java/com/x/query/assemble/designer/jaxrs/designer/ActionSearch.java
浏览文件 @
fb02511b
...
...
@@ -96,7 +96,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Query
query
=
emc
.
f
ind
(
woView
.
getQuery
(),
Query
.
class
);
Query
query
=
emc
.
f
etch
(
woView
.
getQuery
(),
Query
.
class
,
ListTools
.
toList
(
Query
.
id_FIELDNAME
,
Query
.
name_FIELDNAME
)
);
if
(
query
!=
null
)
{
wo
.
setAppId
(
query
.
getId
());
wo
.
setAppName
(
query
.
getName
());
...
...
@@ -135,7 +135,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Query
query
=
emc
.
f
ind
(
woTable
.
getQuery
(),
Query
.
class
);
Query
query
=
emc
.
f
etch
(
woTable
.
getQuery
(),
Query
.
class
,
ListTools
.
toList
(
Query
.
id_FIELDNAME
,
Query
.
name_FIELDNAME
)
);
if
(
query
!=
null
)
{
wo
.
setAppId
(
query
.
getId
());
wo
.
setAppName
(
query
.
getName
());
...
...
@@ -149,6 +149,7 @@ class ActionSearch extends BaseAction {
}
}
woTables
.
clear
();
woTables
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
@@ -174,7 +175,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Query
query
=
emc
.
f
ind
(
woStat
.
getQuery
(),
Query
.
class
);
Query
query
=
emc
.
f
etch
(
woStat
.
getQuery
(),
Query
.
class
,
ListTools
.
toList
(
Query
.
id_FIELDNAME
,
Query
.
name_FIELDNAME
)
);
if
(
query
!=
null
)
{
wo
.
setAppId
(
query
.
getId
());
wo
.
setAppName
(
query
.
getName
());
...
...
@@ -188,6 +189,7 @@ class ActionSearch extends BaseAction {
}
}
woStats
.
clear
();
woStats
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
@@ -213,7 +215,7 @@ class ActionSearch extends BaseAction {
wi
.
getCaseSensitive
(),
wi
.
getMatchWholeWord
(),
wi
.
getMatchRegExp
());
if
(!
map
.
isEmpty
())
{
Wo
wo
=
new
Wo
();
Query
query
=
emc
.
f
ind
(
woStatement
.
getQuery
(),
Query
.
class
);
Query
query
=
emc
.
f
etch
(
woStatement
.
getQuery
(),
Query
.
class
,
ListTools
.
toList
(
Query
.
id_FIELDNAME
,
Query
.
name_FIELDNAME
)
);
if
(
query
!=
null
)
{
wo
.
setAppId
(
query
.
getId
());
wo
.
setAppName
(
query
.
getName
());
...
...
@@ -227,6 +229,7 @@ class ActionSearch extends BaseAction {
}
}
woStatements
.
clear
();
woStatements
=
null
;
}
catch
(
Exception
e
){
logger
.
error
(
e
);
}
...
...
o2server/x_query_service_processing/src/main/java/com/x/query/service/processing/jaxrs/design/ActionSearch.java
浏览文件 @
fb02511b
...
...
@@ -33,8 +33,8 @@ class ActionSearch extends BaseAction {
if
(
StringUtils
.
isBlank
(
wi
.
getKeyword
())){
throw
new
ExceptionFieldEmpty
(
"keyword"
);
}
logger
.
info
(
"{}搜索
全局设计:{}"
,
effectivePerson
.
getDistinguishedName
(),
wi
);
if
(
ListTools
.
isEmpty
(
wi
.
getModuleList
()))
{
logger
.
info
(
"{}搜索
设计:{}的关键字:{}"
,
effectivePerson
.
getDistinguishedName
(),
wi
.
getModuleList
(),
wi
.
getKeyword
()
);
if
(
ListTools
.
is
Not
Empty
(
wi
.
getModuleList
()))
{
result
.
setData
(
search
(
wi
));
}
else
{
lock
.
lock
();
...
...
@@ -112,7 +112,7 @@ class ActionSearch extends BaseAction {
private
CompletableFuture
<
List
<
WrapDesigner
>>
searchAsync
(
final
Wi
wi
,
final
Map
<
String
,
List
<
WiDesigner
.
ModuleApp
>>
moduleMap
,
final
String
moduleType
,
final
Class
<?>
applicationClass
,
Executor
executor
){
CompletableFuture
<
List
<
WrapDesigner
>>
cf
=
CompletableFuture
.
supplyAsync
(()
->
{
List
<
WrapDesigner
>
swList
=
n
ew
ArrayList
<>()
;
List
<
WrapDesigner
>
swList
=
n
ull
;
if
(
moduleMap
.
containsKey
(
moduleType
))
{
try
{
WiDesigner
wiDesigner
=
new
WiDesigner
();
...
...
@@ -126,7 +126,7 @@ class ActionSearch extends BaseAction {
}
catch
(
Exception
e
)
{
logger
.
error
(
e
);
}
if
(
swList
.
size
()
>
2
)
{
if
(
swList
!=
null
&&
swList
.
size
()
>
2
)
{
try
{
SortTools
.
desc
(
swList
,
"designerType"
,
"appId"
);
}
catch
(
Exception
e
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录