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
17e20c0e
Commit
17e20c0e
authored
Jul 29, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏-区域安全指数
parent
ae0d3b3f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
AQZSDPStatisticsController.java
.../statistcs/biz/controller/AQZSDPStatisticsController.java
+10
-15
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/AQZSDPStatisticsController.java
View file @
17e20c0e
...
@@ -30,35 +30,30 @@ public class AQZSDPStatisticsController {
...
@@ -30,35 +30,30 @@ public class AQZSDPStatisticsController {
this
.
statisticsService
=
statisticsService
;
this
.
statisticsService
=
statisticsService
;
}
}
/**
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
* 预警预报统计
@ApiOperation
(
value
=
"大屏-气瓶-区域安全指数"
)
*
@PostMapping
(
value
=
"/security-index"
)
* @return
public
ResponseModel
<
Map
<
String
,
Object
>>
getSecurityIndex
(
@RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/earlyWarning/child"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"预警预报"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getChildEarlyWarning
(
@RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
Object
regionCode
=
map
.
get
(
"cityCode"
);
Object
regionCode
=
map
.
get
(
"cityCode"
);
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
regionCode
=
"610000"
;
regionCode
=
"610000"
;
}
}
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getChildEarlyWarning
(
regionCode
.
toString
()));
Map
<
String
,
Object
>
result
=
statisticsService
.
getSecurityIndex
(
regionCode
.
toString
());
return
ResponseHelper
.
buildResponse
(
result
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@
ApiOperation
(
value
=
"区域安全指数"
)
@
RequestMapping
(
value
=
"/earlyWarning/child"
,
method
=
RequestMethod
.
POST
)
@
PostMapping
(
value
=
"/security-index
"
)
@
ApiOperation
(
httpMethod
=
"POST"
,
value
=
"大屏-气瓶-区域安全指数统计
"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
get
securityIndex
(
@RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
public
ResponseModel
<
Map
<
String
,
Object
>>
get
ChildEarlyWarning
(
@RequestBody
Map
<
String
,
Object
>
map
)
throws
Exception
{
Object
regionCode
=
map
.
get
(
"cityCode"
);
Object
regionCode
=
map
.
get
(
"cityCode"
);
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
if
(
ObjectUtils
.
isEmpty
(
regionCode
))
{
regionCode
=
"610000"
;
regionCode
=
"610000"
;
}
}
Map
<
String
,
Object
>
result
=
statisticsService
.
getsecurityIndex
(
regionCode
.
toString
());
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getChildEarlyWarning
(
regionCode
.
toString
()));
return
ResponseHelper
.
buildResponse
(
result
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
View file @
17e20c0e
...
@@ -217,7 +217,7 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -217,7 +217,7 @@ public class AQZSDPStatisticsServiceImpl {
}
}
public
Map
<
String
,
Object
>
get
s
ecurityIndex
(
String
regionCode
)
throws
Exception
{
public
Map
<
String
,
Object
>
get
S
ecurityIndex
(
String
regionCode
)
throws
Exception
{
List
<
RegionModel
>
regionModels
=
this
.
setRegionIfRootParent
(
regionCode
);
List
<
RegionModel
>
regionModels
=
this
.
setRegionIfRootParent
(
regionCode
);
List
<
String
>
collect
=
regionModels
.
stream
().
map
(
c
->
c
.
getRegionCode
().
toString
()).
collect
(
Collectors
.
toList
());
List
<
String
>
collect
=
regionModels
.
stream
().
map
(
c
->
c
.
getRegionCode
().
toString
()).
collect
(
Collectors
.
toList
());
List
<
CompanyModel
>
companyModelList
=
Privilege
.
companyClient
.
queryListByCompanyCode
(
Strings
.
join
(
collect
,
","
)).
getResult
();
List
<
CompanyModel
>
companyModelList
=
Privilege
.
companyClient
.
queryListByCompanyCode
(
Strings
.
join
(
collect
,
","
)).
getResult
();
...
...
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