Commit 82516540 authored by honghy's avatar honghy Committed by wux

【后台-会员等级】查询列表翻页报“系统异常”

parent 47feb235
......@@ -70,10 +70,10 @@ public class MemberUserLevelConfigServiceImpl extends AbstractService<MemberUser
wrapper.between(MemberUserLevelConfigDO::getEnableDate, query.getBeginTime(), query.getEndTime());
}
wrapper.eq(MemberUserLevelConfigDO::getDeleted, 0);
Long total = memberUserLevelConfigMapper.selectCount(wrapper);
wrapper.last(String.format("order by id desc limit %s, %s", start, size));
List<MemberUserLevelConfigDO> list = this.list(wrapper);
List<MemberUserLevelConfigBaseRespVO> result = list.stream().map(i -> BeanUtil.copyProperties(i, MemberUserLevelConfigBaseRespVO.class)).collect(Collectors.toList());
Long total = memberUserLevelConfigMapper.selectCount(wrapper);
return new PageResult<>(result, total, query.getPageSize(), query.getPageNo(), (total + query.getPageSize() - 1) / query.getPageSize());
}
......
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