From eecc2a5240a4b9389d8396d36624055da808ad9b Mon Sep 17 00:00:00 2001
From: “mitao” <“2763622819@qq.com”>
Date: 星期六, 28 二月 2026 11:40:01 +0800
Subject: [PATCH] feat(management):订单改派逻辑完善、收车定时任务逻辑完善
---
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpElectronicFenceAreaController.java | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpElectronicFenceAreaController.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpElectronicFenceAreaController.java
index 2f2117d..8310f9d 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpElectronicFenceAreaController.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/controller/XpElectronicFenceAreaController.java
@@ -4,11 +4,12 @@
import com.xiaopeng.api.model.operation.XpElectronicFenceArea;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.operation.service.IXpElectronicFenceAreaService;
+import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@@ -20,8 +21,21 @@
* @author mitao
* @since 2026-02-03
*/
-@Controller
-@RequestMapping("/xp-electronic-fence-area")
+@RestController
public class XpElectronicFenceAreaController {
+ @Resource
+ private IXpElectronicFenceAreaService xpElectronicFenceAreaService;
+
+ /**
+ * 根据区域ID查询区域信息
+ *
+ * @param id 区域ID
+ * @return 区域信息
+ */
+ @ApiOperation(value = "根据区域ID查询区域信息", notes = "根据区域ID查询区域信息", tags = {"内部接口"})
+ @PostMapping("/inner/v1/xp-electronic-fence-area/queryById/queryById")
+ public R<XpElectronicFenceArea> queryById(@RequestParam("id") Long id) {
+ return R.ok(xpElectronicFenceAreaService.getById(id));
+ }
}
--
Gitblit v1.7.1