From 2b98c57493307718f88ed56bb2a531f3af3ca6b4 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 13 二月 2026 15:33:57 +0800
Subject: [PATCH] bug修改,订单详情补充

---
 xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/controller/XpElectronicFenceManagementController.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/controller/XpElectronicFenceManagementController.java b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/controller/XpElectronicFenceManagementController.java
index 2b0785a..12e1553 100644
--- a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/controller/XpElectronicFenceManagementController.java
+++ b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/controller/XpElectronicFenceManagementController.java
@@ -14,6 +14,7 @@
 import com.xiaopeng.common.core.exception.ServiceException;
 import com.xiaopeng.common.core.utils.bean.BeanUtils;
 import com.xiaopeng.common.core.web.page.PageInfo;
+import com.xiaopeng.common.security.service.TokenService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
@@ -39,6 +40,8 @@
 public class XpElectronicFenceManagementController {
 
 
+    @Resource
+    private TokenService tokenService;
 
     @Resource
     private XpElectronicClient xpElectronicClient;
@@ -56,6 +59,7 @@
     @ApiOperation(value = "新增电子围栏")
     @Transactional
     public R add(@Validated @RequestBody ElectronicFenceAddDto dto) {
+
         return xpElectronicClient.add(dto);
     }
 
@@ -75,10 +79,10 @@
     /**
      * 电子围栏详情
      */
-    @GetMapping("/queryById")
+    @PostMapping("/queryById")
     @ResponseBody
     @ApiOperation(value = "电子围栏详情")
-    public R<ElectronicFenceDetailVo> queryById(Long id) {
+    public R<ElectronicFenceDetailVo> queryById(@RequestParam("id")Long id) {
         return xpElectronicClient.queryById(id);
     }
 
@@ -96,11 +100,9 @@
     /**
      * 复制电子围栏
      */
-    @GetMapping("/copy")
-    @ResponseBody
+    @PostMapping("/copy")
     @ApiOperation(value = "复制电子围栏")
-    @Transactional
-    public R copy(Integer id) {
+    public R<Long> copy(@RequestParam("id") Integer id) {
         return xpElectronicClient.copy(id);
     }
 }

--
Gitblit v1.7.1