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
0e75cf75
Commit
0e75cf75
authored
Aug 13, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏-监管-接口自测优化
parent
952d9cf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+8
-13
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 @
0e75cf75
...
...
@@ -14,7 +14,6 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.*;
import
com.yeejoin.amos.boot.module.statistics.api.mapper.ZLStatisticsMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzsUserInfoMapper
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
...
...
@@ -712,6 +711,7 @@ public class JGDPStatisticsServiceImpl {
builder
.
query
(
boolMust
);
TermsAggregationBuilder
aggregationBuilder
=
AggregationBuilders
.
terms
(
"EQU_STATE_COUNT"
).
field
(
"EQU_STATE"
).
size
(
20
);
builder
.
aggregation
(
aggregationBuilder
);
builder
.
size
(
0
);
request
.
source
(
builder
);
try
{
SearchResponse
response
=
restHighLevelClient
.
search
(
request
,
RequestOptions
.
DEFAULT
);
...
...
@@ -904,7 +904,7 @@ public class JGDPStatisticsServiceImpl {
return
resultMap
;
}
private
Map
<
String
,
Object
>
cancelCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
private
void
cancelCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
Map
<
String
,
Integer
>
countMap
=
new
HashMap
<>();
List
<
Object
>
xDataList
=
new
ArrayList
<>();
...
...
@@ -941,10 +941,9 @@ public class JGDPStatisticsServiceImpl {
resultMap
.
put
(
"xdata"
,
xDataList
);
resultMap
.
put
(
"ydata"
,
yDataList
);
return
resultMap
;
}
private
Map
<
String
,
Object
>
disableCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
private
void
disableCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
Map
<
String
,
Integer
>
countMap
=
new
HashMap
<>();
List
<
Object
>
xDataList
=
new
ArrayList
<>();
...
...
@@ -981,10 +980,9 @@ public class JGDPStatisticsServiceImpl {
resultMap
.
put
(
"xdata"
,
xDataList
);
resultMap
.
put
(
"ydata"
,
yDataList
);
return
resultMap
;
}
private
Map
<
String
,
Object
>
changeCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
private
void
changeCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
Map
<
String
,
Integer
>
countMap
=
new
HashMap
<>();
List
<
Object
>
xDataList
=
new
ArrayList
<>();
...
...
@@ -1035,10 +1033,9 @@ public class JGDPStatisticsServiceImpl {
resultMap
.
put
(
"xdata"
,
xDataList
);
resultMap
.
put
(
"ydata"
,
yDataList
);
return
resultMap
;
}
private
Map
<
String
,
Object
>
useCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
private
void
useCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
Map
<
String
,
Integer
>
countMap
=
new
HashMap
<>();
List
<
Object
>
xDataList
=
new
ArrayList
<>();
...
...
@@ -1053,10 +1050,10 @@ public class JGDPStatisticsServiceImpl {
orgCodes
.
add
(
t
.
get
(
"orgCode"
));
}
});
//使用
告知
//使用
登记
List
<
Map
<
String
,
Object
>>
useCountList
=
dpStatisticsMapper
.
useCountByOrgCodes
(
orgCodes
);
countByMap
(
countMap
,
useCountList
);
//车用气瓶使用
告知
//车用气瓶使用
登记
List
<
Map
<
String
,
Object
>>
vehicleCountList
=
dpStatisticsMapper
.
vehicleCountByOrgCodes
(
orgCodes
);
countByMap
(
countMap
,
vehicleCountList
);
for
(
int
i
=
0
;
i
<
regionModelList
.
size
();
i
++)
{
...
...
@@ -1078,10 +1075,9 @@ public class JGDPStatisticsServiceImpl {
resultMap
.
put
(
"xdata"
,
xDataList
);
resultMap
.
put
(
"ydata"
,
yDataList
);
return
resultMap
;
}
private
Map
<
String
,
Object
>
noticeCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
private
void
noticeCount
(
Map
<
String
,
Object
>
resultMap
,
List
<
RegionModel
>
regionModelList
)
{
Map
<
String
,
Integer
>
countMap
=
new
HashMap
<>();
List
<
Object
>
xDataList
=
new
ArrayList
<>();
List
<
Object
>
yDataList
=
new
ArrayList
<>();
...
...
@@ -1125,7 +1121,6 @@ public class JGDPStatisticsServiceImpl {
resultMap
.
put
(
"xdata"
,
xDataList
);
resultMap
.
put
(
"ydata"
,
yDataList
);
return
resultMap
;
}
private
void
countByMap
(
Map
<
String
,
Integer
>
countMap
,
List
<
Map
<
String
,
Object
>>
list
)
{
...
...
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