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
2fbee741
Commit
2fbee741
authored
Sep 02, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏中部地图数据增加初始化
parent
93d7b7a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+21
-2
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/service/impl/JGDPStatisticsServiceImpl.java
View file @
2fbee741
...
@@ -397,7 +397,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -397,7 +397,7 @@ public class JGDPStatisticsServiceImpl {
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
StringUtils
.
isEmpty
(
orgCode
))
{
if
(
StringUtils
.
isEmpty
(
orgCode
))
{
return
new
HashMap
<>(
);
return
setDefaultCount
(
result
);
}
}
// 1.气瓶数量统计
// 1.气瓶数量统计
long
cylinderNum
=
stCommonService
.
staticsCenterMapCountDataForCylinder
(
result
,
orgCode
);
long
cylinderNum
=
stCommonService
.
staticsCenterMapCountDataForCylinder
(
result
,
orgCode
);
...
@@ -416,7 +416,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -416,7 +416,7 @@ public class JGDPStatisticsServiceImpl {
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
StringUtils
.
isEmpty
(
orgCode
))
{
if
(
StringUtils
.
isEmpty
(
orgCode
))
{
return
new
HashMap
<>(
);
return
setDefaultCount
(
result
);
}
}
// 0. 气瓶数量统计
// 0. 气瓶数量统计
long
cylinderNum
=
stCommonService
.
staticsCenterMapCountDataForCylinder
(
result
,
orgCode
);
long
cylinderNum
=
stCommonService
.
staticsCenterMapCountDataForCylinder
(
result
,
orgCode
);
...
@@ -429,6 +429,24 @@ public class JGDPStatisticsServiceImpl {
...
@@ -429,6 +429,24 @@ public class JGDPStatisticsServiceImpl {
return
result
;
return
result
;
}
}
private
Map
<
String
,
Object
>
setDefaultCount
(
Map
<
String
,
Object
>
result
){
result
.
put
(
DPMapStatisticsItemEnum
.
LIFTING_MACHINERY
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
PRESSURE_VESSELS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
GAS_UNITS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
PRESSURE_PIPELINES
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
PASSENGER_ROPEWAYS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
MANUFACTURING_UNITS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
BOILERS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
TOTAL
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
OPERATORS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
CONSTRUCTION_UNITS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
GAS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
ON_SITE_MOTOR_VEHICLES
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
ELEVATORS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
LARGE_AMUSEMENT_FACILITIES
.
getCode
(),
0
);
return
result
;
}
private
void
staticsCenterMapCountDataForPerson
(
Map
<
String
,
Object
>
result
,
DPFilterParamDto
dpFilterParamDto
,
String
orgCode
)
{
private
void
staticsCenterMapCountDataForPerson
(
Map
<
String
,
Object
>
result
,
DPFilterParamDto
dpFilterParamDto
,
String
orgCode
)
{
if
(
orgCode
==
null
)
{
if
(
orgCode
==
null
)
{
result
.
put
(
DPMapStatisticsItemEnum
.
OPERATORS
.
getCode
(),
0
);
result
.
put
(
DPMapStatisticsItemEnum
.
OPERATORS
.
getCode
(),
0
);
...
@@ -495,6 +513,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -495,6 +513,7 @@ public class JGDPStatisticsServiceImpl {
filterParamDto
.
setCityCode
(
r
.
getRegionCode
().
toString
());
filterParamDto
.
setCityCode
(
r
.
getRegionCode
().
toString
());
Map
<
String
,
Object
>
itemResult
=
getCenterMapOverviewData
(
filterParamDto
);
Map
<
String
,
Object
>
itemResult
=
getCenterMapOverviewData
(
filterParamDto
);
itemResult
.
put
(
"cityCode"
,
r
.
getRegionCode
());
itemResult
.
put
(
"cityCode"
,
r
.
getRegionCode
());
itemResult
.
put
(
"cityName"
,
r
.
getRegionName
());
return
itemResult
;
return
itemResult
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
this
.
setCompanyDataBatch
(
result
);
this
.
setCompanyDataBatch
(
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