From 3beffd06aa145959811de597a69c3834d3abe8c8 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期二, 17 十月 2023 17:20:02 +0800
Subject: [PATCH] 锁管理
---
ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarLockMapper.java | 7 ++
ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarRtuMapper.java | 7 ++
ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCar.java | 2
ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarRtu.java | 15 +++++
ard-work/src/main/java/com/ruoyi/sy/vo/CarVo.java | 18 ++++++
ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarLock.java | 17 +++++
ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarLockController.java | 54 ++++++++++++++++++
ard-work/src/main/java/com/ruoyi/sy/service/ArdSyCarLockService.java | 11 +++
8 files changed, 130 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarLockController.java b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarLockController.java
new file mode 100644
index 0000000..0dea38e
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdSyCarLockController.java
@@ -0,0 +1,54 @@
+package com.ruoyi.sy.controller;
+
+import com.ruoyi.common.utils.SecurityUtils;
+import com.ruoyi.common.utils.uuid.UUID;
+import com.ruoyi.oil.domain.OilWall;
+import com.ruoyi.oil.param.OilWallParam;
+import com.ruoyi.utils.result.Results;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Date;
+
+@RestController
+@RequestMapping("syLock")
+@Api(tags = "杞﹁締閿佺鐞�")
+public class ArdSyCarLockController {
+
+ @GetMapping("/car")
+ @ApiOperation("鏌ヨ鎵�鏈夋湭鎸傞攣鐨勮溅杈�")
+ public Results car(){
+ return Results.succeed();
+ }
+
+ @PostMapping("/add")
+ @ApiOperation("娣诲姞rtu")
+ public Results add(){
+ return Results.succeed("鎴愬姛娣诲姞"+1+"鏉℃暟鎹�");
+ }
+
+ @DeleteMapping("/del")
+ @ApiOperation("鍒犻櫎rtu")
+ public Results del(String id){
+ return Results.succeed("鎴愬姛鍒犻櫎"+1+"鏉℃暟鎹�");
+ }
+
+ @PutMapping("/upd")
+ @ApiOperation("淇敼rtu")
+ public Results upd(){
+ return Results.succeed("鎴愬姛淇敼"+1+"鏉℃暟鎹�");
+ }
+
+ @GetMapping("/one")
+ @ApiOperation("鏌ヨ涓�鏉tu")
+ public Results one(String id){
+ return Results.succeed();
+ }
+
+ @GetMapping("/query")
+ @ApiOperation("鏌ヨ鎵�鏈塺tu")
+ public Results query(){
+ return Results.succeed();
+ }
+}
diff --git a/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCar.java b/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCar.java
index 9b54d45..c3a2723 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCar.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCar.java
@@ -44,7 +44,7 @@
private String carPicture;
/** 棰勭暀1 */
- @Excel(name = "棰勭暀1")
+ @Excel(name = "rtu")
@TableField("reserved_1")
private String reserved1;
diff --git a/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarLock.java b/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarLock.java
new file mode 100644
index 0000000..e4ec985
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarLock.java
@@ -0,0 +1,17 @@
+package com.ruoyi.sy.domain;
+
+import com.ruoyi.common.core.domain.BaseEntity;
+import lombok.Data;
+
+@Data
+public class ArdSyCarLock extends BaseEntity {
+ private String id;
+ private String rtuId;
+ private String lockName;
+ private String imgPositionTop;
+ private String imgPositionLeft;
+ private String relay;
+ private String relayInfo;
+ private String current;
+ private String currentInfo;
+}
diff --git a/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarRtu.java b/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarRtu.java
new file mode 100644
index 0000000..c2bf70d
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/domain/ArdSyCarRtu.java
@@ -0,0 +1,15 @@
+package com.ruoyi.sy.domain;
+
+import com.ruoyi.common.core.domain.BaseEntity;
+import lombok.Data;
+
+/**
+ * @author Administrator
+ */
+@Data
+public class ArdSyCarRtu extends BaseEntity {
+ private String id;
+ private String carId;
+ private String topicSubscribe;
+ private String topicPublish;
+}
diff --git a/ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarLockMapper.java b/ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarLockMapper.java
new file mode 100644
index 0000000..49ceb4f
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarLockMapper.java
@@ -0,0 +1,7 @@
+package com.ruoyi.sy.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ruoyi.sy.domain.ArdSyCarLock;
+
+public interface ArdSyCarLockMapper extends BaseMapper<ArdSyCarLock> {
+}
diff --git a/ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarRtuMapper.java b/ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarRtuMapper.java
new file mode 100644
index 0000000..01b988f
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/mapper/ArdSyCarRtuMapper.java
@@ -0,0 +1,7 @@
+package com.ruoyi.sy.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ruoyi.sy.domain.ArdSyCarRtu;
+
+public interface ArdSyCarRtuMapper extends BaseMapper<ArdSyCarRtu> {
+}
diff --git a/ard-work/src/main/java/com/ruoyi/sy/service/ArdSyCarLockService.java b/ard-work/src/main/java/com/ruoyi/sy/service/ArdSyCarLockService.java
new file mode 100644
index 0000000..4001803
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/service/ArdSyCarLockService.java
@@ -0,0 +1,11 @@
+package com.ruoyi.sy.service;
+
+import com.ruoyi.sy.vo.CarVo;
+
+import java.util.List;
+
+public interface ArdSyCarLockService {
+
+ List<CarVo> car();
+
+}
diff --git a/ard-work/src/main/java/com/ruoyi/sy/vo/CarVo.java b/ard-work/src/main/java/com/ruoyi/sy/vo/CarVo.java
new file mode 100644
index 0000000..9c1c09a
--- /dev/null
+++ b/ard-work/src/main/java/com/ruoyi/sy/vo/CarVo.java
@@ -0,0 +1,18 @@
+package com.ruoyi.sy.vo;
+
+import lombok.Data;
+
+/**
+ * @author Administrator
+ */
+@Data
+public class CarVo {
+ private String carId;
+ private String carPlate;
+ private String drvName;
+ private String drvPhone;
+ private String carType;
+ private String carPicture;
+ private Integer deptId;
+ private String deptName;
+}
--
Gitblit v1.9.3