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
7dfe4ac3
Commit
7dfe4ac3
authored
Dec 13, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据热工院提供 根据kks码判断设备类型
parent
8cc55d9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+20
-12
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 @
7dfe4ac3
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
...
...
@@ -1160,17 +1161,24 @@ public class HealthStatusIndicatorServiceImpl {
@Autowired
private
JumpConfigMapper
jumpConfigMapper
;
public
String
getJumpUrlByInfo
(
String
objectName
,
List
<
JumpConfig
>
jumpConfigs
)
{
String
jumpUrl
=
null
;
for
(
JumpConfig
jumpConfig
:
jumpConfigs
)
{
if
(
jumpConfig
.
getType
().
equals
(
"默认"
))
{
jumpUrl
=
jumpConfig
.
getUrl
();
}
if
(
objectName
.
contains
(
jumpConfig
.
getType
()))
{
return
jumpConfig
.
getUrl
();
}
public
String
getJumpUrlByInfo
(
String
sbbm
,
List
<
JumpConfig
>
jumpConfigs
)
{
Map
<
String
,
String
>
collect
=
jumpConfigs
.
stream
().
collect
(
Collectors
.
toMap
(
JumpConfig:
:
getType
,
JumpConfig:
:
getUrl
));
if
(
StrUtil
.
isEmpty
(
sbbm
))
{
return
""
;
}
if
(
sbbm
.
indexOf
(
"BAT"
)
!=
-
1
)
{
return
collect
.
get
(
"箱变"
);
}
else
if
(
sbbm
.
indexOf
(
"WG"
)
!=
-
1
)
{
return
collect
.
get
(
"汇流箱"
);
}
else
if
(
sbbm
.
indexOf
(
"WC"
)
!=
-
1
)
{
return
collect
.
get
(
"逆变器"
);
}
else
if
(
sbbm
.
length
()
==
12
&&
sbbm
.
indexOf
(
"MD"
)
!=
-
1
)
{
return
collect
.
get
(
"风机"
);
}
else
if
(
sbbm
.
length
()
>
12
&&
sbbm
.
indexOf
(
"MD"
)
!=
-
1
)
{
return
collect
.
get
(
"风机子系统"
);
}
else
{
return
collect
.
get
(
"默认"
);
}
return
jumpUrl
;
}
/**
* 光伏 - 触发预控模型生成预警
...
...
@@ -1193,7 +1201,7 @@ public class HealthStatusIndicatorServiceImpl {
riskBizInfoVo
.
setSourceAttributionDesc
(
idxBizPvWarningRecord
.
getStation
());
riskBizInfoVo
.
setWarningObjectType
(
"equip"
);
riskBizInfoVo
.
setWarningTime
(
DateUtil
.
now
());
riskBizInfoVo
.
setWarningObjectLinkUrl
(
getJumpUrlByInfo
(
idxBizPvWarningRecord
.
get
EquipmentName
(),
jumpConfigs
));
riskBizInfoVo
.
setWarningObjectLinkUrl
(
getJumpUrlByInfo
(
idxBizPvWarningRecord
.
get
Kks
(),
jumpConfigs
));
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
...
...
@@ -1258,7 +1266,7 @@ public class HealthStatusIndicatorServiceImpl {
riskBizInfoVo
.
setSourceAttributionDesc
(
idxBizFanWarningRecord
.
getStation
());
riskBizInfoVo
.
setWarningObjectType
(
"equip"
);
riskBizInfoVo
.
setWarningTime
(
DateUtil
.
now
());
riskBizInfoVo
.
setWarningObjectLinkUrl
(
getJumpUrlByInfo
(
idxBizFanWarningRecord
.
get
EquipmentName
(),
jumpConfigs
));
riskBizInfoVo
.
setWarningObjectLinkUrl
(
getJumpUrlByInfo
(
idxBizFanWarningRecord
.
get
Kks
(),
jumpConfigs
));
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
...
...
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