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
025e4d6e
Commit
025e4d6e
authored
Oct 16, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区域接口组装
parent
872fe1f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
BigScreenAnalyseController.java
...dule/jxiop/biz/controller/BigScreenAnalyseController.java
+20
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/BigScreenAnalyseController.java
View file @
025e4d6e
...
@@ -954,4 +954,24 @@ public class BigScreenAnalyseController extends BaseController {
...
@@ -954,4 +954,24 @@ public class BigScreenAnalyseController extends BaseController {
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取区域信息,根据层级查询单位信息 key 和 value都是区域名称"
)
@GetMapping
(
"/getAreaListByLevel"
)
public
ResponseModel
<
List
<
Map
<
String
,
String
>>>
getAreaListByLevel
(
@RequestParam
(
"level"
)
String
level
)
throws
Exception
{
FeignClientResult
<
List
<
CompanyModel
>>
listFeignClientResult
=
Privilege
.
companyClient
.
queryAgencyList
(
level
);
ArrayList
<
Map
<
String
,
String
>>
maps
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
listFeignClientResult
))
{
if
(
listFeignClientResult
.
getStatus
()
==
200
)
{
listFeignClientResult
.
getResult
().
forEach
(
item
->
{
HashMap
<
String
,
String
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"key"
,
item
.
getCompanyName
());
resultMap
.
put
(
"value"
,
item
.
getCompanyName
());
maps
.
add
(
resultMap
);
});
}
else
{
throw
new
RuntimeException
(
listFeignClientResult
.
getMessage
());
}
}
return
ResponseHelper
.
buildResponse
(
maps
);
}
}
}
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