From 24e152d8a574e77b1909a8fea4703d4fe835c2a5 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期五, 05 七月 2024 11:53:07 +0800
Subject: [PATCH] 查询电磁锁及挂接的车辆提交
---
ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 48 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java
index 87953d0..5a47087 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java
@@ -162,6 +162,24 @@
}
/**
+ * 鏍规嵁car_id鍒犻櫎鐢电閿�
+ */
+ @ApiOperation("鏍规嵁car_id鍒犻櫎鐢电閿�")
+ @PreAuthorize("@ss.hasPermi('sy:lock:deleteLockByCarId')")
+ @PostMapping("/deleteLockByCarId")
+ public AjaxResult deleteLockByCarId(@RequestBody ArdTankLock ardTankLock) {
+ return toAjax(ardTankLockService.deleteLockByCarId(ardTankLock.getCarId()));
+ }
+
+ @ApiOperation("淇敼鐢电閿�")
+ @PreAuthorize("@ss.hasPermi('sy:lock:updateLockByCarId')")
+ @Log(title = "鐢电閿�" , businessType = BusinessType.UPDATE)
+ @PutMapping("/updateLockByCarId")
+ public AjaxResult updateLockByCarId(@RequestBody Map<String,Object> para) {
+ return toAjax(ardTankLockService.updateLockByCarId(para));
+ }
+
+ /**
* 鏂板鐢靛瓙鍥存爮
*/
@ApiOperation("鏂板鐢靛瓙鍥存爮")
@@ -194,11 +212,40 @@
return toAjax(ardTankWallService.deleteArdTankWallById(id));
}
- @ApiOperation("鏌ヨ鍏ㄩ儴鐢靛瓙鍥存爮")
+ /*@ApiOperation("鏌ヨ鍏ㄩ儴鐢靛瓙鍥存爮")
@PreAuthorize("@ss.hasPermi('sy:lock:getAllArdTankWall')")
@GetMapping("/getAllArdTankWall")
public Results getAllArdTankWall() {
List<ArdTankWall> result = ardTankWallService.getAllArdTankWall();
return Results.succeed(result);
+ }*/
+
+ @ApiOperation("鏌ヨ鍏ㄩ儴鐢靛瓙鍥存爮")
+ @PreAuthorize("@ss.hasPermi('sy:lock:getAllArdTankWall')")
+ @PostMapping("/getAllArdTankWall")
+ public TableDataInfo getAllArdTankWall(@RequestBody ArdTankWall ardTankWall) {
+ startPage();
+ List<ArdTankWall> list = ardTankWallService.selectArdTankWallList(ardTankWall);
+ return getDataTable(list);
+ }
+
+ @ApiOperation("鏍规嵁涓婚敭鑾峰彇鐢电閿佺數瀛愬洿鏍�")
+ @PreAuthorize("@ss.hasPermi('sy:tankWall:getArdTankWallById')")
+ @GetMapping(value = "/getArdTankWallById/{id}")
+ public AjaxResult getArdTankWallById(@PathVariable String id) {
+ return success(ardTankWallService.selectArdTankWallById(id));
+ }
+
+ /**
+ * 妯$硦鏌ヨ鐢电閿佸強鎸傛帴鐨勮溅杈�
+ */
+ @ApiOperation("妯$硦鏌ヨ鐢电閿佸強鎸傛帴鐨勮溅杈�")
+ @PreAuthorize("@ss.hasPermi('sy:lock:getLockByCarPlate')")
+ @PostMapping("/getLockByCarPlate")
+ public TableDataInfo getLockByCarPlate(@RequestBody Map<String,String> para) {
+ startPage();
+ String userId = SecurityUtils.getUserId();
+ List<Map<String,String>> result = ardTankLockService.getLockByCarPlate(userId,para.get("carPlate"));
+ return getDataTable(result);
}
}
--
Gitblit v1.9.3