|
|
@ -401,7 +401,7 @@ public class VideoController extends BaseController { |
|
|
|
public Object nearCamPileNum(@ApiParam(value = "桩号", name = "pileNum", required = true) String pileNum) throws HttpException, IOException { |
|
|
|
|
|
|
|
// 获取济菏运管中心相机信息
|
|
|
|
JSONObject camInfo = getCamByDept("1301730"); |
|
|
|
/*JSONObject camInfo = getCamByDept("1301730"); |
|
|
|
|
|
|
|
if (!camInfo.containsKey("data")) { |
|
|
|
return camInfo; |
|
|
@ -435,8 +435,17 @@ public class VideoController extends BaseController { |
|
|
|
.filter(item -> "1".equals(item.get("camOrientation")) && Integer.parseInt(item.get("distance").toString()) < 2000) |
|
|
|
.sorted(comparing(item -> Integer.parseInt(item.get("distance").toString()))) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
result.put("downCamera",downCameraList); |
|
|
|
result.put("downCamera",downCameraList);*/ |
|
|
|
|
|
|
|
Map<String,Object> result = new HashMap<>(); |
|
|
|
|
|
|
|
Integer pileNumDistance = pileNumTransformMetre(pileNum); |
|
|
|
String startMileage = String.valueOf(pileNumDistance - 2000); |
|
|
|
String endMileage = String.valueOf(pileNumDistance + 2000); |
|
|
|
List<DcDevice> upCameraList = iDcDeviceService.selectNearCamPile("1",startMileage,endMileage); |
|
|
|
List<DcDevice> downCameraList = iDcDeviceService.selectNearCamPile("3",startMileage,endMileage); |
|
|
|
result.put("upCamera",upCameraList); |
|
|
|
result.put("downCamera",downCameraList); |
|
|
|
|
|
|
|
return AjaxResult.success(result); |
|
|
|
} |
|
|
|