|
@@ -237,16 +237,10 @@ public class CameraServiceImpl extends ServiceImpl<ICameraMapper, Camera> implem
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if(responseCamera.getType() == 10){
|
|
|
|
- Map<String, String> params = new HashMap<>();
|
|
|
|
- params.put("snCode", responseCamera.getSnCode());
|
|
|
|
- responseCamera.setSceneNum(fdkkLaserService.getLaserSceneNum(params));
|
|
|
|
- }else{
|
|
|
|
- Integer sceneNum = sceneNumMap.get(responseCamera.getId()) == null ? 0 : Math.toIntExact(sceneNumMap.get(responseCamera.getId()).getCount());
|
|
|
|
- String lastTime = sceneNumMap.get(responseCamera.getId()) == null ? "" : sceneNumMap.get(responseCamera.getId()).getLastTime();
|
|
|
|
- responseCamera.setSceneNum(sceneNum);
|
|
|
|
- responseCamera.setLastTime(lastTime);
|
|
|
|
- }
|
|
|
|
|
|
+ Integer sceneNum = sceneNumMap.get(responseCamera.getId()) == null ? 0 : Math.toIntExact(sceneNumMap.get(responseCamera.getId()).getCount());
|
|
|
|
+ String lastTime = sceneNumMap.get(responseCamera.getId()) == null ? "" : sceneNumMap.get(responseCamera.getId()).getLastTime();
|
|
|
|
+ responseCamera.setSceneNum(sceneNum);
|
|
|
|
+ responseCamera.setLastTime(lastTime);
|
|
}
|
|
}
|
|
return PageInfo.PageInfo(page);
|
|
return PageInfo.PageInfo(page);
|
|
}
|
|
}
|