Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
b1e6554e
Commit
b1e6554e
authored
Aug 25, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新监盘数据接口
parent
b21f7a28
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+2
-8
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+12
-8
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
b1e6554e
...
@@ -238,7 +238,7 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -238,7 +238,7 @@ public class MonitorFanIdxController extends BaseController {
objects
.
add
(
data6
);
objects
.
add
(
data6
);
Map
<
String
,
Object
>
data7
=
new
HashMap
<>();
Map
<
String
,
Object
>
data7
=
new
HashMap
<>();
data7
.
put
(
"title"
,
String
.
format
(
"%.2f"
,
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
())*
1000
)));
data7
.
put
(
"title"
,
String
.
format
(
"%.2f"
,
((
Double
.
parseDouble
(
columnMap
.
get
(
"日发电量"
).
toString
())*
10
)/
(
Double
.
parseDouble
(
columnMap
.
get
(
"装机容量"
).
toString
()))
)));
objects
.
add
(
data7
);
objects
.
add
(
data7
);
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
...
@@ -589,7 +589,7 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -589,7 +589,7 @@ public class MonitorFanIdxController extends BaseController {
//日-月-年-发电量需要保留四位小数问题修改
//日-月-年-发电量需要保留四位小数问题修改
for
(
String
column
:
columnList
)
{
for
(
String
column
:
columnList
)
{
Double
result
=
commonService
.
getTotalByIndicatior
(
mapList
,
column
);
Double
result
=
commonService
.
getTotalByIndicatior
(
mapList
,
column
);
columnMap
.
put
(
column
,
String
.
format
(
"%.4f"
,
result
));
columnMap
.
put
(
column
,
String
.
format
(
"%.4f"
,
result
/
10000
));
}
}
for
(
String
column
:
syLists
)
{
for
(
String
column
:
syLists
)
{
Double
result
=
commonService
.
getNumByIndicatior
(
boosterGatewayId
,
column
);
Double
result
=
commonService
.
getNumByIndicatior
(
boosterGatewayId
,
column
);
...
@@ -607,10 +607,6 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -607,10 +607,6 @@ public class MonitorFanIdxController extends BaseController {
Double
capacityl
=
commonService
.
getStationCapactityByStationWerks
(
stationBasic
.
getStationNumber
());
Double
capacityl
=
commonService
.
getStationCapactityByStationWerks
(
stationBasic
.
getStationNumber
());
//装机容量保留两位小数
//装机容量保留两位小数
columnMap
.
put
(
"装机容量"
,
String
.
format
(
"%.2f"
,
capacityl
));
columnMap
.
put
(
"装机容量"
,
String
.
format
(
"%.2f"
,
capacityl
));
List
<
Map
<
String
,
Object
>>
objects
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
objects
=
new
ArrayList
<>();
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"title"
,
columnMap
.
get
(
"装机容量"
).
toString
());
data
.
put
(
"title"
,
columnMap
.
get
(
"装机容量"
).
toString
());
...
@@ -642,8 +638,6 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -642,8 +638,6 @@ public class MonitorFanIdxController extends BaseController {
Map
<
String
,
Object
>
data9
=
new
HashMap
<>();
Map
<
String
,
Object
>
data9
=
new
HashMap
<>();
data9
.
put
(
"title"
,
"0.00%"
);
//综合效率
data9
.
put
(
"title"
,
"0.00%"
);
//综合效率
objects
.
add
(
data9
);
objects
.
add
(
data9
);
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
result
.
setRecords
(
objects
);
result
.
setRecords
(
objects
);
result
.
setCurrent
(
1
);
result
.
setCurrent
(
1
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
b1e6554e
...
@@ -302,22 +302,26 @@ public class CommonServiceImpl {
...
@@ -302,22 +302,26 @@ public class CommonServiceImpl {
//二氧化硫贡献度
//二氧化硫贡献度
SocialContributionDto
so2
=
new
SocialContributionDto
();
SocialContributionDto
so2
=
new
SocialContributionDto
();
/** 社会贡献原始计算公式,后边的数据已经经过处理
/** 社会贡献原始计算公式,后边的数据已经经过处理
//二氧化碳计算公式 *10000*832/10000/1000/1000
发电量完成率=(月/年)发电量/(月/年)发电量指标
//标准煤计算公式 *10000*304.9/10000/1000/1000
小时数完成率=(月/年)可利用小时/(月/年)可利用小时数指标
//碳粉尘计算公式 *10000*0.032/1000/1000
可利用小时(h)=(日/月/年)发电量(万kW·h)/装机容量(万kW)
//二氧化硫计算公式 =A2*10000*0.16/1000/1000
二氧化碳减排量(万t)=发电量(万kW·h)*0.79
节约标准煤(万t)=发电量(万kW·h)*0.29
炭粉尘减排量(t)=发电量(万kW·h)*0.30
二氧化硫减排量(t)=发电量(万kW·h)*1.51
氮氧化物减排量(t)=发电量(万kW·h)*1.69
*/
*/
co2
.
setUnit
(
"二氧化碳减排量(万t)"
);
co2
.
setUnit
(
"二氧化碳减排量(万t)"
);
co2
.
setTitle
(
String
.
format
(
"%.2f"
,
totalSocialContribution
*
0.
000832
));
co2
.
setTitle
(
String
.
format
(
"%.2f"
,
totalSocialContribution
*
0.
79
));
socialContributionDtoList
.
add
(
co2
);
socialContributionDtoList
.
add
(
co2
);
coal
.
setUnit
(
"节约标准煤(万t)"
);
coal
.
setUnit
(
"节约标准煤(万t)"
);
coal
.
setTitle
(
String
.
format
(
"%.2f"
,
totalSocialContribution
*
0.0003049
));
coal
.
setTitle
(
String
.
format
(
"%.2f"
,
(
totalSocialContribution
*
0.29
)/
10000
));
socialContributionDtoList
.
add
(
coal
);
socialContributionDtoList
.
add
(
coal
);
toner
.
setUnit
(
"碳粉尘减排量(万t)"
);
toner
.
setUnit
(
"碳粉尘减排量(万t)"
);
toner
.
setTitle
(
String
.
format
(
"%.2f"
,
totalSocialContribution
*
0.00032
));
toner
.
setTitle
(
String
.
format
(
"%.2f"
,
(
totalSocialContribution
*
0.30
)/
10000
));
socialContributionDtoList
.
add
(
toner
);
socialContributionDtoList
.
add
(
toner
);
so2
.
setUnit
(
"二氧化硫减排量(万t)"
);
so2
.
setUnit
(
"二氧化硫减排量(万t)"
);
so2
.
setTitle
(
String
.
format
(
"%.2f"
,
totalSocialContribution
*
0.0016
));
so2
.
setTitle
(
String
.
format
(
"%.2f"
,
(
totalSocialContribution
*
1.51
)/
10000
));
socialContributionDtoList
.
add
(
so2
);
socialContributionDtoList
.
add
(
so2
);
socialContributionDtoPage
.
setRecords
(
socialContributionDtoList
);
socialContributionDtoPage
.
setRecords
(
socialContributionDtoList
);
socialContributionDtoPage
.
setTotal
(
100
);
socialContributionDtoPage
.
setTotal
(
100
);
...
...
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 @
b1e6554e
This diff is collapsed.
Click to expand it.
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