From f3e6002e170d92ed1d53960a798081b0a15b9718 Mon Sep 17 00:00:00 2001 From: wangshilong Date: Fri, 7 Mar 2025 18:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/isu/gaswellwatch/controller/DeviceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/isu/gaswellwatch/controller/DeviceController.java b/src/main/java/com/isu/gaswellwatch/controller/DeviceController.java index 6887b99..dd16517 100644 --- a/src/main/java/com/isu/gaswellwatch/controller/DeviceController.java +++ b/src/main/java/com/isu/gaswellwatch/controller/DeviceController.java @@ -41,7 +41,7 @@ public class DeviceController { * @return */ @GetMapping(value = "/gasStation") - public List queryGasStationList(@RequestParam Long blockId, + public List queryGasStationList(@RequestParam(required = false) Long blockId, @RequestParam String gasStationName) { return this.deviceService.queryGasStationList(blockId, gasStationName); }