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
c692702c
Commit
c692702c
authored
Jul 19, 2024
by
邢磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)多选框解析
parent
8e500e46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+6
-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 @
c692702c
...
...
@@ -361,7 +361,12 @@ public class DPSubServiceImpl {
}
}
else
if
(
"checkbox"
.
equals
(
xObj
.
getString
(
"componentKey"
)))
{
jsonObject
.
put
(
"type"
,
"text"
);
if
(!
ValidationUtil
.
isEmpty
(
value
))
{
ResponseModel
checkboxResult
=
this
.
getApiResult
(
visualParams
.
getJSONObject
(
"api"
),
null
);
if
(!
ValidationUtil
.
isEmpty
(
checkboxResult
)
&&
checkboxResult
.
getStatus
()
==
200
&&
!
ValidationUtil
.
isEmpty
(
value
))
{
List
<
Object
>
collect
=
((
JSONArray
)
checkboxResult
.
getResult
()).
stream
().
filter
(
y
->
((
JSONArray
)
value
).
contains
(
JsonValueUtils
.
getValueByKey
(
y
,
"valueKey"
,
"valueKey"
))).
collect
(
Collectors
.
toList
());
String
nameKey
=
collect
.
stream
().
map
(
item
->
((
JSONObject
)
item
).
getString
(
"nameKey"
)).
collect
(
Collectors
.
joining
(
"、"
));
jsonObject
.
put
(
"value"
,
nameKey
);
}
else
{
jsonObject
.
put
(
"value"
,
value
);
}
}
else
if
(
"select"
.
equals
(
xObj
.
getString
(
"componentKey"
)))
{
...
...
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