|
@@ -1,5 +1,6 @@
|
|
|
package com.sw.patroleditor.controller;
|
|
|
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import com.sw.patroleditor.common.ResultData;
|
|
|
import com.sw.patroleditor.domain.vo.PointVO;
|
|
|
import com.sw.patroleditor.domain.vo.TargetVO;
|
|
@@ -7,10 +8,7 @@ import com.sw.patroleditor.exception.ErrorCode;
|
|
|
import com.sw.patroleditor.service.LocationService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@@ -67,4 +65,18 @@ public class LocationController {
|
|
|
return ResultData.fail(ErrorCode.FAIL);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询停靠点列表")
|
|
|
+ @GetMapping("/getPointList")
|
|
|
+ public ResultData<PageInfo> getPointList(Integer pageNum, Integer pageSize) {
|
|
|
+ PageInfo list = locationService.getPointList(pageNum, pageSize);
|
|
|
+ return ResultData.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询巡检点列表")
|
|
|
+ @GetMapping("/getTargetList")
|
|
|
+ public ResultData<PageInfo> getTargetList(Integer pageNum, Integer pageSize, Integer pointId) {
|
|
|
+ PageInfo list = locationService.getTargetList(pageNum, pageSize, pointId);
|
|
|
+ return ResultData.success(list);
|
|
|
+ }
|
|
|
}
|