Commit b6b3cf59 authored by H2T's avatar H2T

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

parent ea053bc5
...@@ -887,10 +887,8 @@ public class RouteController extends AbstractBaseController { ...@@ -887,10 +887,8 @@ public class RouteController extends AbstractBaseController {
@RequestParam(value = "pointNo", required = false) String pointNo){ @RequestParam(value = "pointNo", required = false) String pointNo){
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Point> pointPage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>(); com.baomidou.mybatisplus.extension.plugins.pagination.Page<Point> pointPage = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>();
number = (number -1) * size; number = (number -1) * size;
pointPage.setTotal(pointMapper.countRoutePointList(name, pointNo,routeId));
List<Point> points = pointMapper.selectRoutePointList(number, size, name, pointNo, routeId); pointPage.setRecords(pointMapper.selectRoutePointList(number, size, name, pointNo,routeId));
pointPage.setTotal(points.size());
pointPage.setRecords(points);
return CommonResponseUtil.success(pointPage); return CommonResponseUtil.success(pointPage);
} }
} }
...@@ -157,7 +157,7 @@ public interface PointMapper extends BaseMapper { ...@@ -157,7 +157,7 @@ public interface PointMapper extends BaseMapper {
List<Map<String, Object>> getPointRefItem(List<Long> list); List<Map<String, Object>> getPointRefItem(List<Long> list);
List<Point> selectRoutePointList(Long number, Long size, String name, String pointNo,String routeId); List<Point> selectRoutePointList(Long number, Long size, String name, String pointNo,String routeId);
Integer countRoutePointList(String name, String pointNo); Integer countRoutePointList(String name, String pointNo,String routeId);
List<RoutePoint> getRoutePoint(@Param("ids") List<Long> ids); List<RoutePoint> getRoutePoint(@Param("ids") List<Long> ids);
List<Point> findByName(@Param(value = "pointName") String pointName, @Param(value = "pointId") String pointId); List<Point> findByName(@Param(value = "pointName") String pointName, @Param(value = "pointId") String pointId);
......
...@@ -1462,6 +1462,13 @@ ...@@ -1462,6 +1462,13 @@
<select id="countRoutePointList" resultType="java.lang.Integer"> <select id="countRoutePointList" resultType="java.lang.Integer">
SELECT count(1) from p_point SELECT count(1) from p_point
WHERE route_id is null and is_delete = 0 WHERE route_id is null and is_delete = 0
<if test="routeId != null and routeId != ''">
AND id not in (
select point_id
from p_route_point
where route_id = #{routeId}
)
</if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND name like concat('%', #{name}, '%') AND name like concat('%', #{name}, '%')
</if> </if>
......
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