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
7ec2b164
Commit
7ec2b164
authored
Jul 22, 2024
by
邢磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)增加判断
parent
c86f0698
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+4
-2
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 @
7ec2b164
...
...
@@ -72,10 +72,12 @@ public class DPSubServiceImpl {
String
renderType
=
tab
.
getString
(
"renderType"
);
Object
resultConvert
=
JsonValueUtils
.
getValueByKey
(
tab
,
"dataConfig"
,
"dataConfig.resultConvert"
);
Object
api
=
JsonValueUtils
.
getValueByKey
(
tab
,
"dataConfig"
,
"dataConfig.api"
);
Object
columnWidth
=
JsonValueUtils
.
getValueByKey
(
tab
,
"dataConfig"
,
"dataConfig.columnWidth"
);
tab
.
put
(
"param"
,
param
);
JSONObject
map
=
content
.
getJSONObject
(
tab
.
getString
(
"key"
));
if
(
ValidationUtil
.
isEmpty
(
map
)){
map
=
new
JSONObject
();
}
Object
apiResult
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
api
))
{
...
...
@@ -124,7 +126,7 @@ public class DPSubServiceImpl {
if
(
"timeline"
.
equals
(
renderType
)){
content
.
put
(
tab
.
getString
(
"key"
),
apiResult
);
}
else
if
(
"table"
.
equals
(
renderType
)){
JSONArray
columns
=
(
JSONArray
)
JsonValueUtils
.
getValueByKey
(
tab
,
"visualParams"
,
"visualParams.columns"
);
Object
columns
=
JsonValueUtils
.
getValueByKey
(
tab
,
"visualParams"
,
"visualParams.columns"
);
map
.
put
(
"columns"
,
columns
);
map
.
put
(
"dataList"
,
apiResult
);
map
.
put
(
"showPage"
,
true
);
...
...
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