Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
35e5ee8a
由
康伟
编写于
2025-03-11 18:19:45 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge remote-tracking branch 'origin/master'
2 个父辈
41fa5181
3f99ad9c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
34 行增加
和
24 行删除
sk-base-common/src/main/java/com/skua/modules/alarmtmp/service/impl/AlarmCustomRecordHistoryServiceImpl.java
sk-module-equipment/src/main/java/com/skua/modules/equipment/entity/EquipmentInfo.java
sk-base-common/src/main/java/com/skua/modules/alarmtmp/service/impl/AlarmCustomRecordHistoryServiceImpl.java
查看文件 @
35e5ee8
...
...
@@ -56,7 +56,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord
private
IAlarmCustomRuleRepositoryService
alarmCustomRuleRepositoryService
;
@Autowired
private
IAlarmRuleConfigPublicTabService
alarmRuleConfigPublicTabService
;
@Override
public
Page
<
AlarmRecordHistoryVO
>
queryCustomPageList
(
Page
<
AlarmRecordHistoryVO
>
pageList
,
AlarmRecordHistoryVO
alarmRecordHistoryVO
)
{
Page
<
AlarmRecordHistoryVO
>
pagelist
=
pageList
.
setRecords
(
alarmCustomRecordHistoryMapper
.
queryCustomPageList
(
pageList
,
alarmRecordHistoryVO
));
...
...
@@ -76,29 +76,32 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord
for
(
AlarmRuleConfigPublicTab
alarmRuleTypeInfo
:
alarmRuleTypeList
)
{
typeDictMap
.
put
(
alarmRuleTypeInfo
.
getId
(),
alarmRuleTypeInfo
.
getTabName
());
}
List
<
AlarmRecordHistoryVO
>
recordList
=
pagelist
.
getRecords
();
if
(
recordList
!=
null
&&
recordList
.
size
()>
0
)
{
for
(
AlarmRecordHistoryVO
record
:
recordList
)
{
String
alarmCustomRuleTypeTreepath
=
record
.
getAlarmCustomRuleTypeTreepath
();
String
[]
customRuleTypeArray
=
alarmCustomRuleTypeTreepath
.
split
(
","
);
String
customRuleTypeTreepathName
=
""
;
for
(
String
type
:
customRuleTypeArray
)
{
customRuleTypeTreepathName
=
customRuleTypeTreepathName
+
"/"
+
customDictMap
.
get
(
type
);
}
if
(
StringUtils
.
isNotEmpty
(
customRuleTypeTreepathName
))
{
record
.
setAlarmCustomRuleTypeTreepathName
(
customRuleTypeTreepathName
.
substring
(
1
));
}
String
alarmRuleTypeTreepath
=
record
.
getAlarmRuleTypeTreepath
();
String
[]
ruleTypeArray
=
alarmRuleTypeTreepath
.
split
(
","
);
String
alarmRuleTypeTreepathName
=
""
;
for
(
String
type
:
ruleTypeArray
)
{
alarmRuleTypeTreepathName
=
alarmRuleTypeTreepathName
+
"/"
+
typeDictMap
.
get
(
type
);
}
if
(
StringUtils
.
isNotEmpty
(
alarmRuleTypeTreepathName
))
{
record
.
setAlarmRuleTypeTreepathName
(
alarmRuleTypeTreepathName
.
substring
(
1
));
}
if
(
ConvertUtils
.
isNotEmpty
(
record
.
getAlarmCustomRuleTypeTreepath
())){
String
alarmCustomRuleTypeTreepath
=
record
.
getAlarmCustomRuleTypeTreepath
();
String
[]
customRuleTypeArray
=
alarmCustomRuleTypeTreepath
.
split
(
","
);
String
customRuleTypeTreepathName
=
""
;
for
(
String
type
:
customRuleTypeArray
)
{
customRuleTypeTreepathName
=
customRuleTypeTreepathName
+
"/"
+
customDictMap
.
get
(
type
);
}
if
(
StringUtils
.
isNotEmpty
(
customRuleTypeTreepathName
))
{
record
.
setAlarmCustomRuleTypeTreepathName
(
customRuleTypeTreepathName
.
substring
(
1
));
}
}
if
(
ConvertUtils
.
isNotEmpty
(
record
.
getAlarmRuleTypeTreepath
())){
String
alarmRuleTypeTreepath
=
record
.
getAlarmRuleTypeTreepath
();
String
[]
ruleTypeArray
=
alarmRuleTypeTreepath
.
split
(
","
);
String
alarmRuleTypeTreepathName
=
""
;
for
(
String
type
:
ruleTypeArray
)
{
alarmRuleTypeTreepathName
=
alarmRuleTypeTreepathName
+
"/"
+
typeDictMap
.
get
(
type
);
}
if
(
StringUtils
.
isNotEmpty
(
alarmRuleTypeTreepathName
))
{
record
.
setAlarmRuleTypeTreepathName
(
alarmRuleTypeTreepathName
.
substring
(
1
));
}
}
}
}
//添加流程信息
...
...
@@ -131,7 +134,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord
vo
.
setFlow
(
flow
);
}
}
return
pagelist
;
}
@Override
...
...
@@ -153,7 +156,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord
Map
<
String
,
Object
>
noResponseMap
=
new
HashMap
<
String
,
Object
>();
noResponseMap
.
put
(
"count"
,
noResponseCount
);
noResponseMap
.
put
(
"responseState"
,
"0"
);
resultMap
.
put
(
"totalMap"
,
totalMap
);
resultMap
.
put
(
"responseMap"
,
responseMap
);
resultMap
.
put
(
"noResponseMap"
,
noResponseMap
);
...
...
@@ -179,4 +182,4 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord
public
void
readAlarmBatch
(
AlarmRecordHistoryVO
alarmRecordHistoryVO
)
{
alarmCustomRecordHistoryMapper
.
readAlarmBatch
(
alarmRecordHistoryVO
);
}
}
\ No newline at end of file
}
...
...
sk-module-equipment/src/main/java/com/skua/modules/equipment/entity/EquipmentInfo.java
查看文件 @
35e5ee8
...
...
@@ -274,6 +274,13 @@ public class EquipmentInfo {
@ApiModelProperty
(
value
=
"报废日期"
)
private
String
scrapDate
;
@ApiModelProperty
(
value
=
"性能分数"
)
private
String
performanceScore
;
@ApiModelProperty
(
value
=
"设备健康度"
)
private
String
equipmentHealthLevel
;
@ApiModelProperty
(
value
=
"设备健康状态"
)
private
String
equipmentHealthStatus
;
//检测机构
@ApiModelProperty
(
value
=
"检测机构"
)
private
String
testingDepart
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论