xieb
2024-05-07 5e972eb9928c39b5abbdfd35e2a0aeff40876e7d
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sjztmd/controller/AttStBaseController.java
@@ -11,6 +11,7 @@
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;
@@ -57,6 +58,20 @@
      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);
   }
}