From 20baa77b1ce6c6dc980077965927a5877440a17d Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期二, 24 二月 2026 18:37:13 +0800
Subject: [PATCH] 管理后台,人员资质审核,打卡地址管理

---
 xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpCheckLocationController.java |   44 +++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpCheckLocationController.java b/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpCheckLocationController.java
index a2537f4..ccf5d2a 100644
--- a/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpCheckLocationController.java
+++ b/xp-robotaxi-maintenance-boot/src/main/java/com/xiaopeng/maintenance/controller/XpCheckLocationController.java
@@ -3,15 +3,16 @@
 import com.xiaopeng.api.model.maintenance.XpCheckLocation;
 import com.xiaopeng.common.core.domain.R;
 import com.xiaopeng.common.core.enums.DisabledEnum;
+import com.xiaopeng.common.core.web.page.PageInfo;
 import com.xiaopeng.common.security.service.TokenService;
+import com.xiaopeng.maintenance.dto.LocationUpdateStatusDTO;
+import com.xiaopeng.maintenance.model.query.XpCheckLocationQuery;
 import com.xiaopeng.maintenance.service.IXpCheckLocationService;
 import io.swagger.annotations.ApiOperation;
 import lombok.RequiredArgsConstructor;
 import org.springframework.context.annotation.Lazy;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
@@ -46,4 +47,41 @@
         return R.ok(xpCheckLocationService.queryByUserId(id));
     }
 
+    @PostMapping("/api/v1/check-location/pageList")
+    @ApiOperation(value = "获取打卡地址分页列表", tags = {"管理后台-运维执行"})
+    public  R<PageInfo<XpCheckLocation>> pageList(@RequestBody XpCheckLocationQuery query){
+        PageInfo<XpCheckLocation> pageList = xpCheckLocationService.pageList(query);
+        return R.ok(pageList);
+    }
+
+    @PostMapping("/api/v1/check-location/add")
+    @ApiOperation(value = "新增打卡地", tags = {"管理后台-运维执行"})
+    public  R<String> add(@RequestBody XpCheckLocation dto){
+        xpCheckLocationService.save(dto);
+        return R.ok();
+    }
+
+    @PostMapping("/api/v1/check-location/edit")
+    @ApiOperation(value = "编辑打卡地", tags = {"管理后台-运维执行"})
+    public  R<String> edit(@RequestBody XpCheckLocation dto){
+        xpCheckLocationService.updateById(dto);
+        return R.ok();
+    }
+
+    @DeleteMapping("/api/v1/check-location/deleteById")
+    @ApiOperation(value = "删除打卡地", tags = {"管理后台-运维执行"})
+    public  R<String> deleteById(@RequestParam Long id){
+        xpCheckLocationService.removeById(id);
+        return R.ok();
+    }
+
+    @PostMapping("/api/v1/check-location/updateStatus")
+    @ApiOperation(value = "启用禁用打卡地", tags = {"管理后台-运维执行"})
+    public  R<String> updateStatus(@RequestBody LocationUpdateStatusDTO dto){
+        XpCheckLocation xpCheckLocation = xpCheckLocationService.getById(dto.getId());
+        xpCheckLocation.setStatus(dto.getStatus());
+        xpCheckLocationService.updateById(xpCheckLocation);
+        return R.ok();
+    }
+
 }

--
Gitblit v1.7.1