|
|
@ -58,6 +58,23 @@ public class YDeviceService extends ServiceImpl<YDeviceMapper, Device> { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<Device> getSxtList() { |
|
|
|
QueryWrapper<Device> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
|
|
|
queryWrapper.eq("type", "1"); //1 摄像头
|
|
|
|
queryWrapper.eq("isDelete", 0); |
|
|
|
|
|
|
|
List<Device> athleteBOIPage = null; |
|
|
|
try { |
|
|
|
athleteBOIPage = baseMapper.selectList(queryWrapper); |
|
|
|
} catch (Exception e) { |
|
|
|
System.out.println(e); |
|
|
|
athleteBOIPage = null; |
|
|
|
} |
|
|
|
return athleteBOIPage; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public IPage<Device> getDeviceStatusPage(Map<String, String> searchVo, PageVo pageVo) { |
|
|
|
String url = "https://api2.hik-cloud.com/api/v1/open/basic/devices/list?groupNo=A1181&pageNo=" + pageVo.getCurrent() + "&pageSize=" + pageVo.getSize(); |
|
|
|
String result = ""; |
|
|
|