环境监测页面部分接口

This commit is contained in:
fl 2025-04-24 10:50:12 +08:00
parent afcde35ee8
commit ef1842db4f
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public class TowerCraneDetectionController extends BaseController {
List<ConstInfoVo> collectDevVoList = service.getConstDeviceList(constInfoVo); List<ConstInfoVo> collectDevVoList = service.getConstDeviceList(constInfoVo);
return success(collectDevVoList); return success(collectDevVoList);
}catch (Exception e){ }catch (Exception e){
log.error("查询塔吊设备列表失败",e.getMessage()); log.error("查询塔吊设备列表失败\n{}",e.getMessage());
return error("查询塔吊设备列表失败"); return error("查询塔吊设备列表失败");
} }
} }
@ -53,7 +53,7 @@ public class TowerCraneDetectionController extends BaseController {
TowerCraneInfoVo vo = service.getConstDeviceMsgById(constInfoVo); TowerCraneInfoVo vo = service.getConstDeviceMsgById(constInfoVo);
return success(vo); return success(vo);
}catch (Exception e){ }catch (Exception e){
log.error("查询塔吊设备信息失败",e.getMessage()); log.error("查询塔吊设备信息失败\n{}",e.getMessage());
return error("查询塔吊设备信息失败"); return error("查询塔吊设备信息失败");
} }
} }
@ -65,7 +65,7 @@ public class TowerCraneDetectionController extends BaseController {
try { try {
return service.getTowerCraneRunMsgById(constInfoVo); return service.getTowerCraneRunMsgById(constInfoVo);
}catch (Exception e){ }catch (Exception e){
log.error("获取塔吊实时运行信息失败",e.getMessage()); log.error("获取塔吊实时运行信息失败\n{}",e.getMessage());
return error("塔吊实时运行信息失败"); return error("塔吊实时运行信息失败");
} }
} }
@ -77,7 +77,7 @@ public class TowerCraneDetectionController extends BaseController {
List<DeviceAlarmVo> deviceAlarmVoList = service.getTowerCraneAlarmList(constInfoVo); List<DeviceAlarmVo> deviceAlarmVoList = service.getTowerCraneAlarmList(constInfoVo);
return success(deviceAlarmVoList); return success(deviceAlarmVoList);
}catch (Exception e){ }catch (Exception e){
log.error("查询塔吊报警信息失败",e.getMessage()); log.error("查询塔吊报警信息失败\n{}",e.getMessage());
return error("查询塔吊报警信息失败"); return error("查询塔吊报警信息失败");
} }
} }