| | |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | @ResponseBody |
| | | @RequestMapping(value = "/base/site/areaMonitoring1", method = RequestMethod.POST) |
| | | @ApiOperation(value = "判断一个点是是否在区域范围内", tags = {"用户端-跨城"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "线路id", name = "lineId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "行政区域编号(510100)", name = "code", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "经纬度", name = "lonLat", required = true, dataType = "string") |
| | | }) |
| | | public ResultUtil areaMonitoring1(Integer lineId, Integer code, String lonLat){ |
| | | try { |
| | | boolean b = siteService.areaMonitoring1(lineId, code, lonLat); |
| | | return ResultUtil.success(b ? 1 : -1); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |