From fa8c307d59388c9f7c64a60b08585a4c4b2da770 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 13 二月 2026 16:08:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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