Commit ea053bc5 authored by H2T's avatar H2T

管控清单接口修改-bug修改

parent cab79c1f
......@@ -31,6 +31,7 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import liquibase.pro.packaged.S;
import org.apache.commons.lang3.StringUtils;
import org.aspectj.weaver.ast.Var;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -886,8 +887,10 @@ public class RouteController extends AbstractBaseController {
@RequestParam(value = "pointNo", required = false) String pointNo){
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Point> pointPage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>();
number = (number -1) * size;
pointPage.setTotal(pointMapper.countRoutePointList(name, pointNo));
pointPage.setRecords(pointMapper.selectRoutePointList(number, size, name, pointNo,routeId));
List<Point> points = pointMapper.selectRoutePointList(number, size, name, pointNo, routeId);
pointPage.setTotal(points.size());
pointPage.setRecords(points);
return CommonResponseUtil.success(pointPage);
}
}
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