From 2d26f463fbc9624f3b094bc8db9d12a0f6ac21cd Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 28 八月 2024 10:51:07 +0800
Subject: [PATCH] 地址
---
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java
index a87dd1c..7009be3 100644
--- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java
+++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java
@@ -23,6 +23,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
+import java.util.Arrays;
import java.util.List;
/**
@@ -118,14 +119,15 @@
@Log(title = "批量删除停车场", businessType = BusinessType.DELETE,operatorType = OperatorType.MANAGE)
@ApiOperation(tags = {"后台-停车场"},value = "批量删除停车场")
@DeleteMapping(value = "/deleteByIds")
- public AjaxResult<Boolean> deleteByIds(@RequestBody BaseDelete baseDelete) {
+ public AjaxResult<Boolean> deleteByIds(@RequestParam String ids) {
+ String[] split = ids.split(",");
// 刪除车道信息
vehicleRampService.remove(Wrappers.lambdaQuery(TVehicleRamp.class)
- .in(TVehicleRamp::getParkingLotId, baseDelete.getIds()));
+ .in(TVehicleRamp::getParkingLotId, Arrays.asList(split)));
// 删除车库信息
carportService.remove(Wrappers.lambdaQuery(TCarport.class)
- .in(TCarport::getParkingLotId, baseDelete.getIds()));
- return AjaxResult.ok(parkingLotService.removeByIds(baseDelete.getIds()));
+ .in(TCarport::getParkingLotId, Arrays.asList(split)));
+ return AjaxResult.ok(parkingLotService.removeByIds(Arrays.asList(split)));
}
/**
--
Gitblit v1.7.1