|
@@ -13,6 +13,7 @@ import org.springframework.stereotype.Service;
|
13
|
13
|
|
14
|
14
|
import java.util.List;
|
15
|
15
|
import java.util.Map;
|
|
16
|
+import java.util.stream.Collectors;
|
16
|
17
|
|
17
|
18
|
/**
|
18
|
19
|
* <p>
|
|
@@ -35,12 +36,14 @@ public class TpEquipmentServiceImpl extends ServiceImpl<TpEquipmentMapper, TpEqu
|
35
|
36
|
page.setCurrent(pageNum);
|
36
|
37
|
page.setSize(pageSize);
|
37
|
38
|
IPage<TpEquipment> equipmentIPage = tpEquipmentMapper.selectMonitoringByCommunityId(page,communityId);
|
|
39
|
+ List<TpEquipment> records = equipmentIPage.getRecords();
|
|
40
|
+ records = records.stream().filter(e-> e.getMonitoringUrl().contains("m3u8")).collect(Collectors.toList());
|
38
|
41
|
|
39
|
42
|
Map<String, Object> map = Maps.newHashMap();
|
40
|
43
|
map.put("pageNum", equipmentIPage.getCurrent());
|
41
|
44
|
map.put("pageSize", equipmentIPage.getSize());
|
42
|
45
|
map.put("total", equipmentIPage.getTotal());
|
43
|
|
- map.put("list", equipmentIPage.getRecords());
|
|
46
|
+ map.put("list", records);
|
44
|
47
|
responseBean.addSuccess(map);
|
45
|
48
|
return responseBean;
|
46
|
49
|
}
|