From e8cd60ca4444dc92d6788bab775e3a300592f0a7 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 21 四月 2026 22:19:13 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0' into 1.0

---
 xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpTargetedServiceController.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpTargetedServiceController.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpTargetedServiceController.java
index ee47d0a..a16a841 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpTargetedServiceController.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpTargetedServiceController.java
@@ -1,5 +1,6 @@
 package com.xiaopeng.operation.controller;
 
+import cn.hutool.core.collection.CollUtil;
 import com.xiaopeng.api.model.account.SysUser;
 import com.xiaopeng.api.model.operation.XpTargetedService;
 import com.xiaopeng.api.model.operation.XpWhitelist;
@@ -116,12 +117,14 @@
     /**
      * 批量删除
      */
-    @GetMapping("/api/v1/targetedService/deleteByIds")
+    @PostMapping("/api/v1/targetedService/deleteByIds")
     @ApiOperation(value = "定向服务-批量删除", tags = {"管理后台-定向服务批量删除"})
-    public R deleteByIds(String ids) {
+    public R deleteByIds(@RequestBody XpTargetedServiceQuery query ) {
+        if(CollUtil.isEmpty(query.getIds())){
+            return R.fail("ID列表不能为空");
+        }
         SysUser sysUser = tokenService.getLoginUser().getSysUser();
-        List<Long> whiteIds = Arrays.stream(ids.split(",")).map(Long::parseLong).collect(Collectors.toList());
-        return xpTargetedServiceService.deleteByIds(whiteIds, sysUser);
+        return xpTargetedServiceService.deleteByIds(query.getIds(), sysUser);
     }
 
 }

--
Gitblit v1.7.1