From 0275498af38bc1c8fbc5bfea54f3cce3550fd6ab Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 11 二月 2025 09:57:54 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile into 1.1

---
 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java
index f086096..cbf61a2 100644
--- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java
+++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingLotController.java
@@ -158,6 +158,18 @@
     }
     
     
+    /**
+     * 获取所有停车场数据
+     */
+    @PostMapping(value = "/getAllParkingLot")
+    public R<List<TParkingLot>> getAllParkingLot(){
+        List<TParkingLot> list = parkingLotService.list(new LambdaQueryWrapper<TParkingLot>().eq(TParkingLot::getDelFlag, 0));
+        return R.fail(list);
+    }
+    
+    
+    
+    
     @RequiresPermissions(value = {"/paymentOrder/order"}, logical = Logical.OR)
     @GetMapping(value = "/getRecordById")
     public R<TParkingRecord> getRecordById(@RequestParam("id") Long id){
@@ -184,5 +196,11 @@
                 .eq(TParkingLot::getAppKey, appKey).eq(TParkingLot::getDelFlag, 0));
         return R.ok(parkingLot);
     }
+    @PostMapping(value = "/getSiteIdByOrderId")
+    R<Integer> getSiteIdByOrderId(@RequestParam("id") Long id){
+        TParkingRecord byId = parkingRecordService.getById(id);
+        TParkingLot parkingLot = parkingLotService.getById(byId.getParkingLotId());
+        return R.ok(parkingLot.getId());
+    }
 }
 

--
Gitblit v1.7.1