Browse Source

提交:

pull/1/head
袁强 4 months ago
parent
commit
8f36a4081a
  1. 125
      dk-modules/business/pom.xml
  2. 22
      dk-modules/business/src/main/java/org/dromara/business/BusinessApplication.java
  3. 1
      dk-modules/pom.xml
  4. 2
      dk-modules/system/pom.xml
  5. 137
      docker/docker-compose.yml
  6. 2
      docker/grafana/grafana.ini
  7. 71
      sql/wayline_module.sql

125
dk-modules/business/pom.xml

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.dromara</groupId>
<artifactId>dk-modules</artifactId>
<version>2.2.2</version>
</parent>
<artifactId>business</artifactId>
<description>
business系统业务模块
</description>
<dependencies>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-nacos</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-sentinel</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-log</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-dict</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-doc</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-web</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-dubbo</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-seata</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-idempotent</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-tenant</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-security</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-translation</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-sensitive</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>common-encrypt</artifactId>
</dependency>
<!-- RuoYi Api System -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>api-system</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>api-resource</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

22
dk-modules/business/src/main/java/org/dromara/business/BusinessApplication.java

@ -0,0 +1,22 @@
package org.dromara.business;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
/**
* @auther yq
* @data 2025/2/25
*/
@EnableDubbo
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class BusinessApplication {
public static void main(String[] args) {
SpringApplication application = new SpringApplication(BusinessApplication.class);
application.setApplicationStartup(new BufferingApplicationStartup(2048));
application.run(args);
System.out.println("(♥◠‿◠)ノ゙ 业务模块启动成功 ლ(´ڡ`ლ)゙ ");
}
}

1
dk-modules/pom.xml

@ -15,6 +15,7 @@
<module>resource</module> <module>resource</module>
<module>workflow</module> <module>workflow</module>
<module>sample</module> <module>sample</module>
<module>business</module>
</modules> </modules>
<artifactId>dk-modules</artifactId> <artifactId>dk-modules</artifactId>

2
dk-modules/system/pom.xml

@ -12,7 +12,7 @@
<artifactId>system</artifactId> <artifactId>system</artifactId>
<description> <description>
ruoyi-system系统模块 system系统模块
</description> </description>
<dependencies> <dependencies>

137
docker/docker-compose.yml

@ -8,11 +8,11 @@ services:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
# root 密码 # root 密码
MYSQL_ROOT_PASSWORD: ruoyi123 MYSQL_ROOT_PASSWORD: 123456
# 初始化数据库 # 初始化数据库
MYSQL_DATABASE: ry-cloud MYSQL_DATABASE: dk-cloud
ports: # ports:
- "3306:3306" # - "3306:3306"
volumes: volumes:
# 数据挂载 # 数据挂载
- /docker/mysql/data/:/var/lib/mysql/ - /docker/mysql/data/:/var/lib/mysql/
@ -29,12 +29,12 @@ services:
network_mode: "host" network_mode: "host"
nacos: nacos:
image: ruoyi/ruoyi-nacos:2.2.2 image: dk/dk-nacos:2.2.2
container_name: nacos container_name: nacos
ports: # ports:
- "8848:8848" # - "8848:8848"
- "9848:9848" # - "9848:9848"
- "9849:9849" # - "9849:9849"
environment: environment:
TZ: Asia/Shanghai TZ: Asia/Shanghai
JAVA_OPTS: "-Xms256m -Xmx512m" JAVA_OPTS: "-Xms256m -Xmx512m"
@ -48,8 +48,8 @@ services:
redis: redis:
image: redis:6.2.12 image: redis:6.2.12
container_name: redis container_name: redis
ports: # ports:
- "6379:6379" # - "6379:6379"
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -65,18 +65,18 @@ services:
minio: minio:
image: minio/minio:RELEASE.2023-03-24T21-41-23Z image: minio/minio:RELEASE.2023-03-24T21-41-23Z
container_name: minio container_name: minio
ports: # ports:
# api 端口 # # api 端口
- "9000:9000" # - "9000:9000"
# 控制台端口 # # 控制台端口
- "9001:9001" # - "9001:9001"
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
# 管理后台用户名 # 管理后台用户名
MINIO_ROOT_USER: ruoyi MINIO_ROOT_USER: dk
# 管理后台密码,最小8个字符 # 管理后台密码,最小8个字符
MINIO_ROOT_PASSWORD: ruoyi123 MINIO_ROOT_PASSWORD: 123456
# https需要指定域名 # https需要指定域名
#MINIO_SERVER_URL: "https://xxx.com:9000" #MINIO_SERVER_URL: "https://xxx.com:9000"
#MINIO_BROWSER_REDIRECT_URL: "https://xxx.com:9001" #MINIO_BROWSER_REDIRECT_URL: "https://xxx.com:9001"
@ -96,7 +96,7 @@ services:
network_mode: "host" network_mode: "host"
seata-server: seata-server:
image: ruoyi/ruoyi-seata-server:2.2.2 image: dk/seata-server:2.2.2
container_name: seata-server container_name: seata-server
ports: ports:
- "7091:7091" - "7091:7091"
@ -107,9 +107,9 @@ services:
# SEATA_IP: 127.0.0.1 # SEATA_IP: 127.0.0.1
SEATA_PORT: 8091 SEATA_PORT: 8091
volumes: volumes:
- /docker/ruoyi-seata-server/logs/:/ruoyi/seata-server/logs - /docker/seata-server/logs/:/dk/seata-server/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
@ -135,7 +135,7 @@ services:
network_mode: "host" network_mode: "host"
sentinel: sentinel:
image: ruoyi/ruoyi-sentinel-dashboard:2.2.2 image: dk/sentinel-dashboard:2.2.2
container_name: sentinel container_name: sentinel
environment: environment:
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -143,15 +143,14 @@ services:
- "8718:8718" - "8718:8718"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-sentinel-dashboard/logs/:/ruoyi/sentinel-dashboard/logs - /docker/sentinel-dashboard/logs/:/dk/sentinel-dashboard/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
restart: always restart: always
network_mode: "host" network_mode: "host"
monitor:
ruoyi-monitor: image: dk/monitor:2.2.2
image: ruoyi/ruoyi-monitor:2.2.2 container_name: monitor
container_name: ruoyi-monitor
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -159,15 +158,15 @@ services:
- "9100:9100" - "9100:9100"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-monitor/logs/:/ruoyi/monitor/logs - /docker/monitor/logs/:/dk/monitor/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-snailjob-server: snailjob-server:
image: ruoyi/ruoyi-snailjob-server:2.2.2 image: dk/snailjob-server:2.2.2
container_name: ruoyi-snailjob-server container_name: snailjob-server
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -175,13 +174,13 @@ services:
- "8800:8800" - "8800:8800"
- "17888:17888" - "17888:17888"
volumes: volumes:
- /docker/snailjob/logs/:/ruoyi/snailjob/logs - /docker/snailjob/logs/:/dk/snailjob/logs
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-gateway: gateway:
image: ruoyi/ruoyi-gateway:2.2.2 image: dk/gateway:2.2.2
container_name: ruoyi-gateway container_name: gateway
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -189,15 +188,15 @@ services:
- "8080:8080" - "8080:8080"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-gateway/logs/:/ruoyi/gateway/logs - /docker/gateway/logs/:/dk/gateway/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-auth: auth:
image: ruoyi/ruoyi-auth:2.2.2 image: dk/auth:2.2.2
container_name: ruoyi-auth container_name: auth
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -205,15 +204,15 @@ services:
- "9210:9210" - "9210:9210"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-auth/logs/:/ruoyi/auth/logs - /docker/auth/logs/:/dk/auth/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-system: system:
image: ruoyi/ruoyi-system:2.2.2 image: dk/system:2.2.2
container_name: ruoyi-system container_name: system
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -221,15 +220,15 @@ services:
- "9201:9201" - "9201:9201"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-system/logs/:/ruoyi/system/logs - /docker/system/logs/:/dk/system/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-gen: gen:
image: ruoyi/ruoyi-gen:2.2.2 image: dk/gen:2.2.2
container_name: ruoyi-gen container_name: gen
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -237,15 +236,15 @@ services:
- "9202:9202" - "9202:9202"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-gen/logs/:/ruoyi/gen/logs - /docker/gen/logs/:/dk/gen/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-job: job:
image: ruoyi/ruoyi-job:2.2.2 image: dk/job:2.2.2
container_name: ruoyi-job container_name: job
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -253,15 +252,15 @@ services:
- "9203:9203" - "9203:9203"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-job/logs/:/ruoyi/job/logs - /docker/job/logs/:/dk/job/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-resource: resource:
image: ruoyi/ruoyi-resource:2.2.2 image: dk/resource:2.2.2
container_name: ruoyi-resource container_name: resource
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -269,15 +268,15 @@ services:
- "9204:9204" - "9204:9204"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-resource/logs/:/ruoyi/resource/logs - /docker/resource/logs/:/dk/resource/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"
ruoyi-workflow: workflow:
image: ruoyi/ruoyi-workflow:2.2.2 image: dk/workflow:2.2.2
container_name: ruoyi-workflow container_name: workflow
environment: environment:
# 时区上海 # 时区上海
TZ: Asia/Shanghai TZ: Asia/Shanghai
@ -285,9 +284,9 @@ services:
- "9205:9205" - "9205:9205"
volumes: volumes:
# 配置文件 # 配置文件
- /docker/ruoyi-workflow/logs/:/ruoyi/workflow/logs - /docker/workflow/logs/:/dk/workflow/logs
# skywalking 探针 # skywalking 探针
- /docker/skywalking/agent/:/ruoyi/skywalking/agent - /docker/skywalking/agent/:/dk/skywalking/agent
privileged: true privileged: true
network_mode: "host" network_mode: "host"

2
docker/grafana/grafana.ini

@ -336,7 +336,7 @@
;enabled = false ;enabled = false
# specify organization name that should be used for unauthenticated users # specify organization name that should be used for unauthenticated users
;org_name = Main Org. ;org_name = main.java.org.dromara.business.BusinessApplication Org.
# specify role for unauthenticated users # specify role for unauthenticated users
;org_role = Viewer ;org_role = Viewer

71
sql/wayline_module.sql

@ -0,0 +1,71 @@
/*
Navicat Premium Data Transfer
Source Server : 8.0
Source Server Type : MySQL
Source Server Version : 80039
Source Host : 127.0.0.1:3306
Source Schema : jeecg-boot
Target Server Type : MySQL
Target Server Version : 80039
File Encoding : 65001
Date: 15/02/2025 16:05:24
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for wayline_module
-- ----------------------------
DROP TABLE IF EXISTS `wayline_module`;
CREATE TABLE `wayline_module` (
`id` bigint NOT NULL AUTO_INCREMENT,
`dept_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门id',
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门名称',
`platform_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'plough' COMMENT '平台类型',
`platform_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '平台id',
`radius` geomcollection NOT NULL COMMENT '巡查范围',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`, `platform_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for wayline_module_handle
-- ----------------------------
DROP TABLE IF EXISTS `wayline_module_handle`;
CREATE TABLE `wayline_module_handle` (
`id` bigint NOT NULL AUTO_INCREMENT,
`images` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图片',
`max_images` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模板图片',
`mate_source_img_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板图片',
`max_mate_source_img_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板图片',
`lng` double NULL DEFAULT NULL COMMENT '经度',
`lat` double NULL DEFAULT NULL COMMENT '纬度',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`wheel_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务轮id',
`task_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '媒体id',
`dept_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门id',
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门名称',
`job_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预警名称',
`platform_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '平台类型',
`task_image_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for wayline_splice_tiff
-- ----------------------------
DROP TABLE IF EXISTS `wayline_splice_tiff`;
CREATE TABLE `wayline_splice_tiff` (
`id` bigint NOT NULL AUTO_INCREMENT,
`task_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务id',
`file_id` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '航线id',
`path_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图片地址',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
Loading…
Cancel
Save