Merge remote-tracking branch 'origin/master'
正在显示
2 个修改的文件
包含
34 行增加
和
24 行删除
... | @@ -56,7 +56,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord | ... | @@ -56,7 +56,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord |
56 | private IAlarmCustomRuleRepositoryService alarmCustomRuleRepositoryService; | 56 | private IAlarmCustomRuleRepositoryService alarmCustomRuleRepositoryService; |
57 | @Autowired | 57 | @Autowired |
58 | private IAlarmRuleConfigPublicTabService alarmRuleConfigPublicTabService; | 58 | private IAlarmRuleConfigPublicTabService alarmRuleConfigPublicTabService; |
59 | 59 | ||
60 | @Override | 60 | @Override |
61 | public Page<AlarmRecordHistoryVO> queryCustomPageList(Page<AlarmRecordHistoryVO> pageList, AlarmRecordHistoryVO alarmRecordHistoryVO) { | 61 | public Page<AlarmRecordHistoryVO> queryCustomPageList(Page<AlarmRecordHistoryVO> pageList, AlarmRecordHistoryVO alarmRecordHistoryVO) { |
62 | Page<AlarmRecordHistoryVO> pagelist = pageList.setRecords(alarmCustomRecordHistoryMapper.queryCustomPageList(pageList, alarmRecordHistoryVO)); | 62 | Page<AlarmRecordHistoryVO> pagelist = pageList.setRecords(alarmCustomRecordHistoryMapper.queryCustomPageList(pageList, alarmRecordHistoryVO)); |
... | @@ -76,29 +76,32 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord | ... | @@ -76,29 +76,32 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord |
76 | for(AlarmRuleConfigPublicTab alarmRuleTypeInfo : alarmRuleTypeList) { | 76 | for(AlarmRuleConfigPublicTab alarmRuleTypeInfo : alarmRuleTypeList) { |
77 | typeDictMap.put(alarmRuleTypeInfo.getId(), alarmRuleTypeInfo.getTabName()); | 77 | typeDictMap.put(alarmRuleTypeInfo.getId(), alarmRuleTypeInfo.getTabName()); |
78 | } | 78 | } |
79 | 79 | ||
80 | List<AlarmRecordHistoryVO> recordList = pagelist.getRecords(); | 80 | List<AlarmRecordHistoryVO> recordList = pagelist.getRecords(); |
81 | if(recordList!=null&&recordList.size()>0) { | 81 | if(recordList!=null&&recordList.size()>0) { |
82 | for(AlarmRecordHistoryVO record : recordList) { | 82 | for(AlarmRecordHistoryVO record : recordList) { |
83 | String alarmCustomRuleTypeTreepath = record.getAlarmCustomRuleTypeTreepath(); | 83 | if(ConvertUtils.isNotEmpty(record.getAlarmCustomRuleTypeTreepath())){ |
84 | String[] customRuleTypeArray = alarmCustomRuleTypeTreepath.split(","); | 84 | String alarmCustomRuleTypeTreepath = record.getAlarmCustomRuleTypeTreepath(); |
85 | String customRuleTypeTreepathName = ""; | 85 | String[] customRuleTypeArray = alarmCustomRuleTypeTreepath.split(","); |
86 | for(String type : customRuleTypeArray) { | 86 | String customRuleTypeTreepathName = ""; |
87 | customRuleTypeTreepathName = customRuleTypeTreepathName+"/"+customDictMap.get(type); | 87 | for(String type : customRuleTypeArray) { |
88 | } | 88 | customRuleTypeTreepathName = customRuleTypeTreepathName+"/"+customDictMap.get(type); |
89 | if(StringUtils.isNotEmpty(customRuleTypeTreepathName)) { | 89 | } |
90 | record.setAlarmCustomRuleTypeTreepathName(customRuleTypeTreepathName.substring(1)); | 90 | if(StringUtils.isNotEmpty(customRuleTypeTreepathName)) { |
91 | } | 91 | record.setAlarmCustomRuleTypeTreepathName(customRuleTypeTreepathName.substring(1)); |
92 | 92 | } | |
93 | String alarmRuleTypeTreepath = record.getAlarmRuleTypeTreepath(); | 93 | } |
94 | String[] ruleTypeArray = alarmRuleTypeTreepath.split(","); | 94 | if(ConvertUtils.isNotEmpty(record.getAlarmRuleTypeTreepath())){ |
95 | String alarmRuleTypeTreepathName = ""; | 95 | String alarmRuleTypeTreepath = record.getAlarmRuleTypeTreepath(); |
96 | for(String type : ruleTypeArray) { | 96 | String[] ruleTypeArray = alarmRuleTypeTreepath.split(","); |
97 | alarmRuleTypeTreepathName = alarmRuleTypeTreepathName+"/"+typeDictMap.get(type); | 97 | String alarmRuleTypeTreepathName = ""; |
98 | } | 98 | for(String type : ruleTypeArray) { |
99 | if(StringUtils.isNotEmpty(alarmRuleTypeTreepathName)) { | 99 | alarmRuleTypeTreepathName = alarmRuleTypeTreepathName+"/"+typeDictMap.get(type); |
100 | record.setAlarmRuleTypeTreepathName(alarmRuleTypeTreepathName.substring(1)); | 100 | } |
101 | } | 101 | if(StringUtils.isNotEmpty(alarmRuleTypeTreepathName)) { |
102 | record.setAlarmRuleTypeTreepathName(alarmRuleTypeTreepathName.substring(1)); | ||
103 | } | ||
104 | } | ||
102 | } | 105 | } |
103 | } | 106 | } |
104 | //添加流程信息 | 107 | //添加流程信息 |
... | @@ -131,7 +134,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord | ... | @@ -131,7 +134,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord |
131 | vo.setFlow(flow); | 134 | vo.setFlow(flow); |
132 | } | 135 | } |
133 | } | 136 | } |
134 | 137 | ||
135 | return pagelist; | 138 | return pagelist; |
136 | } | 139 | } |
137 | @Override | 140 | @Override |
... | @@ -153,7 +156,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord | ... | @@ -153,7 +156,7 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord |
153 | Map<String,Object> noResponseMap = new HashMap<String,Object>(); | 156 | Map<String,Object> noResponseMap = new HashMap<String,Object>(); |
154 | noResponseMap.put("count", noResponseCount); | 157 | noResponseMap.put("count", noResponseCount); |
155 | noResponseMap.put("responseState", "0"); | 158 | noResponseMap.put("responseState", "0"); |
156 | 159 | ||
157 | resultMap.put("totalMap", totalMap); | 160 | resultMap.put("totalMap", totalMap); |
158 | resultMap.put("responseMap", responseMap); | 161 | resultMap.put("responseMap", responseMap); |
159 | resultMap.put("noResponseMap", noResponseMap); | 162 | resultMap.put("noResponseMap", noResponseMap); |
... | @@ -179,4 +182,4 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord | ... | @@ -179,4 +182,4 @@ public class AlarmCustomRecordHistoryServiceImpl extends ServiceImpl<AlarmRecord |
179 | public void readAlarmBatch(AlarmRecordHistoryVO alarmRecordHistoryVO) { | 182 | public void readAlarmBatch(AlarmRecordHistoryVO alarmRecordHistoryVO) { |
180 | alarmCustomRecordHistoryMapper.readAlarmBatch(alarmRecordHistoryVO); | 183 | alarmCustomRecordHistoryMapper.readAlarmBatch(alarmRecordHistoryVO); |
181 | } | 184 | } |
182 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
185 | } | ... | ... |
... | @@ -274,6 +274,13 @@ public class EquipmentInfo { | ... | @@ -274,6 +274,13 @@ public class EquipmentInfo { |
274 | @ApiModelProperty(value = "报废日期") | 274 | @ApiModelProperty(value = "报废日期") |
275 | private String scrapDate; | 275 | private String scrapDate; |
276 | 276 | ||
277 | @ApiModelProperty(value = "性能分数") | ||
278 | private String performanceScore; | ||
279 | @ApiModelProperty(value = "设备健康度") | ||
280 | private String equipmentHealthLevel; | ||
281 | @ApiModelProperty(value = "设备健康状态") | ||
282 | private String equipmentHealthStatus; | ||
283 | |||
277 | //检测机构 | 284 | //检测机构 |
278 | @ApiModelProperty(value = "检测机构") | 285 | @ApiModelProperty(value = "检测机构") |
279 | private String testingDepart; | 286 | private String testingDepart; | ... | ... |
-
请 注册 或 登录 后发表评论