Commit 7138c52c authored by lisong's avatar lisong

分页功能失效bug

parent 2c03f454
......@@ -47,7 +47,7 @@ public interface PointMapper extends BaseMapper {
List<PointInputItemVo> getPointClassInputItemById(@Param(value = "pointId") Long pointId);
List<Point> listByParams(@Param(value = "pointParams") PointQueryVo pointParams);
List<Point> listByParams(@Param(value = "pointParams") PointQueryVo pointParams, int number, int size);
int listByParamsCount(PointQueryVo pointParams);
......
......@@ -2121,7 +2121,8 @@ public class PointServiceImpl implements IPointService {
/*13迭代新增列表方法*/
public IPage<PointVo> queryPointInfoNew(PointQueryVo pointParams, int current ,int size, String loginOrgCode) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Object> page = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(current, size);
List<Point> pointPage = pointMapper.listByParams(pointParams);
current = (current - 1) * size;
List<Point> pointPage = pointMapper.listByParams(pointParams, current, size);
int num = pointMapper.listByParamsCount(pointParams);
List<PointVo> pointVoList = new ArrayList<>();
for (Point point : pointPage) {
......
......@@ -111,6 +111,7 @@
</if>
</where>
ORDER BY p.id DESC
LIMIT #{number}, #{size}
</select>
<select id="listByParamsCount" resultType="int">
......
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