From 746517aca9d0b7ae334c70b3041a9b1de795addb Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 22 四月 2026 11:08:37 +0800
Subject: [PATCH] Merge branch '1.0' of http://120.76.84.145:10101/gitblit/r/java/Robotaxi 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