| | |
| | | @ApiOperation(value = "根据X,Y值查询地址", notes = "根据X,Y值查询地址") |
| | | @ApiOperationSupport(order = 14) |
| | | @GetMapping("/selectCoords") |
| | | public Result selectCoords(@RequestParam(value = "x") Integer x, @RequestParam(value = "y") Integer y, @RequestParam(value = "isSuYuan") Integer isSuYuan) { |
| | | public Result selectCoords(@RequestParam(value = "x") Integer x, @RequestParam(value = "y") Integer y, @RequestParam(value = "isSuYuan") Integer isSuYuan) { |
| | | if (isSuYuan < 1) { |
| | | x = x / 10; |
| | | y = y / 10; |
| | |
| | | |
| | | return Result.OK(suYuanService.selectRects(x, y)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据名称查询溯源ID", notes = "根据名称查询溯源ID") |
| | | @ApiOperationSupport(order = 16) |
| | | @GetMapping("/selectSuYuanIdByName") |
| | | public Result selectSuYuanIdByName(@RequestParam(value = "name") String name) { |
| | | if (null == name || name.length() == 0) return Result.OK(null); |
| | | |
| | | return Result.OK(suYuanService.selectSuYuanIdByName(name)); |
| | | } |
| | | } |