Commit f07cc362 authored by chenzhao's avatar chenzhao

修改bug

parent 54b8274f
...@@ -199,7 +199,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec ...@@ -199,7 +199,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
@Override @Override
public org.springframework.data.domain.Page<AlarmListDataVO> listAlarmsPage(CommonPageInfoParam param) { public org.springframework.data.domain.Page<AlarmListDataVO> listAlarmsPage(CommonPageInfoParam param) {
Page page = new Page(param.getPageNumber(), param.getPageSize()); Page page = new Page(param.getPageNumber()-1,(param.getPageNumber()-1) * param.getPageSize());
Page<Map<String, Object>> mybatisResult = this.baseMapper.pageAlarmsInfo(page, param); Page<Map<String, Object>> mybatisResult = this.baseMapper.pageAlarmsInfo(page, param);
List<AlarmListDataVO> res = new ArrayList<>(); List<AlarmListDataVO> res = new ArrayList<>();
if (mybatisResult.getSize() > 0) { if (mybatisResult.getSize() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment