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