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
10adf34f
Commit
10adf34f
authored
Nov 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分析预警增加预警信息
parent
d3b72008
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+50
-0
TableContentVo.java
...eejoin/amos/boot/module/jxiop/api/dto/TableContentVo.java
+10
-0
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 @
10adf34f
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.BizMessage
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.BizMessage
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.RiskBizInfoVo
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.RiskBizInfoVo
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.RiskDynamicDetailsVo
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.RiskDynamicDetailsVo
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.TableContentVo
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.Enum.WarningNameEnum
;
import
com.yeejoin.amos.boot.module.jxiop.biz.Enum.WarningNameEnum
;
...
@@ -1162,6 +1163,33 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -1162,6 +1163,33 @@ public class HealthStatusIndicatorServiceImpl {
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
List
<
TableContentVo
>
tabContent
=
new
ArrayList
<>();
TableContentVo
tableContentVo1
=
new
TableContentVo
(
"1"
,
"场站名称"
,
idxBizPvWarningRecord
.
getStation
(),
"text"
);
TableContentVo
tableContentVo3
=
new
TableContentVo
(
"2"
,
"子阵"
,
idxBizPvWarningRecord
.
getSubarray
(),
"text"
);
TableContentVo
tableContentVo2
=
new
TableContentVo
(
"3"
,
"设备名称"
,
idxBizPvWarningRecord
.
getEquipmentName
(),
"text"
);
TableContentVo
tableContentVo4
=
new
TableContentVo
(
"1"
,
"分析变量"
,
idxBizPvWarningRecord
.
getPointName
(),
"text"
);
TableContentVo
tableContentVo5
=
new
TableContentVo
(
"1"
,
"健康状态指数"
,
idxBizPvWarningRecord
.
getHealthIndex
(),
"text"
);
TableContentVo
tableContentVo6
=
new
TableContentVo
(
"1"
,
"健康等级"
,
idxBizPvWarningRecord
.
getHealthLevel
(),
"text"
);
TableContentVo
tableContentVo7
=
new
TableContentVo
(
"1"
,
"预警周期"
,
idxBizPvWarningRecord
.
getWarningPeriod
(),
"text"
);
TableContentVo
tableContentVo8
=
new
TableContentVo
(
"1"
,
"预警时间"
,
idxBizPvWarningRecord
.
getRecDate
(),
"text"
);
TableContentVo
tableContentVo10
=
new
TableContentVo
(
"1"
,
"预警等级"
,
idxBizPvWarningRecord
.
getWarningName
(),
"text"
);
TableContentVo
tableContentVo11
=
new
TableContentVo
(
"1"
,
"预警原因"
,
idxBizPvWarningRecord
.
getContent
(),
"text"
);
tabContent
.
add
(
tableContentVo1
);
tabContent
.
add
(
tableContentVo2
);
tabContent
.
add
(
tableContentVo3
);
tabContent
.
add
(
tableContentVo4
);
tabContent
.
add
(
tableContentVo5
);
tabContent
.
add
(
tableContentVo6
);
tabContent
.
add
(
tableContentVo7
);
tabContent
.
add
(
tableContentVo8
);
tabContent
.
add
(
tableContentVo10
);
tabContent
.
add
(
tableContentVo11
);
dynamicDetailsVo
.
setTabContent
(
tabContent
);
detailsVos
.
add
(
dynamicDetailsVo
);
detailsVos
.
add
(
dynamicDetailsVo
);
riskBizInfoVo
.
setDynamicDetails
(
detailsVos
);
riskBizInfoVo
.
setDynamicDetails
(
detailsVos
);
bizMessage
.
setBizInfo
(
riskBizInfoVo
);
bizMessage
.
setBizInfo
(
riskBizInfoVo
);
...
@@ -1198,6 +1226,28 @@ public class HealthStatusIndicatorServiceImpl {
...
@@ -1198,6 +1226,28 @@ public class HealthStatusIndicatorServiceImpl {
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
List
<
RiskDynamicDetailsVo
>
detailsVos
=
new
ArrayList
<>();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
RiskDynamicDetailsVo
dynamicDetailsVo
=
new
RiskDynamicDetailsVo
();
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
dynamicDetailsVo
.
setTabName
(
"预警详情"
);
List
<
TableContentVo
>
tabContent
=
new
ArrayList
<>();
TableContentVo
tableContentVo1
=
new
TableContentVo
(
"1"
,
"场站名称"
,
idxBizFanWarningRecord
.
getStation
(),
"text"
);
TableContentVo
tableContentVo2
=
new
TableContentVo
(
"2"
,
"设备名称"
,
idxBizFanWarningRecord
.
getEquipmentName
(),
"text"
);
TableContentVo
tableContentVo3
=
new
TableContentVo
(
"3"
,
"设备系统"
,
idxBizFanWarningRecord
.
getSubSystem
(),
"text"
);
TableContentVo
tableContentVo4
=
new
TableContentVo
(
"1"
,
"分析变量"
,
idxBizFanWarningRecord
.
getPointName
(),
"text"
);
TableContentVo
tableContentVo5
=
new
TableContentVo
(
"1"
,
"健康状态指数"
,
idxBizFanWarningRecord
.
getHealthIndex
(),
"text"
);
TableContentVo
tableContentVo6
=
new
TableContentVo
(
"1"
,
"健康等级"
,
idxBizFanWarningRecord
.
getHealthLevel
(),
"text"
);
TableContentVo
tableContentVo7
=
new
TableContentVo
(
"1"
,
"预警周期"
,
idxBizFanWarningRecord
.
getWarningPeriod
(),
"text"
);
TableContentVo
tableContentVo8
=
new
TableContentVo
(
"1"
,
"预警时间"
,
idxBizFanWarningRecord
.
getRecDate
(),
"text"
);
TableContentVo
tableContentVo10
=
new
TableContentVo
(
"1"
,
"预警等级"
,
idxBizFanWarningRecord
.
getWarningName
(),
"text"
);
TableContentVo
tableContentVo11
=
new
TableContentVo
(
"1"
,
"预警原因"
,
idxBizFanWarningRecord
.
getContent
(),
"text"
);
tabContent
.
add
(
tableContentVo1
);
tabContent
.
add
(
tableContentVo2
);
tabContent
.
add
(
tableContentVo3
);
tabContent
.
add
(
tableContentVo4
);
tabContent
.
add
(
tableContentVo5
);
tabContent
.
add
(
tableContentVo6
);
tabContent
.
add
(
tableContentVo7
);
tabContent
.
add
(
tableContentVo8
);
tabContent
.
add
(
tableContentVo10
);
tabContent
.
add
(
tableContentVo11
);
dynamicDetailsVo
.
setTabContent
(
tabContent
);
detailsVos
.
add
(
dynamicDetailsVo
);
detailsVos
.
add
(
dynamicDetailsVo
);
riskBizInfoVo
.
setDynamicDetails
(
detailsVos
);
riskBizInfoVo
.
setDynamicDetails
(
detailsVos
);
bizMessage
.
setBizInfo
(
riskBizInfoVo
);
bizMessage
.
setBizInfo
(
riskBizInfoVo
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/TableContentVo.java
View file @
10adf34f
...
@@ -12,4 +12,14 @@ public class TableContentVo {
...
@@ -12,4 +12,14 @@ public class TableContentVo {
private
String
label
;
private
String
label
;
private
Object
value
;
private
Object
value
;
private
String
type
;
private
String
type
;
public
TableContentVo
(
String
key
,
String
label
,
Object
value
,
String
type
)
{
this
.
key
=
key
;
this
.
label
=
label
;
this
.
value
=
value
;
this
.
type
=
type
;
}
public
TableContentVo
()
{
}
}
}
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