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
eeb29b0e
Commit
eeb29b0e
authored
Jul 22, 2024
by
邢磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)附件如重复,增加分组名称
parent
447e4254
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
DPSubServiceImpl.java
...s/boot/module/jyjc/biz/service/impl/DPSubServiceImpl.java
+10
-5
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 @
eeb29b0e
...
...
@@ -326,7 +326,7 @@ public class DPSubServiceImpl {
mergedArray
.
stream
().
forEach
(
x
->
{
Object
fieldKey
=
JsonValueUtils
.
getValueByKey
(
x
,
"visualParams"
,
"visualParams.fieldKey"
);
if
(!
ValidationUtil
.
isEmpty
(
fieldKey
))
{
this
.
processWidgets
(
tab
,
datas
,
x
,
fieldKey
.
toString
(),
result
,
matinfo
);
this
.
processWidgets
(
tab
,
datas
,
x
,
null
,
fieldKey
.
toString
(),
result
,
matinfo
);
}
});
map
.
put
(
"datas"
,
datas
);
...
...
@@ -343,7 +343,8 @@ public class DPSubServiceImpl {
JSONObject
subObj
=
new
JSONObject
();
subObj
.
put
(
"key"
,
"key"
+
i
);
subObj
.
put
(
"displayName"
,
JsonValueUtils
.
getValueByKey
(
yObj
,
"visualParams"
,
"visualParams.title"
));
Object
displayName
=
JsonValueUtils
.
getValueByKey
(
yObj
,
"visualParams"
,
"visualParams.title"
);
subObj
.
put
(
"displayName"
,
displayName
);
subObj
.
put
(
"renderType"
,
"basic"
);
subObj
.
put
(
"columns"
,
columnsArray
.
size
());
...
...
@@ -351,7 +352,7 @@ public class DPSubServiceImpl {
mergedArray
.
stream
().
forEach
(
x
->
{
Object
fieldKey
=
JsonValueUtils
.
getValueByKey
(
x
,
"visualParams"
,
"visualParams.fieldKey"
);
if
(!
ValidationUtil
.
isEmpty
(
fieldKey
))
{
this
.
processWidgets
(
tab
,
datas
,
x
,
fieldKey
.
toString
(),
JSONObject
.
parseObject
(
apiResult
.
toString
()),
matinfo
);
this
.
processWidgets
(
tab
,
datas
,
x
,
displayName
,
fieldKey
.
toString
(),
JSONObject
.
parseObject
(
apiResult
.
toString
()),
matinfo
);
subObj
.
put
(
"datas"
,
datas
);
}
});
...
...
@@ -368,7 +369,7 @@ public class DPSubServiceImpl {
* @param apiResult
* @return
*/
public
JSONArray
processWidgets
(
JSONObject
tab
,
JSONArray
datas
,
Object
x
,
String
fieldKey
,
JSONObject
apiResult
,
JSONObject
matinfo
)
{
public
JSONArray
processWidgets
(
JSONObject
tab
,
JSONArray
datas
,
Object
x
,
Object
displayName
,
String
fieldKey
,
JSONObject
apiResult
,
JSONObject
matinfo
)
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
xObj
=
(
JSONObject
)
x
;
...
...
@@ -394,7 +395,11 @@ public class DPSubServiceImpl {
JSONObject
attachmentUploadDatasObj
=
new
JSONObject
();
attachmentUploadDatasObj
.
put
(
"value"
,
value
);
String
accept
=
visualParams
.
getString
(
"accept"
);
attachmentUploadDatasObj
.
put
(
"label"
,
visualParams
.
getString
(
"label"
));
String
label
=
visualParams
.
getString
(
"label"
);
if
(!
ValidationUtil
.
isEmpty
(
displayName
)
&&
(
"附件"
.
equals
(
label
)
||
"其他附件"
.
equals
(
label
))){
label
=
label
+
"("
+
displayName
+
")"
;
}
attachmentUploadDatasObj
.
put
(
"label"
,
label
);
if
(
accept
.
equals
(
".*"
)
||
accept
.
contains
(
"doc"
)
||
accept
.
contains
(
"docx"
)
||
accept
.
contains
(
"pdf"
)
||
accept
.
contains
(
"xls"
)
||
accept
.
contains
(
"xlsx"
)){
attachmentUploadDatasObj
.
put
(
"type"
,
"file"
);
}
else
if
(
accept
.
contains
(
"png"
)
||
accept
.
contains
(
"img"
)){
...
...
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