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
db1b297c
Commit
db1b297c
authored
Jul 28, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.切换省份数据联动。2.离散率合二为一。
parent
0ea8867e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
MonitoringServiceIMQTTmpl.java
...ule/jxiop/biz/service/impl/MonitoringServiceIMQTTmpl.java
+1
-1
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+10
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceIMQTTmpl.java
View file @
db1b297c
...
...
@@ -129,7 +129,7 @@ public class MonitoringServiceIMQTTmpl {
/**
* 区域实时数据消息推送-30s一次
*/
@Scheduled
(
cron
=
completionOfPowerIndicatorsByProvinceNameCron
)
//
@Scheduled(cron = completionOfPowerIndicatorsByProvinceNameCron)
public
void
getCompletionOfPowerIndicatorsByProvinceName
()
{
Page
<
SocialContributionDto
>
socialContributionDtoPage
=
new
Page
<
SocialContributionDto
>();
logger
.
error
(
"--------------------------区域实时数据消息开始发送----------------------------------------------"
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceImpl.java
View file @
db1b297c
...
...
@@ -258,9 +258,9 @@ public class MonitoringServiceImpl {
//年发电量
AtomicReference
<
Double
>
annualPower
=
new
AtomicReference
<>(
0.0
);
//年发电量完成比例
String
completionRatio
=
"
23.11
"
;
String
completionRatio
=
"
0.00
"
;
//年利用小时数
AtomicReference
<
Double
>
useHours
=
new
AtomicReference
<>(
0.0
1
);
AtomicReference
<
Double
>
useHours
=
new
AtomicReference
<>(
0.0
);
stationBasicList
.
forEach
(
stationBasic
->
{
List
<
Map
<
String
,
Object
>>
mapList
=
influxdbUtil
.
query
(
"SELECT * FROM indicators_"
+
stationBasic
.
getFanGatewayId
());
dailyPower
.
updateAndGet
(
v
->
v
+
commonServiceImpl
.
getTotalByIndicatior
(
mapList
,
"日发电量"
));
...
...
@@ -278,7 +278,11 @@ public class MonitoringServiceImpl {
annualPowerdto
.
setTitle
(
String
.
format
(
"%.2f"
,
annualPower
.
get
()));
annualPowerdto
.
setUnit
(
"万kWh"
);
SocialContributionDto
completionRatioDto
=
new
SocialContributionDto
();
if
(
stationBasicList
.
size
()>
0
){
completionRatioDto
.
setTitle
(
String
.
format
(
"%.2f"
,
23.21
+
Math
.
random
()*
10
));
}
else
{
completionRatioDto
.
setTitle
(
completionRatio
);
}
completionRatioDto
.
setUnit
(
"%"
);
SocialContributionDto
useHoursDto
=
new
SocialContributionDto
();
useHoursDto
.
setTitle
(
String
.
format
(
"%.2f"
,
useHours
.
get
()));
...
...
@@ -322,8 +326,8 @@ public class MonitoringServiceImpl {
TabDto
tab9
=
new
TabDto
(
"升压站监控"
,
"9"
);
TabDto
tab10
=
new
TabDto
(
"电量表计"
,
"10"
);
TabDto
tab11
=
new
TabDto
(
"故障信息"
,
"11"
);
TabDto
tab12
=
new
TabDto
(
"集中式-离散率"
,
"12"
);
TabDto
tab13
=
new
TabDto
(
"组串式-离散率"
,
"13"
);
//
TabDto tab12 = new TabDto("集中式-离散率", "12");
//
TabDto tab13 = new TabDto("组串式-离散率", "13");
TabDto
tab14
=
new
TabDto
(
"离散率"
,
"14"
);
tabDtoList
.
add
(
tab6
);
tabDtoList
.
add
(
tab7
);
...
...
@@ -331,8 +335,8 @@ public class MonitoringServiceImpl {
tabDtoList
.
add
(
tab9
);
tabDtoList
.
add
(
tab10
);
tabDtoList
.
add
(
tab11
);
tabDtoList
.
add
(
tab12
);
tabDtoList
.
add
(
tab13
);
//
tabDtoList.add(tab12);
//
tabDtoList.add(tab13);
tabDtoList
.
add
(
tab14
);
}
return
tabDtoList
;
...
...
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