| | |
| | | return new Response().setII(1,"更新成功"); |
| | | } |
| | | |
| | | @PutMapping("batch") |
| | | @ApiOperation(value = "更新批量") |
| | | public Response updateBatch(@RequestBody List<Station3D> station3DList){ |
| | | service.updateBatch(station3DList); |
| | | return new Response().setII(1,"更新成功"); |
| | | } |
| | | |
| | | @GetMapping("byId") |
| | | @ApiOperation(value = "查询站点-根据记录id") |
| | | public Response<Station3D> getById(@RequestParam int id){ |
| | |
| | | public Response pictureLoad(HttpServletRequest request){ |
| | | /*=========图片保存===========*/ |
| | | ApplicationHome applicationHome = new ApplicationHome(getClass()); |
| | | File jarFile = applicationHome.getSource(); |
| | | File jarFile = applicationHome.getDir(); |
| | | //存储3D站点图片的文件夹 |
| | | |
| | | //开发 |
| | | String fileDirName = jarFile.getParentFile().toString()+File.separator+"fg_photo_3DStation"; |
| | | //打包 |
| | | //String fileDirName = jarFile.toString()+File.separator+"fg_photo_3DStation"; |
| | | |
| | | //图片的Url |
| | | File file = new File(fileDirName); |