| | |
| | | package com.stylefeng.guns.modular.crossCity.controller; |
| | | |
| | | |
| | | import com.stylefeng.guns.modular.crossCity.model.Site; |
| | | import com.stylefeng.guns.modular.crossCity.server.ISiteService; |
| | | import com.stylefeng.guns.modular.crossCity.warpper.LocationWarpper; |
| | | import com.stylefeng.guns.modular.crossCity.warpper.SiteWarpper; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据经纬度查询所在站点(可能为空,命中多个时返回第一个) |
| | | */ |
| | | @ResponseBody |
| | | @RequestMapping(value = "/base/site/querySiteByLonLat", method = RequestMethod.POST) |
| | | @ApiOperation(value = "根据经纬度获取所在站点", tags = {"用户端-跨城"}, notes = "可能为空;命中多个时返回第一个") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "经度", name = "lon", required = true, dataType = "double"), |
| | | @ApiImplicitParam(value = "纬度", name = "lat", required = true, dataType = "double") |
| | | }) |
| | | public ResultUtil<Site> querySiteByLonLat(Double lon, Double lat){ |
| | | try { |
| | | return ResultUtil.success(siteService.querySiteByLonLat(lon, lat)); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |