From bf0c12c7ce9d04447310ee46baa74c9a25bb1e6b Mon Sep 17 00:00:00 2001
From: cbs <18617195505@163.com>
Date: Thu, 17 Apr 2025 14:09:10 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=9C=E9=81=A5=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 1 +
yudao-module-remote/pom.xml | 24 ++++
.../yudao-module-remote-api/pom.xml | 49 +++++++++
.../module/remote/enums/ApiConstants.java | 23 ++++
.../yudao-module-remote-biz/pom.xml | 104 ++++++++++++++++++
.../remote/RemoteServerApplication.java | 28 +++++
.../robot/RobotInformationController.java | 27 +++++
.../src/main/resources/application-dev.yaml | 32 ++++++
.../src/main/resources/application-local.yaml | 32 ++++++
.../src/main/resources/application-test.yaml | 34 ++++++
.../src/main/resources/application.yaml | 30 +++++
.../src/main/resources/bootstrap-dev.yaml | 23 ++++
.../src/main/resources/bootstrap-local.yaml | 23 ++++
.../src/main/resources/bootstrap-prod.yaml | 23 ++++
.../src/main/resources/bootstrap.yaml | 15 +++
.../src/main/resources/logback-spring.xml | 76 +++++++++++++
.../admin/robot/RobotMapStopController.java | 9 ++
.../robot/mapstop/RobotMapStopService.java | 7 ++
.../mapstop/RobotMapStopServiceImpl.java | 8 ++
.../src/main/resources/application-test.yaml | 5 +-
20 files changed, 570 insertions(+), 3 deletions(-)
create mode 100644 yudao-module-remote/pom.xml
create mode 100644 yudao-module-remote/yudao-module-remote-api/pom.xml
create mode 100644 yudao-module-remote/yudao-module-remote-api/src/main/java/cn/iocoder/cloud/module/remote/enums/ApiConstants.java
create mode 100644 yudao-module-remote/yudao-module-remote-biz/pom.xml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-test.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-dev.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-local.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-prod.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap.yaml
create mode 100644 yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml
diff --git a/pom.xml b/pom.xml
index 07b6f8a35..ec7d0f80f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,6 +16,7 @@
yudao-module-infra
yudao-module-grpc
yudao-module-mqtt
+ yudao-module-remote
diff --git a/yudao-module-remote/pom.xml b/yudao-module-remote/pom.xml
new file mode 100644
index 000000000..2eee712c4
--- /dev/null
+++ b/yudao-module-remote/pom.xml
@@ -0,0 +1,24 @@
+
+
+
+ cn.iocoder.cloud
+ yudao
+ ${revision}
+
+ 4.0.0
+
+ yudao-module-remote-api
+ yudao-module-remote-biz
+
+ yudao-module-remote
+ pom
+
+ ${project.artifactId}
+
+ system 模块下,我们放通用业务,支撑上层的核心业务。
+ 例如说:用户、部门、权限、数据字典等等
+
+
+
\ No newline at end of file
diff --git a/yudao-module-remote/yudao-module-remote-api/pom.xml b/yudao-module-remote/yudao-module-remote-api/pom.xml
new file mode 100644
index 000000000..f7c984fbd
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-api/pom.xml
@@ -0,0 +1,49 @@
+
+
+
+
+ cn.iocoder.cloud
+ yudao-module-remote
+ ${revision}
+
+ 4.0.0
+ yudao-module-remote-api
+ jar
+
+ ${project.artifactId}
+
+ remote 模块 API,暴露给其它模块调用
+
+
+
+
+ cn.iocoder.cloud
+ yudao-common
+
+
+
+
+ org.springdoc
+ springdoc-openapi-ui
+ provided
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-validation
+ true
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/yudao-module-remote/yudao-module-remote-api/src/main/java/cn/iocoder/cloud/module/remote/enums/ApiConstants.java b/yudao-module-remote/yudao-module-remote-api/src/main/java/cn/iocoder/cloud/module/remote/enums/ApiConstants.java
new file mode 100644
index 000000000..38f53bbe5
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-api/src/main/java/cn/iocoder/cloud/module/remote/enums/ApiConstants.java
@@ -0,0 +1,23 @@
+package cn.iocoder.cloud.module.remote.enums;
+
+import cn.iocoder.yudao.framework.common.enums.RpcConstants;
+
+/**
+ * API 相关的枚举
+ *
+ * @author 芋道源码
+ */
+public class ApiConstants {
+
+ /**
+ * 服务名
+ *
+ * 注意,需要保证和 spring.application.name 保持一致
+ */
+ public static final String NAME = "system-server";
+
+ public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/system";
+
+ public static final String VERSION = "1.0.0";
+
+}
diff --git a/yudao-module-remote/yudao-module-remote-biz/pom.xml b/yudao-module-remote/yudao-module-remote-biz/pom.xml
new file mode 100644
index 000000000..5b8592197
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/pom.xml
@@ -0,0 +1,104 @@
+
+
+
+ cn.iocoder.cloud
+ yudao-module-remote
+ ${revision}
+
+ 4.0.0
+ yudao-module-remote-biz
+ jar
+
+ ${project.artifactId}
+
+ remote 模块,主要提供能力:
+ 1. 与设备通信
+
+
+
+
+
+
+ cn.iocoder.cloud
+ yudao-spring-boot-starter-env
+
+
+
+
+ cn.iocoder.cloud
+ yudao-module-system-api
+ ${revision}
+
+
+
+ cn.iocoder.cloud
+ yudao-module-remote-api
+ ${revision}
+
+
+
+ org.springframework.integration
+ spring-integration-mqtt
+
+
+ org.eclipse.paho
+ org.eclipse.paho.client.mqttv3
+
+
+
+ io.swagger.core.v3
+ swagger-annotations
+
+
+
+ org.apache.skywalking
+ apm-toolkit-logback-1.x
+
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.junit.vintage
+ junit-vintage-engine
+
+
+
+
+
+
+
+ ${project.artifactId}
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring.boot.version}
+
+
+
+ repackage
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java
new file mode 100644
index 000000000..6d2fc2a6e
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/RemoteServerApplication.java
@@ -0,0 +1,28 @@
+package cn.iocoder.cloud.module.remote;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
+import org.springframework.scheduling.annotation.EnableAsync;
+
+/**
+ * 项目的启动类
+ *
+ * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
+ * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
+ * 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
+ *
+ * @author 芋道源码
+ */
+@SpringBootApplication
+public class RemoteServerApplication {
+
+ public static void main(String[] args) {
+ // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
+
+ SpringApplication.run(RemoteServerApplication.class, args);
+
+ // 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
+ }
+
+}
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java
new file mode 100644
index 000000000..0ec2007b5
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/java/cn/iocoder/cloud/module/remote/controller/robot/RobotInformationController.java
@@ -0,0 +1,27 @@
+package cn.iocoder.cloud.module.remote.controller.robot;
+
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+
+@Tag(name = "管理后台 - 车辆信息")
+@RestController
+@RequestMapping("/remote/robot/information")
+@Validated
+public class RobotInformationController {
+
+
+ @GetMapping("/list")
+ @Operation(summary = "获得车辆信息分页")
+ public CommonResult getRobotList() {
+ return success("测试");
+ }
+
+}
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml
new file mode 100644
index 000000000..e97c6ff0b
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-dev.yaml
@@ -0,0 +1,32 @@
+spring:
+ cloud:
+ nacos:
+ server-addr: 127.0.0.1:8848 # Nacos 服务器地址
+ username: # Nacos 账号
+ password: # Nacos 密码
+ discovery: # 【配置中心】配置项
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+ config: # 【注册中心】配置项
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+
+# Lock4j 配置项
+lock4j:
+ acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
+ expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
+
+--- #################### 监控相关配置 ####################
+
+# Actuator 监控端点的配置项
+management:
+ endpoints:
+ web:
+ base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
+ exposure:
+ include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
+
+
+
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml
new file mode 100644
index 000000000..e97c6ff0b
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-local.yaml
@@ -0,0 +1,32 @@
+spring:
+ cloud:
+ nacos:
+ server-addr: 127.0.0.1:8848 # Nacos 服务器地址
+ username: # Nacos 账号
+ password: # Nacos 密码
+ discovery: # 【配置中心】配置项
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+ config: # 【注册中心】配置项
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+
+# Lock4j 配置项
+lock4j:
+ acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
+ expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
+
+--- #################### 监控相关配置 ####################
+
+# Actuator 监控端点的配置项
+management:
+ endpoints:
+ web:
+ base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
+ exposure:
+ include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
+
+
+
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-test.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-test.yaml
new file mode 100644
index 000000000..8a57bd597
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application-test.yaml
@@ -0,0 +1,34 @@
+spring:
+ cloud:
+ nacos:
+ server-addr: 127.0.0.1:8848 # Nacos 服务器地址
+ username: # Nacos 账号
+ password: # Nacos 密码
+ discovery: # 【配置中心】配置项
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+ config: # 【注册中心】配置项
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+
+# Lock4j 配置项
+lock4j:
+ acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
+ expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
+
+--- #################### 监控相关配置 ####################
+
+# Actuator 监控端点的配置项
+management:
+ endpoints:
+ web:
+ base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
+ exposure:
+ include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
+
+
+logging:
+ file:
+ name: D:/project/rcs/logs/${spring.application.name}.log
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml
new file mode 100644
index 000000000..48012dc8c
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/application.yaml
@@ -0,0 +1,30 @@
+
+spring:
+ application:
+ name: remote-server
+ main:
+ allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
+ allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
+
+ profiles:
+ active: local
+
+ mvc:
+ pathmatch:
+ matching-strategy: ANT_PATH_MATCHER # 解决 SpringFox 与 SpringBoot 2.6.x 不兼容的问题,参见 SpringFoxHandlerProviderBeanPostProcessor 类
+
+ # Jackson 配置项
+ jackson:
+ serialization:
+ write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
+ write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
+ write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
+ fail-on-empty-beans: false # 允许序列化无属性的 Bean
+
+server:
+ port: 48084
+
+
+debug: false
+
+
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-dev.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-dev.yaml
new file mode 100644
index 000000000..2de0efbf7
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-dev.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 127.0.0.1:8848
+ discovery:
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 127.0.0.1:8848 # Nacos 服务器地址
+ namespace: dev # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-local.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-local.yaml
new file mode 100644
index 000000000..2de0efbf7
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-local.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 127.0.0.1:8848
+ discovery:
+ namespace: dev # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 127.0.0.1:8848 # Nacos 服务器地址
+ namespace: dev # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-prod.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-prod.yaml
new file mode 100644
index 000000000..a33845dd6
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap-prod.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 127.0.0.1:8848
+ discovery:
+ namespace: prod # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 127.0.0.1:8848 # Nacos 服务器地址
+ namespace: prod # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap.yaml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap.yaml
new file mode 100644
index 000000000..db286aff4
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/bootstrap.yaml
@@ -0,0 +1,15 @@
+spring:
+ application:
+ name: remote-server
+
+ profiles:
+ active: local #local
+# active: prod
+
+server:
+ port: 48084
+
+# 日志文件配置。注意,如果 logging.file.name 不放在 bootstrap.yaml 配置文件,而是放在 application.yaml 中,会导致出现 LOG_FILE_IS_UNDEFINED 文件
+logging:
+ file:
+ name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
diff --git a/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml
new file mode 100644
index 000000000..b1b9f3faf
--- /dev/null
+++ b/yudao-module-remote/yudao-module-remote-biz/src/main/resources/logback-spring.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ${PATTERN_DEFAULT}
+
+
+
+
+
+
+
+
+
+ ${PATTERN_DEFAULT}
+
+
+
+ ${LOG_FILE}
+
+
+ ${LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN:-${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz}
+
+ ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}
+
+ ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB}
+
+ ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0}
+
+ ${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}
+
+
+
+
+
+ 0
+
+ 256
+
+
+
+
+
+
+
+ ${PATTERN_DEFAULT}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/robot/RobotMapStopController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/robot/RobotMapStopController.java
index 328ada0de..f3d720d04 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/robot/RobotMapStopController.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/robot/RobotMapStopController.java
@@ -72,6 +72,15 @@ public class RobotMapStopController {
return success(BeanUtils.toBean(mapStop, RobotMapStopRespVO.class));
}
+ @GetMapping("/getByMapId")
+ @Operation(summary = "根据地图id获取暂停的地图")
+ @Parameter(name = "id", description = "地图id", required = true, example = "1024")
+ @PreAuthorize("@ss.hasPermission('robot:map-stop:getByMapId')")
+ public CommonResult> getByMapId(@RequestParam("id") Long id) {
+ List mapStop = mapStopService.getByMapId(id);
+ return success(mapStop);
+ }
+
@GetMapping("/page")
@Operation(summary = "获得车辆(地图)急停记录分页")
@PreAuthorize("@ss.hasPermission('robot:map-stop:query')")
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopService.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopService.java
index 440da4e50..2a2504091 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopService.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopService.java
@@ -80,4 +80,11 @@ public interface RobotMapStopService extends IService {
* @param id
*/
void deleteRobotMapStopByMapId(Long id);
+
+ /**
+ * 根据地图id查询,该地图的暂停信息
+ * @param id
+ * @return
+ */
+ List getByMapId(Long id);
}
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopServiceImpl.java
index fa39806d1..7aeb5565d 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopServiceImpl.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/robot/mapstop/RobotMapStopServiceImpl.java
@@ -130,4 +130,12 @@ public class RobotMapStopServiceImpl extends ServiceImpl getByMapId(Long id) {
+ List positionMapItems = mapStopMapper.selectList(new LambdaQueryWrapperX()
+ .eq(RobotMapStopDO::getStopType, ZeroOneEnum.ZERO.getType())
+ .eq(RobotMapStopDO::getPositionMapId, id));
+ return positionMapItems;
+ }
+
}
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/resources/application-test.yaml b/yudao-module-system/yudao-module-system-biz/src/main/resources/application-test.yaml
index 619f85716..660cb1095 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/resources/application-test.yaml
+++ b/yudao-module-system/yudao-module-system-biz/src/main/resources/application-test.yaml
@@ -133,6 +133,8 @@ logging:
cn.iocoder.yudao.module.system.dal.mysql: debug
cn.iocoder.yudao.module.system.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info
org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示
+ file:
+ name: D:/project/rcs/logs/${spring.application.name}.log
--- #################### 微信公众号、小程序相关配置 ####################
wx:
@@ -235,6 +237,3 @@ zn:
task_chche_time: 604800 #任务缓存的时间, 默认一星期
is_simulation: true # 是否为仿真环境
-logging:
- file:
- name: D:/project/rcs/logs/${spring.application.name}.log