非必填

This commit is contained in:
wangshilong 2025-03-07 18:09:38 +08:00
parent b1df896107
commit f3e6002e17
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class DeviceController {
* @return
*/
@GetMapping(value = "/gasStation")
public List<GasStationVO> queryGasStationList(@RequestParam Long blockId,
public List<GasStationVO> queryGasStationList(@RequestParam(required = false) Long blockId,
@RequestParam String gasStationName) {
return this.deviceService.queryGasStationList(blockId, gasStationName);
}