|
@@ -168,6 +168,7 @@ public class GroupAlarmRuleController {
|
|
@PostMapping("/getAlarmItem")
|
|
@PostMapping("/getAlarmItem")
|
|
public CommonResult<PageList<SimpleObjVO>> getAlarmItem(@RequestBody CheckAlarmItemDTO checkAlarmItemDTO) throws Exception {
|
|
public CommonResult<PageList<SimpleObjVO>> getAlarmItem(@RequestBody CheckAlarmItemDTO checkAlarmItemDTO) throws Exception {
|
|
QueryAlarmItemDTO queryAlarmItemDTO = new QueryAlarmItemDTO();
|
|
QueryAlarmItemDTO queryAlarmItemDTO = new QueryAlarmItemDTO();
|
|
|
|
+ queryAlarmItemDTO.setCategory(checkAlarmItemDTO.getCategory());
|
|
DmpResult<List<AlarmItem>> dmpResult = alarmItemService.query(queryAlarmItemDTO);
|
|
DmpResult<List<AlarmItem>> dmpResult = alarmItemService.query(queryAlarmItemDTO);
|
|
List<GroupAlarmRule> existAlarmItem = groupAlarmRuleService.getExistAlarmItem(checkAlarmItemDTO.getGroupId());
|
|
List<GroupAlarmRule> existAlarmItem = groupAlarmRuleService.getExistAlarmItem(checkAlarmItemDTO.getGroupId());
|
|
List<String> alarmItemCodes = existAlarmItem.stream().map(GroupAlarmRule::getAlarmItemCode).collect(Collectors.toList());
|
|
List<String> alarmItemCodes = existAlarmItem.stream().map(GroupAlarmRule::getAlarmItemCode).collect(Collectors.toList());
|