Commit f9e47ddb authored by chenzhao's avatar chenzhao

修改bug

parent edd343b1
......@@ -199,7 +199,10 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
@Override
public org.springframework.data.domain.Page<AlarmListDataVO> listAlarmsPage(CommonPageInfoParam param) {
Page page = new Page(param.getPageNumber()-1,(param.getPageNumber()-1) * param.getPageSize());
Page page = new Page(param.getPageNumber(), param.getPageSize());
page.setCurrent(param.getPageNumber() == 1 ? 0 : param.getPageNumber());
page.setSize(param.getPageNumber() * param.getPageSize());
Page<Map<String, Object>> mybatisResult = this.baseMapper.pageAlarmsInfo(page, param);
List<AlarmListDataVO> res = new ArrayList<>();
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