Commit d98a8822 by 向延琳

改为post请求

1 parent 4bdd634e
......@@ -31,7 +31,10 @@ import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
......@@ -134,8 +137,9 @@ public class VehicleMonitorController {
@ApiResponses({
@ApiResponse(code = 200, message = "OK", response = StayPointListVO.class),
})
@GetMapping("/stayPointList")
public R<List<StayPointListVO>> queryStayPointList(StayPointSearch search) {
@RequestMapping(value = "/stayPointList")
@ResponseBody
public R<List<StayPointListVO>> queryStayPointList(@RequestBody StayPointSearch search) {
List<StayPointListVO> stayPointList = vehicleMonitorService.getStayPointList(search);
return R.ok().data(stayPointList);
}
......@@ -143,9 +147,10 @@ public class VehicleMonitorController {
/**
* 设备停留点导出
*/
@GetMapping("/exportStayPoint")
@ApiOperation(value = "设备停留点导出")
public R<String> exportStayPointList(StayPointSearch search) {
@RequestMapping(value = "/exportStayPoint")
@ResponseBody
public R<String> exportStayPointList(@RequestBody StayPointSearch search) {
long t1 = System.currentTimeMillis();
String fileName = FdfsUtils.getFileName("停留点");
List<StayPointListExport> stayPointListExports = vehicleMonitorService.exportStayPointList(search);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!