Commit 7e1934e3 authored by suhuiguang's avatar suhuiguang

feat(重要提醒):设备新增提醒开发

1.重要提醒设备开发联调测试 2.使用登记审核完成后更新管道汇总表字段 2管道es增加使用登记证编号
parent b062f2bd
......@@ -44,6 +44,7 @@ public abstract class DefaultReminder implements IReminderHandler {
public Integer getReminderLevel(String bizId) {
ReminderFieldDiff reminderFieldDiff = applicationContext.getBean(ReminderFieldDiff.class);
MatchItemDto matchItemDto = setMatchItem(bizId) == null ? MatchItemDto.builder().build() : setMatchItem(bizId);
matchItemDto.setBizType(supportBizType());
List<ReminderItemDto> equips = reminderFieldDiff.getReminderItemList(realtimeParse(bizId), matchItemDto);
List<ReminderField> items = equips.stream().flatMap(s -> s.getItems().stream()).collect(Collectors.toList());
return items.stream().max(Comparator.comparingInt(ReminderField::getSId)).map(ReminderField::getSId).orElse(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment