Commit d98a8822 by 向延琳

改为post请求

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