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
75f985d2
Commit
75f985d2
authored
Oct 08, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
泰和年发电系数错误问题处理
parent
71867f83
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
55 additions
and
53 deletions
+55
-53
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+12
-7
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+3
-6
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+6
-0
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+2
-2
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+8
-8
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+1
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+6
-19
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+6
-0
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+11
-11
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
75f985d2
...
...
@@ -4,9 +4,14 @@ import java.util.HashMap;
public
class
CommonConstans
{
//光伏发电量系数
public
static
final
Double
pvGenPoweActor
=
0.00001
;
public
static
final
Double
pvGenPoweActorDay
=
0.1
;
public
static
final
Double
pvGenPoweActornew
=
0.0001
;
// public static final Double pvGenPoweActor = 0.00001;
// public static final Double pvGenPoweActorDay = 0.1;
// public static final Double pvGenPoweActornew = 0.0001;
public
static
final
Double
pvGenPoweActornew
=
0.000001
;
public
static
final
Double
pvGenPoweActor
=
0.000001
;
public
static
final
Double
pvGenPoweActorDay
=
1.0
;
public
static
final
Double
pvGenPoweActorYear
=
0.0001
;
// 风电站:
// (日/月/年)发电量=场站所有风机(日/月/年)发电量总和
// 装机容量=场站所有风机装机容量总和
...
...
@@ -22,7 +27,7 @@ public class CommonConstans {
// 二氧化碳减排量(万t)=发电量(万kW·h)*0.997 * 10 / 10000
public
static
final
Double
carbonDioxide
=
0.997
*
10
/
10000
;
// 节约标准煤(万t)=发电量(万kW·h)*0.29
public
static
final
Double
standardCoal
=
0.29
/
10000
;
public
static
final
Double
standardCoal
=
0.29
/
10000
;
// 炭粉尘减排量(t)=发电量(万kW·h)*0.30
public
static
final
Double
toner
=
0.30
;
// 二氧化硫减排量(t)=发电量(万kW·h)*1.51
...
...
@@ -34,7 +39,7 @@ public class CommonConstans {
//万Kwh转MV
public
static
final
Integer
wkwhToMv
=
10
;
//kw转MV
public
static
final
Double
kwToMv
=
0.0001
;
public
static
final
Double
kwToMv
=
0.0001
;
// 正常运行 发电状态=1
// 告警运行 报警状态=1
...
...
@@ -53,7 +58,7 @@ public class CommonConstans {
put
(
"故障状态"
,
"故障状态"
);
put
(
"待机状态"
,
"待机状态"
);
put
(
"维护状态"
,
"维护状态"
);
put
(
"限功率"
,
"限功率"
);
put
(
"限功率"
,
"限功率"
);
put
(
"通讯中断"
,
"通讯中断"
);
}
};
...
...
@@ -92,7 +97,7 @@ public class CommonConstans {
public
static
final
String
QueryStringDataType
=
"dataType"
;
public
static
final
String
QueryStringDisplayName
=
"displayName"
;
public
static
final
String
QueryStringIsAlarm
=
"isAlarm"
;
public
static
final
String
Twodecimalplaces
=
"%.2f"
;
public
static
final
String
Twodecimalplaces
=
"%.2f"
;
public
static
final
String
Fourdecimalplaces
=
"%.4f"
;
public
static
final
String
QueryStringFrontMoudleNotKeyWord
=
"frontModule"
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
75f985d2
...
...
@@ -658,13 +658,10 @@ public class MonitorFanIdxController extends BaseController {
for
(
String
column
:
columnList
)
{
Double
result
=
commonServiceImpl
.
getTotalByIndicatiorByGF
(
gatewayId
,
column
);
if
(
column
.
equals
(
"日发电量"
))
{
columnMap
.
put
(
column
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
result
*
CommonConstans
.
pvGenPoweActorDay
));
}
else
{
columnMap
.
put
(
column
,
result
);
}
columnMap
.
put
(
column
,
result
);
}
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"南瑞光差保护_313P"
,
"WTX-801_25_WTX-801_总辐射累计"
,
"WTX-801_25_WTX-801_总辐射"
,
"313光差保护_总反向有功电度"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getBoosterGatewayId
()));
...
...
@@ -950,7 +947,7 @@ public class MonitorFanIdxController extends BaseController {
monthMap
.
put
(
"value"
,
map
.
get
(
"月发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"月发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActornew
));
yearMap
.
put
(
"name"
,
name
);
yearMap
.
put
(
"gateWayId"
,
stationBasic
.
getFanGatewayId
());
yearMap
.
put
(
"value"
,
map
.
get
(
"年发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"年发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
new
));
yearMap
.
put
(
"value"
,
map
.
get
(
"年发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"年发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
Year
));
datDataGF
.
add
(
dayMap
);
monthDataGF
.
add
(
monthMap
);
yearDataGF
.
add
(
yearMap
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
75f985d2
...
...
@@ -406,6 +406,12 @@ public class CommonServiceImpl {
}
catch
(
Exception
e
)
{
return
totalvalue
;
}
if
(
indicator
.
equals
(
"日发电量"
)){
return
Double
.
valueOf
(
String
.
format
(
"%.4f"
,
totalvalue
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
}
if
(
indicator
.
equals
(
"年发电量"
)){
return
Double
.
valueOf
(
String
.
format
(
"%.4f"
,
totalvalue
*
CommonConstans
.
pvGenPoweActorYear
));
}
return
Double
.
valueOf
(
String
.
format
(
"%.4f"
,
totalvalue
*
CommonConstans
.
pvGenPoweActor
));
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
View file @
75f985d2
...
...
@@ -120,7 +120,7 @@ public class LargeScreenImpl {
mapdta
.
put
(
"YFD"
,
Double
.
valueOf
(
format2
.
format
(
parsedSum
.
getValue
()*
CommonConstans
.
pvGenPoweActornew
)));
break
;
case
NFD:
mapdta
.
put
(
"NFD"
,
Double
.
valueOf
(
format2
.
format
(
parsedSum
.
getValue
()*
CommonConstans
.
pvGenPoweActor
new
)));
mapdta
.
put
(
"NFD"
,
Double
.
valueOf
(
format2
.
format
(
parsedSum
.
getValue
()*
CommonConstans
.
pvGenPoweActor
Year
)));
break
;
default
:
break
;
...
...
@@ -245,7 +245,7 @@ public class LargeScreenImpl {
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
,
shouldQueryCondtion
);
dailyPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"日发电量"
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
monthlyPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"月发电量"
)
*
CommonConstans
.
pvGenPoweActornew
));
annualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
new
));
annualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
Year
));
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceImpl.java
View file @
75f985d2
...
...
@@ -888,13 +888,13 @@ public class MonitoringServiceImpl {
stringHashMap5
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfMonthFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfMonthGF
.
get
()
*
CommonConstans
.
pvGenPoweActornew
));
list1
.
add
(
stringHashMap5
);
HashMap
<
String
,
String
>
stringHashMap6
=
new
HashMap
<>();
stringHashMap6
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
new
));
stringHashMap6
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
Year
));
list1
.
add
(
stringHashMap6
);
HashMap
<
String
,
String
>
stringHashMap7
=
new
HashMap
<>();
stringHashMap7
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualFD
.
get
()/
fdzValue
)
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualGF
.
get
()*
CommonConstans
.
pvGenPoweActor
new
/
gfvalue
));
stringHashMap7
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualFD
.
get
()/
fdzValue
)
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualGF
.
get
()*
CommonConstans
.
pvGenPoweActor
Year
/
gfvalue
));
list1
.
add
(
stringHashMap7
);
HashMap
<
String
,
String
>
stringHashMap8
=
new
HashMap
<>();
stringHashMap8
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
.
get
()
*
CommonConstans
.
wkwhToMv
)
/
fdzInstall
.
doubleValue
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
new
*
CommonConstans
.
wkwhToMv
)
/
gfInstall
.
doubleValue
()));
stringHashMap8
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
.
get
()
*
CommonConstans
.
wkwhToMv
)
/
fdzInstall
.
doubleValue
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
Year
*
CommonConstans
.
wkwhToMv
)
/
gfInstall
.
doubleValue
()));
list1
.
add
(
stringHashMap8
);
page1
.
setRecords
(
list1
);
HashMap
<
String
,
String
>
stringHashMap9
=
new
HashMap
<>();
...
...
@@ -908,15 +908,15 @@ public class MonitoringServiceImpl {
resultMap
.
put
(
"YJHWC"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfMonthFD
.
get
()
+
powerOfMonthGF
.
get
()
*
CommonConstans
.
pvGenPoweActornew
)/
moonValue
*
100
));
list2
.
add
(
stringHashMap10
);
HashMap
<
String
,
String
>
stringHashMap11
=
new
HashMap
<>();
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
new
));
resultMap
.
put
(
"Year"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
new
));
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
Year
));
resultMap
.
put
(
"Year"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
Year
));
list2
.
add
(
stringHashMap11
);
HashMap
<
String
,
String
>
stringHashMap12
=
new
HashMap
<>();
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()*
CommonConstans
.
pvGenPoweActor
new
)
/
yearValue
*
100
));
resultMap
.
put
(
"NJHWC"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()*
CommonConstans
.
pvGenPoweActor
new
)
/
yearValue
*
100
));
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()*
CommonConstans
.
pvGenPoweActor
Year
)
/
yearValue
*
100
));
resultMap
.
put
(
"NJHWC"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()*
CommonConstans
.
pvGenPoweActor
Year
)
/
yearValue
*
100
));
list2
.
add
(
stringHashMap12
);
page2
.
setRecords
(
list2
);
Double
totalAnnual
=
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
new
);
Double
totalAnnual
=
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
Year
);
HashMap
<
String
,
String
>
stringHashMap13
=
new
HashMap
<>();
stringHashMap13
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
totalAnnual
*
CommonConstans
.
carbonDioxide
)));
stringHashMap13
.
put
(
"unit"
,
"二氧化碳减排量(万t)"
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
75f985d2
...
...
@@ -8,6 +8,7 @@ public class CommonConstans {
//光伏发电量系数
public
static
final
Double
pvGenPoweActor
=
0.000001
;
public
static
final
Double
pvGenPoweActorDay
=
1.0
;
public
static
final
Double
pvGenPoweActorYear
=
0.0001
;
// 风电站:
// (日/月/年)发电量=场站所有风机(日/月/年)发电量总和
// 装机容量=场站所有风机装机容量总和
...
...
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 @
75f985d2
...
...
@@ -226,16 +226,15 @@ public class MonitorFanIdxController extends BaseController {
// }
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"30秒平均风速"
,
"日发电量"
,
"月发电量"
,
"年发电量"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
List
<
ESEquipments
>
result2
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
columnMap
.
put
(
"日发电量"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result2
,
"日发电量"
)));
columnMap
.
put
(
"月发电量"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result2
,
"月发电量"
)));
columnMap
.
put
(
"年发电量"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result2
,
"年发电量"
)));
columnMap
.
put
(
"30秒平均风速"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
commonServiceImpl
.
getAvagerByEquipmentIndxName
(
result2
,
"30秒平均风速"
)));
columnMap
.
put
(
"日发电量"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result2
,
"日发电量"
)));
columnMap
.
put
(
"月发电量"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result2
,
"月发电量"
)));
columnMap
.
put
(
"年发电量"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result2
,
"年发电量"
)));
columnMap
.
put
(
"30秒平均风速"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
commonServiceImpl
.
getAvagerByEquipmentIndxName
(
result2
,
"30秒平均风速"
)));
Map
<
String
,
List
<
String
>>
queryCondtion1
=
new
HashMap
<>();
queryCondtion1
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"220kV夏雩线212线路测控装置PCS-9705TA有功功率一次值"
));
...
...
@@ -623,26 +622,14 @@ public class MonitorFanIdxController extends BaseController {
for
(
String
column
:
columnList
)
{
Double
result
=
commonService
.
getTotalByIndicatiorByGF
(
gatewayId
,
column
);
if
(
column
.
equals
(
"日发电量"
))
{
columnMap
.
put
(
column
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
result
*
CommonConstans
.
pvGenPoweActorDay
));
}
else
{
columnMap
.
put
(
column
,
result
);
}
columnMap
.
put
(
column
,
result
);
}
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"南瑞光差保护_313P"
,
"WTX-801_25_WTX-801_总辐射累计"
,
"WTX-801_25_WTX-801_总辐射"
,
"313光差保护_总反向有功电度"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
stationBasic
.
getBoosterGatewayId
()));
List
<
ESEquipments
>
result1
=
commonService
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
columnMap
.
put
(
"有功功率"
,
String
.
format
(
"%.2f"
,
commonService
.
getSumByEquipmentIndxName
(
result1
,
"南瑞光差保护_313P"
)
*
CommonConstans
.
kwToMv
*
10
));
// mapList = influxdbUtil.query("SELECT * FROM indicators_" + stationBasic.getFanGatewayId() + " where frontModule=~/逆变器/ and(equipmentIndexName='日发电量' or equipmentIndexName='月发电量' or equipmentIndexName='年发电量' or equipmentIndexName='有功功率')");
//日-月-年-发电量需要保留四位小数问题修改
columnMap
.
put
(
"有功功率"
,
String
.
format
(
"%.2f"
,
commonService
.
getSumByEquipmentIndxName
(
result1
,
"南瑞光差保护_313P"
)
*
CommonConstans
.
kwToMv
*
10
));
String
num
=
monitorFanIndicator
.
getEquipCount
(
gatewayId
,
"GF"
);
columnMap
.
put
(
"风机台数"
,
num
);
...
...
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 @
75f985d2
...
...
@@ -246,6 +246,12 @@ public class CommonServiceImpl {
}
catch
(
Exception
e
)
{
return
totalvalue
;
}
if
(
indicator
.
equals
(
"日发电量"
))
{
return
Double
.
valueOf
(
String
.
format
(
"%.4f"
,
totalvalue
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
}
if
(
indicator
.
equals
(
"年发电量"
))
{
return
Double
.
valueOf
(
String
.
format
(
"%.4f"
,
totalvalue
*
CommonConstans
.
pvGenPoweActorYear
));
}
return
Double
.
valueOf
(
String
.
format
(
"%.4f"
,
totalvalue
*
CommonConstans
.
pvGenPoweActor
));
}
...
...
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 @
75f985d2
...
...
@@ -264,11 +264,11 @@ public class MonitoringServiceImpl {
completionOfPowerIndicatorsDto
.
setActivePower
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result1
,
"南瑞光差保护_313P"
)));
completionOfPowerIndicatorsDto
.
setDailyPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"日发电量"
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
completionOfPowerIndicatorsDto
.
setMonthlyPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"月发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
completionOfPowerIndicatorsDto
.
setAnnualPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
completionOfPowerIndicatorsDto
.
setAnnualPower
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
Year
));
dailyPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"日发电量"
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
monthlyPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"月发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
annualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
gfzannualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
annualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
Year
));
gfzannualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
Year
));
gfzinstallCapacity
.
updateAndGet
(
v
->
v
+
Double
.
parseDouble
(
stationCacheInfoDto
.
getInstalledCapacity
()));
}
}
catch
(
Exception
exception
)
{
...
...
@@ -726,7 +726,7 @@ public class MonitoringServiceImpl {
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
,
shouldQueryCondtion
);
dailyPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"日发电量"
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
monthlyPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"月发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
annualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
annualPower
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
Year
));
}
});
HashMap
<
String
,
String
>
dayHashMap
=
new
HashMap
<>();
...
...
@@ -1041,13 +1041,13 @@ public class MonitoringServiceImpl {
stringHashMap5
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfMonthFD
)
+
"/"
+
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfMonthGF
*
CommonConstans
.
pvGenPoweActor
));
list1
.
add
(
stringHashMap5
);
HashMap
<
String
,
String
>
stringHashMap6
=
new
HashMap
<>();
stringHashMap6
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
)
+
"/"
+
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
));
stringHashMap6
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
)
+
"/"
+
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
Year
));
list1
.
add
(
stringHashMap6
);
HashMap
<
String
,
String
>
stringHashMap7
=
new
HashMap
<>();
stringHashMap7
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
*
100
)
/
fdzValue
)
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
*
100
)
/
gfvalue
));
stringHashMap7
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
*
100
)
/
fdzValue
)
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
Year
*
100
)
/
gfvalue
));
list1
.
add
(
stringHashMap7
);
HashMap
<
String
,
String
>
stringHashMap8
=
new
HashMap
<>();
stringHashMap8
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
*
CommonConstans
.
wkwhToMv
)
/
fdzInstall
.
doubleValue
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
wkwhToMv
)
/
gfInstall
.
doubleValue
()));
stringHashMap8
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualFD
*
CommonConstans
.
wkwhToMv
)
/
fdzInstall
.
doubleValue
())
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
Year
*
CommonConstans
.
wkwhToMv
)
/
gfInstall
.
doubleValue
()));
list1
.
add
(
stringHashMap8
);
page1
.
setRecords
(
list1
);
HashMap
<
String
,
String
>
stringHashMap9
=
new
HashMap
<>();
...
...
@@ -1057,13 +1057,13 @@ public class MonitoringServiceImpl {
stringHashMap10
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfMonthFD
+
powerOfMonthGF
*
CommonConstans
.
pvGenPoweActor
));
list2
.
add
(
stringHashMap10
);
HashMap
<
String
,
String
>
stringHashMap11
=
new
HashMap
<>();
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
+
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
));
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
+
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
Year
));
list2
.
add
(
stringHashMap11
);
HashMap
<
String
,
String
>
stringHashMap12
=
new
HashMap
<>();
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
((
powerOfAnnualFD
+
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
)
*
100
)
/
yearValue
));
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
((
powerOfAnnualFD
+
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
Year
)
*
100
)
/
yearValue
));
list2
.
add
(
stringHashMap12
);
page2
.
setRecords
(
list2
);
Double
totalAnnual
=
(
powerOfAnnualFD
+
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
);
Double
totalAnnual
=
(
powerOfAnnualFD
+
powerOfAnnualGF
*
CommonConstans
.
pvGenPoweActor
Year
);
HashMap
<
String
,
String
>
stringHashMap13
=
new
HashMap
<>();
stringHashMap13
.
put
(
"title1"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
totalAnnual
*
CommonConstans
.
carbonDioxide
)));
stringHashMap13
.
put
(
"title2"
,
"二氧化碳减排量(万t)"
);
...
...
@@ -1109,7 +1109,7 @@ public class MonitoringServiceImpl {
Map
<
String
,
String
>
shouldQueryCondtion
=
new
HashMap
<>();
shouldQueryCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
"逆变器"
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
,
shouldQueryCondtion
);
stationBasic
.
setAddress
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
));
stationBasic
.
setAddress
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)
*
CommonConstans
.
pvGenPoweActor
Year
));
}
});
List
<
StationBasic
>
fdzList
=
stationBasicListAll
.
stream
().
filter
(
stationBasic
->
stationBasic
.
getStationType
().
equals
(
"FDZ"
)).
collect
(
Collectors
.
toList
());
...
...
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