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
1c8f237f
Commit
1c8f237f
authored
Oct 19, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
dedcbabf
006972ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+3
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+12
-11
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HealthStatusIndicatorServiceImpl.java
View file @
1c8f237f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
...
@@ -965,6 +966,7 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -965,6 +966,7 @@ public class HealthStatusIndicatorServiceImpl {
riskBizInfoVo
.
setSourceAttribution
(
stationMap
.
get
(
idxBizPvWarningRecord
.
getGatewayId
()).
getProjectOrgCode
());
riskBizInfoVo
.
setSourceAttribution
(
stationMap
.
get
(
idxBizPvWarningRecord
.
getGatewayId
()).
getProjectOrgCode
());
riskBizInfoVo
.
setSourceAttributionDesc
(
idxBizPvWarningRecord
.
getStation
());
riskBizInfoVo
.
setSourceAttributionDesc
(
idxBizPvWarningRecord
.
getStation
());
riskBizInfoVo
.
setWarningObjectType
(
"equip"
);
riskBizInfoVo
.
setWarningObjectType
(
"equip"
);
riskBizInfoVo
.
setWarningTime
(
DateUtil
.
now
());
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
...
@@ -1000,6 +1002,7 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -1000,6 +1002,7 @@ public class HealthStatusIndicatorServiceImpl {
riskBizInfoVo
.
setSourceAttribution
(
stationMap
.
get
(
idxBizFanWarningRecord
.
getGatewayId
()).
getProjectOrgCode
());
riskBizInfoVo
.
setSourceAttribution
(
stationMap
.
get
(
idxBizFanWarningRecord
.
getGatewayId
()).
getProjectOrgCode
());
riskBizInfoVo
.
setSourceAttributionDesc
(
idxBizFanWarningRecord
.
getStation
());
riskBizInfoVo
.
setSourceAttributionDesc
(
idxBizFanWarningRecord
.
getStation
());
riskBizInfoVo
.
setWarningObjectType
(
"equip"
);
riskBizInfoVo
.
setWarningObjectType
(
"equip"
);
riskBizInfoVo
.
setWarningTime
(
DateUtil
.
now
());
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
...
...
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 @
1c8f237f
...
@@ -254,6 +254,17 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -254,6 +254,17 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
likeMap
.
put
(
"systemType"
,
systemType
);
likeMap
.
put
(
"systemType"
,
systemType
);
}
}
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtionsAndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtionsAndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
List
<
String
>
powerOther
=
Arrays
.
asList
(
"月发电量"
,
"年发电量"
,
"总发电量"
);
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
result
.
forEach
(
esEquipments
->
{
if
(
esEquipments
.
getEquipmentIndexName
().
equals
(
"日发电量"
))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
}
if
(
powerOther
.
contains
(
esEquipments
.
getEquipmentIndexName
()))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActorCurrentData
));
}
});
}
result
.
stream
().
forEach
(
e
->
{
result
.
stream
().
forEach
(
e
->
{
e
.
setValue
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
e
.
getValueF
()));
e
.
setValue
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
e
.
getValueF
()));
});
});
...
@@ -271,17 +282,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -271,17 +282,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
.
skip
((
long
)
(
current
-
1
)
*
size
)
.
skip
((
long
)
(
current
-
1
)
*
size
)
.
limit
(
size
)
.
limit
(
size
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
List
<
String
>
powerOther
=
Arrays
.
asList
(
"月发电量"
,
"年发电量"
,
"总发电量"
);
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
collect
.
forEach
(
esEquipments
->
{
if
(
esEquipments
.
getEquipmentIndexName
().
equals
(
"日发电量"
))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
}
if
(
powerOther
.
contains
(
esEquipments
.
getEquipmentIndexName
()))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActorCurrentData
));
}
});
}
page
.
setTotal
(
result
.
size
());
page
.
setTotal
(
result
.
size
());
page
.
setRecords
(
collect
);
page
.
setRecords
(
collect
);
return
page
;
return
page
;
...
...
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