From 9a2cabb0c1f9ba28fdb432126a7283d32c0719d4 Mon Sep 17 00:00:00 2001 From: duwenyuan <15600000461@163.com> Date: Tue, 20 Jan 2026 09:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4=E5=8F=B0?= =?UTF-8?q?=E7=AB=99=E4=BF=A1=E6=81=AF=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/controller/GardsStationsController.java | 2 +- .../org/jeecg/service/impl/GardsStationsServiceImpl.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/jeecg-module-monitor-info-database/src/main/java/org/jeecg/controller/GardsStationsController.java b/jeecg-module-monitor-info-database/src/main/java/org/jeecg/controller/GardsStationsController.java index aab8d17..296560c 100644 --- a/jeecg-module-monitor-info-database/src/main/java/org/jeecg/controller/GardsStationsController.java +++ b/jeecg-module-monitor-info-database/src/main/java/org/jeecg/controller/GardsStationsController.java @@ -50,7 +50,7 @@ public class GardsStationsController { */ @DeleteMapping("/delete") @Operation(summary = "删除台站信息") - public Result deleteById(@RequestParam Integer stationId) { + public Result deleteById(@RequestParam(required = false) Integer stationId) { gardsStationsService.deleteById(stationId); return Result.OK("删除成功!"); } diff --git a/jeecg-module-monitor-info-database/src/main/java/org/jeecg/service/impl/GardsStationsServiceImpl.java b/jeecg-module-monitor-info-database/src/main/java/org/jeecg/service/impl/GardsStationsServiceImpl.java index b3a73bc..40ab07a 100644 --- a/jeecg-module-monitor-info-database/src/main/java/org/jeecg/service/impl/GardsStationsServiceImpl.java +++ b/jeecg-module-monitor-info-database/src/main/java/org/jeecg/service/impl/GardsStationsServiceImpl.java @@ -42,7 +42,13 @@ public class GardsStationsServiceImpl extends ServiceImpl