|
@@ -143,6 +143,19 @@ public class MsgAlarmServiceImpl extends ServiceImpl<MsgAlarmMapper, MsgAlarm> i
|
|
|
return msgAlarmMapper.queryAlarmInfoByAfterTenMinute();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public IPage<MsgAlarm> queryPageHome(MsgAlarmVo msgAlarmVo) {
|
|
|
+ int pageNum = Integer.parseInt(msgAlarmVo.getPageNum().toString());
|
|
|
+ int pageSize = Integer.parseInt(msgAlarmVo.getPageSize().toString());
|
|
|
+ com.github.pagehelper.Page<MsgAlarm> page = PageHelper.startPage(pageNum, pageSize)
|
|
|
+ .doSelectPage(() -> msgAlarmMapper.selectMsgAlarmListHome(msgAlarmVo));
|
|
|
+ com.baomidou.mybatisplus.extension.plugins.pagination.Page<MsgAlarm> pageR =
|
|
|
+ new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(pageNum, pageSize);
|
|
|
+ pageR.setRecords(page.getResult());
|
|
|
+ pageR.setTotal(page.getTotal());
|
|
|
+ return pageR;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<BaseCameraManagement> getBaseCameraManagementsByLockedMsgAlarms(Integer isLock) {
|
|
|
// 查询MsgAlarm中isLock=的数据
|
|
@@ -156,15 +169,5 @@ public class MsgAlarmServiceImpl extends ServiceImpl<MsgAlarmMapper, MsgAlarm> i
|
|
|
QueryWrapper<BaseCameraManagement> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.in("camera_code", cameraCodeList);
|
|
|
return baseCameraManagementMapper.selectList(queryWrapper);
|
|
|
- public IPage<MsgAlarm> queryPageHome(MsgAlarmVo msgAlarmVo) {
|
|
|
- int pageNum = Integer.parseInt(msgAlarmVo.getPageNum().toString());
|
|
|
- int pageSize = Integer.parseInt(msgAlarmVo.getPageSize().toString());
|
|
|
- com.github.pagehelper.Page<MsgAlarm> page = PageHelper.startPage(pageNum, pageSize)
|
|
|
- .doSelectPage(() -> msgAlarmMapper.selectMsgAlarmListHome(msgAlarmVo));
|
|
|
- com.baomidou.mybatisplus.extension.plugins.pagination.Page<MsgAlarm> pageR =
|
|
|
- new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(pageNum, pageSize);
|
|
|
- pageR.setRecords(page.getResult());
|
|
|
- pageR.setTotal(page.getTotal());
|
|
|
- return pageR;
|
|
|
}
|
|
|
}
|