| | |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载点分析") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "wkt", value = "点WKT", dataType = "String", example = "") |
| | | }) |
| | | @GetMapping(value = "/downloadByPoint") |
| | | public void downloadByPoint(String wkt, HttpServletResponse res) { |
| | | try { |
| | | // ... |
| | | |
| | | String filePath = "生成文件的路径"; |
| | | WebHelper.download(filePath, "文件名", res); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载线分析") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "wkt", value = "线WKT", dataType = "String", example = "") |
| | | }) |
| | | @GetMapping(value = "/downloadByPolyline") |
| | | public void downloadByPolyline(String wkt, HttpServletResponse res) { |
| | | try { |
| | | // ... |
| | | |
| | | String filePath = "生成文件的路径"; |
| | | WebHelper.download(filePath, "文件名", res); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载面分析") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "wkt", value = "面WKT", dataType = "String", example = "") |
| | | }) |
| | | @GetMapping(value = "/downloadByPolygon") |
| | | public void downloadByPolygon(String wkt, HttpServletResponse res) { |
| | | try { |
| | | // ... |
| | | |
| | | String filePath = "生成文件的路径"; |
| | | WebHelper.download(filePath, "文件名", res); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | } |