| | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | return R.data(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "范围查询监测站点", notes = "范围查询监测站点") |
| | | @GetMapping(value = "/selectAttStBaseRadius") |
| | | public R selectAttStBaseRadius(AttStBase attStBase){ |
| | | if (StringUtil.isBlank(attStBase.getStationLongitude())) { |
| | | return R.fail("stationLongitude参数不能为空"); |
| | | } else if (StringUtil.isBlank(attStBase.getStationLatitude())) { |
| | | return R.fail("stationLatitude参数不能为空"); |
| | | } else if (StringUtil.isBlank(attStBase.getRadius()) ) { |
| | | return R.fail("radius参数不能为空"); |
| | | } |
| | | List<AttStBase> list = attStBaseService.selectAttStBaseRadius(attStBase); |
| | | return R.data(list); |
| | | } |
| | | |
| | | |
| | | |
| | | } |