Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
fefd64a6
Commit
fefd64a6
authored
Jul 22, 2024
by
邢磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)增加日志
parent
7ec2b164
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+10
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
View file @
fefd64a6
...
...
@@ -62,7 +62,11 @@ public class DPSubServiceImpl {
JSONArray
tabs
=
result
.
getJSONArray
(
"tabs"
);
JSONObject
content
=
result
.
getJSONObject
(
"content"
);
tabs
.
stream
().
forEach
(
x
->
{
this
.
buildContent
(
content
,
(
JSONObject
)
x
,
param
);
JSONObject
tab
=
(
JSONObject
)
x
;
long
s
=
System
.
currentTimeMillis
();
this
.
buildContent
(
content
,
tab
,
param
);
long
e
=
System
.
currentTimeMillis
();
log
.
info
(
"{}tab页处理结束,共耗时:{} 毫秒"
,
tab
.
get
(
"displayName"
),
(
e
-
s
));
});
return
result
;
}
...
...
@@ -94,7 +98,10 @@ public class DPSubServiceImpl {
Object
showHideRules
=
JsonValueUtils
.
getValueByKey
(
JSONObject
.
parseObject
(
formPage
.
getContent
()),
"formConfig"
,
"formConfig.showHideRules"
);
// 处理显隐逻辑
long
s
=
System
.
currentTimeMillis
();
this
.
processShowHideRules
(
children
,
showHideRules
,
apiResult
);
long
e
=
System
.
currentTimeMillis
();
log
.
info
(
"{}tab页处理显隐逻辑,共耗时:{} 毫秒"
,
tab
.
get
(
"displayName"
),
(
e
-
s
));
List
<
Object
>
noHiddenChildren
=
children
.
stream
().
filter
(
x
->
!
"hidden"
.
equals
(
JsonValueUtils
.
getValueByKey
(
x
,
"visualParams"
,
"visualParams.behavior"
))).
collect
(
Collectors
.
toList
());
// 设置一个图片附件分组
...
...
@@ -118,6 +125,8 @@ public class DPSubServiceImpl {
this
.
buildSubFormData
(
map
,
i
,
yObj
,
apiResult
);
}
}
long
fe
=
System
.
currentTimeMillis
();
log
.
info
(
"{}tab页处理分类逻辑,共耗时:{} 毫秒"
,
tab
.
get
(
"displayName"
),
(
fe
-
e
));
if
(!
ValidationUtil
.
isEmpty
(
matinfo
.
getJSONArray
(
"datas"
)))
{
matinfo
.
put
(
"columns"
,
map
.
get
(
"columns"
));
map
.
getJSONArray
(
"subs"
).
add
(
matinfo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment