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
280f7841
Commit
280f7841
authored
Jun 04, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cyl):气瓶大屏,资质附件,轮播图用
parent
93657662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
CylinderInfoController.java
...e/cylinder/flc/biz/controller/CylinderInfoController.java
+11
-9
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/controller/CylinderInfoController.java
View file @
280f7841
...
...
@@ -1370,19 +1370,21 @@ public class CylinderInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"资质附件,轮播图用"
)
@GetMapping
(
value
=
"/getAttachmentByUnitCode"
)
public
ResponseModel
<
List
<
String
>>
getAttachmentByUnitCode
(
@RequestParam
(
value
=
"companyId"
)
String
companyId
)
{
List
<
String
>
result
=
new
ArrayList
<>();
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getAttachmentByUnitCode
(
@RequestParam
(
value
=
"companyId"
)
String
companyId
)
{
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
String
attachmentByUnitCode
=
cylinderInfoServiceImpl
.
getBaseMapper
().
getAttachmentByUnitCode
(
companyId
);
if
(
attachmentByUnitCode
!=
null
&&
!
attachmentByUnitCode
.
isEmpty
())
{
JSONArray
jsonArray
=
JSON
.
parseArray
(
attachmentByUnitCode
);
if
(
jsonArray
!=
null
)
{
jsonArray
.
stream
()
.
filter
(
JSONObject
.
class
::
isInstance
)
.
map
(
JSONObject
.
class
::
cast
)
.
map
(
obj
->
obj
.
getString
(
"url"
))
.
filter
(
Objects:
:
nonNull
)
.
forEach
(
result:
:
add
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
Map
<
String
,
Object
>
temp
=
(
Map
<
String
,
Object
>)
jsonArray
.
get
(
i
);
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"type"
,
"img"
);
map
.
put
(
"key"
,
i
+
1
);
map
.
put
(
"title"
,
temp
.
get
(
"name"
));
map
.
put
(
"url"
,
temp
.
get
(
"url"
));
result
.
add
(
map
);
}
}
}
return
ResponseHelper
.
buildResponse
(
result
);
...
...
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