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
991d4dad
Commit
991d4dad
authored
Sep 28, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘 大屏问题修复
parent
a942806d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
12 deletions
+37
-12
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+3
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+0
-0
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+0
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+21
-4
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+2
-2
overview.json
...jxiop-bigscreen-biz/src/main/resources/json/overview.json
+0
-1
overviewGF.json
...iop-bigscreen-biz/src/main/resources/json/overviewGF.json
+3
-4
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+1
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-1
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 @
991d4dad
...
...
@@ -32,6 +32,9 @@ public class CommonConstans {
public
static
final
Double
tToWT
=
0.0001
;
//万Kwh转MV
public
static
final
Integer
wkwhToMv
=
10
;
//kw转MV
public
static
final
Double
kwToMv
=
0.0001
;
// 正常运行 发电状态=1
// 告警运行 报警状态=1
// 正常停机 停机状态=1
...
...
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 @
991d4dad
This diff is collapsed.
Click to expand it.
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 @
991d4dad
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
991d4dad
...
...
@@ -602,14 +602,15 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
Map
<
String
,
Object
>
getDetailsWindSpeedAll
(
String
gatewayId
,
double
installedCapacity
){
public
Map
<
String
,
Object
>
getDetailsWindSpeedAll
(
String
gatewayId
,
double
installedCapacity
,
List
<
String
>
ids
){
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
if
(
StringUtils
.
isNotEmpty
(
gatewayId
))
{
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
)
);
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
ids
);
}
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"220kV夏雩线212线路测控装置PCS-9705TA有功功率一次值"
,
"南瑞光差保护_313P"
));
List
<
ESEquipments
>
indicatorsDtoList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
double
sum
=
indicatorsDtoList
.
stream
().
mapToDouble
(
t
->
Double
.
parseDouble
(
t
.
getValueF
().
toString
())).
sum
();
double
sum
=
null
==
indicatorsDtoList
?
0.0
:
indicatorsDtoList
.
stream
().
mapToDouble
(
t
->
Double
.
parseDouble
(
t
.
getValueF
().
toString
())).
sum
();
Double
format
=
Double
.
parseDouble
(
String
.
format
(
"%.2f"
,
sum
/
installedCapacity
));
List
<
Map
<
String
,
Object
>>
list
=
temporaryDataMapper
.
timingTemporarysSorageData
(
gatewayId
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
@@ -1936,5 +1937,21 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
return
hashMap
;
}
public
String
getEquipCount
(
String
gatewayId
,
String
stationType
)
{
Map
<
String
,
List
<
String
>>
queryCondtion1
=
new
HashMap
<>();
if
(
stationType
.
equals
(
"FDZ"
))
{
queryCondtion1
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"有功功率"
));
}
else
{
queryCondtion1
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"运行"
));
}
queryCondtion1
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
List
<
ESEquipments
>
equipNumList
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion1
,
null
,
ESEquipments
.
class
);
if
(!
CollectionUtils
.
isEmpty
(
equipNumList
))
{
return
equipNumList
.
size
()
+
""
;
}
return
"0"
;
}
}
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 @
991d4dad
...
...
@@ -821,7 +821,7 @@ public class MonitoringServiceImpl {
BigDecimal
totalInstall
=
new
BigDecimal
(
getInstallCapity
(
stationBasicListAll
));
stringHashMap
.
put
(
"title"
,
totalInstall
.
toString
());
stringHashMap
.
put
(
"data"
,
""
);
list
.
add
(
stringHashMap
);
//
list.add(stringHashMap);
//风电站
HashMap
<
String
,
String
>
stringHashMap1
=
new
HashMap
<>();
BigDecimal
fdzInstall
=
new
BigDecimal
(
getInstallCapity
(
fdzList
));
...
...
@@ -924,7 +924,7 @@ public class MonitoringServiceImpl {
HashMap
<
String
,
String
>
stringHashMap16
=
new
HashMap
<>();
stringHashMap16
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
totalAnnual
*
CommonConstans
.
sulfurDioxide
*
CommonConstans
.
tToWT
)));
stringHashMap16
.
put
(
"unit"
,
"二氧化硫减排量(万t)"
);
list3
.
add
(
stringHashMap16
);
list3
.
add
(
stringHashMap16
);
page3
.
setRecords
(
list3
);
try
{
emqKeeper
.
getMqttClient
().
publish
(
"bigscreen_zjrl_topic"
,
JSON
.
toJSON
(
page
).
toString
().
getBytes
(
"UTF-8"
),
1
,
true
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/json/overview.json
View file @
991d4dad
...
...
@@ -12,7 +12,6 @@
{
"title"
:
"风机台数"
,
"title1"
:
"风机台数(台)"
,
"action"
:
"*.replace(
\"
.0
\"
,
\"\"
)"
,
"url"
:
"upload/jxiop/amos_studio/EA3572E1BD31DC1E7D8DA162F09ECB.png"
},
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/json/overviewGF.json
View file @
991d4dad
...
...
@@ -2,7 +2,6 @@
{
"title"
:
"逆变器台数"
,
"title1"
:
"逆变器台数(台)"
,
"action"
:
"*.replace(
\"
.0
\"
,
\"\"
)"
,
"url"
:
"upload/jxiop/amos_studio/EA3572E1BD31DC1E7D8DA162F09ECB.png"
},
{
...
...
@@ -24,7 +23,7 @@
{
"url"
:
"upload/jxiop/amos_studio/DD1CE8BAF5A7C3AC5E6E2C0D46C3EEC.png"
,
"title1"
:
"辐照强度(W/㎡)"
,
"title"
:
"
总辐射
"
"title"
:
"
辐照强度
"
},
{
"url"
:
"upload/jxiop/amos_studio/22639FDFF29B20B681DF55F1252876B3.png"
,
...
...
@@ -52,8 +51,8 @@
"url"
:
"upload/jxiop/amos_studio/1660C5DDA22ACFADC89A60DEDB82FA39.png"
},
{
"title"
:
"
年
利用小时"
,
"title1"
:
"
年
利用小时"
,
"title"
:
"
日
利用小时"
,
"title1"
:
"
日
利用小时"
,
"action"
:
"String.format(
\"
%.2f
\"
,Double.parseDouble(columnMap.get(
\"
*
\"
).toString())/ (Double.parseDouble(columnMap.get(
\"
-
\"
).toString())*1000))"
,
"url"
:
"upload/jxiop/amos_studio/C46B483E51ACAC137CBEB5156F6F377.png"
}
...
...
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 @
991d4dad
...
...
@@ -401,6 +401,7 @@ public class CommonServiceImpl {
stationCacheInfoDto
.
setBelongArea
(
mapRegionList
.
stream
().
filter
(
mapRegion
->
mapRegion
.
getProvince
().
contains
(
stationCacheInfoDto
.
getBelongProvince
().
substring
(
0
,
2
))
||
mapRegion
.
getProvince
().
contains
(
stationCacheInfoDto
.
getBelongProvince
().
substring
(
0
,
3
))).
map
(
mapRegion
->
mapRegion
.
getName
()).
collect
(
Collectors
.
toList
()).
get
(
0
));
stationCacheInfoDto
.
setInstalledCapacity
(
String
.
format
(
"%.2f"
,
sjglZsjZsbtzMapper
.
getStationCapactityByStationWerks
(
stationBasic
.
getStationNumber
())));
stationCacheInfoDto
.
setFanGatewayId
(
stationBasic
.
getFanGatewayId
());
stationCacheInfoDto
.
setAreaCode
(
mapRegionList
.
stream
().
filter
(
mapRegion
->
mapRegion
.
getProvince
().
contains
(
stationCacheInfoDto
.
getBelongProvince
().
substring
(
0
,
2
))
||
mapRegion
.
getProvince
().
contains
(
stationCacheInfoDto
.
getBelongProvince
().
substring
(
0
,
3
))).
map
(
mapRegion
->
mapRegion
.
getAreaCode
()).
collect
(
Collectors
.
toList
()).
get
(
0
));
stationCacheInfoDto
.
setBoosterGatewayId
(
stationBasic
.
getBoosterGatewayId
());
stationCacheInfoDtos
.
add
(
stationCacheInfoDto
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
991d4dad
...
...
@@ -206,7 +206,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
});
Collator
instance
=
Collator
.
getInstance
(
Locale
.
CHINA
);
Collections
.
sort
(
result
,
(
e1
,
e2
)
->
{
return
instance
.
compare
(
e1
.
get
SystemType
(),
e2
.
getSystemTyp
e
());
return
instance
.
compare
(
e1
.
get
EquipmentIndexName
(),
e2
.
getEquipmentIndexNam
e
());
});
List
<
ESEquipments
>
collect
=
result
.
stream
()
.
skip
((
long
)
(
current
-
1
)
*
size
)
...
...
@@ -801,6 +801,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
statusMap
.
put
(
"title"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
"通"
:
"断"
);
statusMaps
.
add
(
statusMap
);
}
Collator
instance
=
Collator
.
getInstance
(
Locale
.
CHINA
);
Collections
.
sort
(
statusMaps
,
(
e1
,
e2
)
->
{
return
instance
.
compare
(
e1
.
get
(
"data"
),
e2
.
get
(
"data"
));
});
return
statusMaps
;
}
...
...
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