|
@@ -388,7 +388,7 @@ public class BaseCameraManagementServiceImpl extends ServiceImpl<BaseCameraManag
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public AjaxResult nonContactAlarmCamera() {
|
|
|
+ public AjaxResult nonContactAlarmCamera(String cameraCode) {
|
|
|
List<BaseCameraManagement> list = new ArrayList<>();
|
|
|
QueryWrapper<MsgAlarm> wrapper = new QueryWrapper<>();
|
|
|
wrapper.eq("is_release", 2);
|
|
@@ -402,6 +402,9 @@ public class BaseCameraManagementServiceImpl extends ServiceImpl<BaseCameraManag
|
|
|
camera.eq(BaseCameraManagement::getRailwayCode, msgAlarm.getRailwayCode());
|
|
|
camera.eq(BaseCameraManagement::getOnline, 2);
|
|
|
camera.eq(BaseCameraManagement::getEnableOrNot, 1);
|
|
|
+ if (StringUtils.isNotEmpty(cameraCode)){
|
|
|
+ wrapper.eq("camera_code", cameraCode);
|
|
|
+ }
|
|
|
List<BaseCameraManagement> baseCameraManagementList = this.list(camera);
|
|
|
if (!ObjectUtils.isEmpty(baseCameraManagementList)) {
|
|
|
list.addAll(baseCameraManagementList);
|