Compare commits

..

17 Commits

Author SHA1 Message Date
luyya 973fd3228f 省厅位置汇聚初次上传 2024-11-27 09:26:40 +08:00
疯狂的狮子Li ab828a2579 fix 修复 workflow 路由策略与其他服务不一致导致的问题 2024-11-10 00:12:02 +08:00
疯狂的狮子Li 0892121cf7
reset 回滚错误修改
Signed-off-by: 疯狂的狮子Li <15040126243@163.com>
2024-10-28 09:47:13 +00:00
疯狂的狮子Li 31c1c69431
!191 发布 2.2.2 正式版
Merge pull request !191 from 疯狂的狮子Li/dev
2024-10-25 03:11:18 +00:00
疯狂的狮子Li daae5a8ba9 🎀发布 2.2.2 正式版 2024-10-25 11:03:32 +08:00
疯狂的狮子Li f4aef0eda8 update springboot 3.2.10 => 3.2.11
update redisson 3.36.0 => 3.37.0
update mapstruct-plus 1.4.4 => 1.4.5
update anyline 8.7.2-20240930 => 8.7.2-20241022
2024-10-25 10:45:53 +08:00
疯狂的狮子Li c8cb74c52a update 优化 postgres适配findInSet写法 提高查询效率 2024-10-24 14:48:07 +08:00
疯狂的狮子Li 1096c17523 fix 修复 设置流程变量 代码使用错误问题 2024-10-23 17:59:49 +08:00
疯狂的狮子Li 87031a0995 fix 修复 xss过滤器 未过滤url参数问题 2024-10-21 14:01:34 +08:00
疯狂的狮子Li 9018dcb377 fix 修复 代码书写错误 2024-10-21 13:38:44 +08:00
疯狂的狮子Li a703385f70
!186 发布 2.2.1 正式版 安全性提升
Merge pull request !186 from 疯狂的狮子Li/dev
2024-08-26 03:44:38 +00:00
疯狂的狮子Li ccc8e24f09 update 优化 bug 模板 2024-07-15 15:21:00 +08:00
疯狂的狮子Li 442069c8d6 update 优化 删除无用语句 2024-07-09 17:17:17 +08:00
疯狂的狮子Li 1b14f7a327 Merge remote-tracking branch 'origin/dev' into 2.X 2024-07-09 16:40:13 +08:00
疯狂的狮子Li 71b6b04d62
!182 发布 2.2.0
Merge pull request !182 from 疯狂的狮子Li/dev
2024-07-09 02:00:21 +00:00
疯狂的狮子Li 5b63fa83fa
!176 ♥️发布 2.2.0-BETA2 公测版本
Merge pull request !176 from 疯狂的狮子Li/dev
2024-07-01 08:52:35 +00:00
疯狂的狮子Li 27da4e7d20
!166 ♥️发布 2.2.0-BETA 公测版本
Merge pull request !166 from 疯狂的狮子Li/dev
2024-06-06 02:48:32 +00:00
1454 changed files with 9222 additions and 827 deletions

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-auth" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-auth:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-auth:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-auth/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-gateway" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-gateway:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-gateway:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-gateway/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-gen" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-gen:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-gen:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-gen/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-job" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-job:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-job:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-job/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-monitor" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-monitor:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-monitor:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-monitor/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-nacos" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-nacos:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-nacos:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-nacos/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-resource" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-resource:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-resource:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-resource/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-seata-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-seata-server:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-seata-server:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-seata-server/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-sentinel-dashboard" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-sentinel-dashboard:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-sentinel-dashboard:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-sentinel-dashboard/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-snailjob-server" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-snailjob-server:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-snailjob-server:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-visual/ruoyi-snailjob-server/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-system" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-system:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-system:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-system/Dockerfile" />
</settings>

View File

@ -2,7 +2,7 @@
<configuration default="false" name="ruoyi-workflow" type="docker-deploy" factoryName="dockerfile" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="ruoyi/ruoyi-workflow:2.2.1" />
<option name="imageTag" value="ruoyi/ruoyi-workflow:2.2.2" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="ruoyi-modules/ruoyi-workflow/Dockerfile" />
</settings>

View File

@ -9,7 +9,7 @@
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://gitee.com/dromara/RuoYi-Cloud-Plus/blob/master/LICENSE)
[![使用IntelliJ IDEA开发维护](https://img.shields.io/badge/IntelliJ%20IDEA-提供支持-blue.svg)](https://www.jetbrains.com/?from=RuoYi-Cloud-Plus)
<br>
[![RuoYi-Cloud-Plus](https://img.shields.io/badge/RuoYi_Cloud_Plus-2.2.1-success.svg)](https://gitee.com/dromara/RuoYi-Cloud-Plus)
[![RuoYi-Cloud-Plus](https://img.shields.io/badge/RuoYi_Cloud_Plus-2.2.2-success.svg)](https://gitee.com/dromara/RuoYi-Cloud-Plus)
[![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.1-blue.svg)]()
[![JDK-17](https://img.shields.io/badge/JDK-17-green.svg)]()
[![JDK-21](https://img.shields.io/badge/JDK-21-green.svg)]()

View File

@ -60,6 +60,8 @@ spring:
uri: lb://ruoyi-workflow
predicates:
- Path=/workflow/**
filters:
- StripPrefix=1
# 演示服务
- id: ruoyi-demo
uri: lb://ruoyi-demo

View File

@ -29,7 +29,7 @@ services:
network_mode: "host"
nacos:
image: ruoyi/ruoyi-nacos:2.2.1
image: ruoyi/ruoyi-nacos:2.2.2
container_name: nacos
ports:
- "8848:8848"
@ -96,7 +96,7 @@ services:
network_mode: "host"
seata-server:
image: ruoyi/ruoyi-seata-server:2.2.1
image: ruoyi/ruoyi-seata-server:2.2.2
container_name: seata-server
ports:
- "7091:7091"
@ -135,7 +135,7 @@ services:
network_mode: "host"
sentinel:
image: ruoyi/ruoyi-sentinel-dashboard:2.2.1
image: ruoyi/ruoyi-sentinel-dashboard:2.2.2
container_name: sentinel
environment:
TZ: Asia/Shanghai
@ -150,7 +150,7 @@ services:
network_mode: "host"
ruoyi-monitor:
image: ruoyi/ruoyi-monitor:2.2.1
image: ruoyi/ruoyi-monitor:2.2.2
container_name: ruoyi-monitor
environment:
# 时区上海
@ -166,7 +166,7 @@ services:
network_mode: "host"
ruoyi-snailjob-server:
image: ruoyi/ruoyi-snailjob-server:2.2.1
image: ruoyi/ruoyi-snailjob-server:2.2.2
container_name: ruoyi-snailjob-server
environment:
# 时区上海
@ -180,7 +180,7 @@ services:
network_mode: "host"
ruoyi-gateway:
image: ruoyi/ruoyi-gateway:2.2.1
image: ruoyi/ruoyi-gateway:2.2.2
container_name: ruoyi-gateway
environment:
# 时区上海
@ -196,7 +196,7 @@ services:
network_mode: "host"
ruoyi-auth:
image: ruoyi/ruoyi-auth:2.2.1
image: ruoyi/ruoyi-auth:2.2.2
container_name: ruoyi-auth
environment:
# 时区上海
@ -212,7 +212,7 @@ services:
network_mode: "host"
ruoyi-system:
image: ruoyi/ruoyi-system:2.2.1
image: ruoyi/ruoyi-system:2.2.2
container_name: ruoyi-system
environment:
# 时区上海
@ -228,7 +228,7 @@ services:
network_mode: "host"
ruoyi-gen:
image: ruoyi/ruoyi-gen:2.2.1
image: ruoyi/ruoyi-gen:2.2.2
container_name: ruoyi-gen
environment:
# 时区上海
@ -244,7 +244,7 @@ services:
network_mode: "host"
ruoyi-job:
image: ruoyi/ruoyi-job:2.2.1
image: ruoyi/ruoyi-job:2.2.2
container_name: ruoyi-job
environment:
# 时区上海
@ -260,7 +260,7 @@ services:
network_mode: "host"
ruoyi-resource:
image: ruoyi/ruoyi-resource:2.2.1
image: ruoyi/ruoyi-resource:2.2.2
container_name: ruoyi-resource
environment:
# 时区上海
@ -276,7 +276,7 @@ services:
network_mode: "host"
ruoyi-workflow:
image: ruoyi/ruoyi-workflow:2.2.1
image: ruoyi/ruoyi-workflow:2.2.2
container_name: ruoyi-workflow
environment:
# 时区上海

38
pom.xml
View File

@ -5,19 +5,19 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-cloud-plus</artifactId>
<artifactId>stwzhj-cloud-plus</artifactId>
<version>${revision}</version>
<name>RuoYi-Cloud-Plus</name>
<url>https://gitee.com/dromara/RuoYi-Cloud-Plus</url>
<description>RuoYi-Cloud-Plus微服务系统</description>
<name>Stwzhj-Cloud-Plus</name>
<url>https://gitee.com/dromara/stwzhj-Cloud-Plus</url>
<description>Stwzhj-Cloud-Plus微服务系统</description>
<properties>
<revision>2.2.1</revision>
<revision>2.2.2</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>17</java.version>
<spring-boot.version>3.2.10</spring-boot.version>
<spring-boot.version>3.2.11</spring-boot.version>
<spring-cloud.version>2023.0.3</spring-cloud.version>
<spring-boot-admin.version>3.2.3</spring-boot-admin.version>
<mybatis.version>3.5.16</mybatis.version>
@ -30,7 +30,7 @@
<therapi-javadoc.version>0.15.0</therapi-javadoc.version>
<easyexcel.version>4.0.3</easyexcel.version>
<hutool.version>5.8.31</hutool.version>
<redisson.version>3.36.0</redisson.version>
<redisson.version>3.37.0</redisson.version>
<lock4j.version>2.2.7</lock4j.version>
<snailjob.version>1.1.2</snailjob.version>
<satoken.version>1.39.0</satoken.version>
@ -40,7 +40,7 @@
<elasticsearch.version>7.14.0</elasticsearch.version>
<skywalking-toolkit.version>9.2.0</skywalking-toolkit.version>
<bouncycastle.version>1.76</bouncycastle.version>
<mapstruct-plus.version>1.4.4</mapstruct-plus.version>
<mapstruct-plus.version>1.4.5</mapstruct-plus.version>
<mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
<justauth.version>1.16.6</justauth.version>
<!-- 离线IP地址定位库 -->
@ -55,7 +55,7 @@
<!-- SMS 配置 -->
<sms4j.version>3.3.3</sms4j.version>
<!-- 面向运行时的D-ORM依赖 -->
<anyline.version>8.7.2-20240930</anyline.version>
<anyline.version>8.7.2-20241022</anyline.version>
<!-- 工作流配置 -->
<flowable.version>7.0.1</flowable.version>
<!-- mq配置 -->
@ -115,7 +115,7 @@
<!-- SpringCloud Alibaba 微服务 -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-alibaba-bom</artifactId>
<artifactId>stwzhj-common-alibaba-bom</artifactId>
<version>${revision}</version>
<type>pom</type>
<scope>import</scope>
@ -149,7 +149,7 @@
<!-- common 的依赖配置-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-bom</artifactId>
<artifactId>stwzhj-common-bom</artifactId>
<version>${revision}</version>
<type>pom</type>
<scope>import</scope>
@ -158,7 +158,7 @@
<!-- api 的依赖配置-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-bom</artifactId>
<artifactId>stwzhj-api-bom</artifactId>
<version>${revision}</version>
<type>pom</type>
<scope>import</scope>
@ -375,13 +375,13 @@
</dependencyManagement>
<modules>
<module>ruoyi-auth</module>
<module>ruoyi-gateway</module>
<module>ruoyi-visual</module>
<module>ruoyi-modules</module>
<module>ruoyi-api</module>
<module>ruoyi-common</module>
<module>ruoyi-example</module>
<module>stwzhj-auth</module>
<module>stwzhj-gateway</module>
<module>stwzhj-visual</module>
<module>stwzhj-modules</module>
<module>stwzhj-api</module>
<module>stwzhj-common</module>
<module>stwzhj-example</module>
</modules>
<packaging>pom</packaging>

View File

@ -1,57 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-cloud-plus</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<modules>
<module>ruoyi-common-bom</module>
<module>ruoyi-common-alibaba-bom</module>
<module>ruoyi-common-log</module>
<module>ruoyi-common-dict</module>
<module>ruoyi-common-excel</module>
<module>ruoyi-common-core</module>
<module>ruoyi-common-redis</module>
<module>ruoyi-common-doc</module>
<module>ruoyi-common-security</module>
<module>ruoyi-common-satoken</module>
<module>ruoyi-common-web</module>
<module>ruoyi-common-mybatis</module>
<module>ruoyi-common-job</module>
<module>ruoyi-common-dubbo</module>
<module>ruoyi-common-seata</module>
<module>ruoyi-common-loadbalancer</module>
<module>ruoyi-common-oss</module>
<module>ruoyi-common-ratelimiter</module>
<module>ruoyi-common-idempotent</module>
<module>ruoyi-common-mail</module>
<module>ruoyi-common-sms</module>
<module>ruoyi-common-logstash</module>
<module>ruoyi-common-elasticsearch</module>
<module>ruoyi-common-sentinel</module>
<module>ruoyi-common-skylog</module>
<module>ruoyi-common-prometheus</module>
<module>ruoyi-common-translation</module>
<module>ruoyi-common-sensitive</module>
<module>ruoyi-common-json</module>
<module>ruoyi-common-encrypt</module>
<module>ruoyi-common-tenant</module>
<module>ruoyi-common-websocket</module>
<module>ruoyi-common-social</module>
<module>ruoyi-common-nacos</module>
<module>ruoyi-common-bus</module>
<module>ruoyi-common-sse</module>
</modules>
<artifactId>ruoyi-common</artifactId>
<packaging>pom</packaging>
<description>
ruoyi-common通用模块
</description>
</project>

View File

@ -1,36 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.dromara.system.mapper.SysDeptMapper">
<resultMap type="org.dromara.system.domain.vo.SysDeptVo" id="SysDeptResult">
</resultMap>
<select id="selectDeptList" resultMap="SysDeptResult">
select
<if test="ew.getSqlSelect != null">
${ew.getSqlSelect}
</if>
<if test="ew.getSqlSelect == null">
*
</if>
from sys_dept ${ew.getCustomSqlSegment}
</select>
<select id="countDeptById" resultType="Long">
select count(*) from sys_dept where del_flag = '0' and dept_id = #{deptId}
</select>
<select id="selectDeptListByRoleId" resultType="Long">
select d.dept_id
from sys_dept d
left join sys_role_dept rd on d.dept_id = rd.dept_id
where rd.role_id = #{roleId}
<if test="deptCheckStrictly">
and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId})
</if>
order by d.parent_id, d.order_num
</select>
</mapper>

View File

@ -1,63 +0,0 @@
package com.alibaba.nacos.config;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class ActuatorAuthFilter implements Filter {
private final String username;
private final String password;
public ActuatorAuthFilter(String username, String password) {
this.username = username;
this.password = password;
}
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpServletResponse response = (HttpServletResponse) servletResponse;
// 获取 Authorization 头
String authHeader = request.getHeader("Authorization");
if (authHeader == null || !authHeader.startsWith("Basic ")) {
// 如果没有提供 Authorization 或者格式不对,则返回 401
response.setHeader("WWW-Authenticate", "Basic realm=\"realm\"");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
return;
}
// 解码 Base64 编码的用户名和密码
String base64Credentials = authHeader.substring("Basic ".length());
byte[] credDecoded = Base64.getDecoder().decode(base64Credentials);
String credentials = new String(credDecoded, StandardCharsets.UTF_8);
String[] split = credentials.split(":");
if (split.length != 2) {
response.setHeader("WWW-Authenticate", "Basic realm=\"realm\"");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
return;
}
// 验证用户名和密码
if (!username.equals(split[0]) && password.equals(split[1])) {
response.setHeader("WWW-Authenticate", "Basic realm=\"realm\"");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
return;
}
// 如果认证成功,继续处理请求
filterChain.doFilter(request, response);
}
@Override
public void init(FilterConfig filterConfig) {
}
@Override
public void destroy() {
}
}

View File

@ -1,29 +0,0 @@
package com.alibaba.nacos.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
*
*
* @author Lion Li
*/
@Configuration
public class SecurityConfig {
@Value("${spring.boot.admin.client.username}")
private String username;
@Value("${spring.boot.admin.client.password}")
private String password;
@Bean
public FilterRegistrationBean<ActuatorAuthFilter> actuatorFilterRegistrationBean() {
FilterRegistrationBean<ActuatorAuthFilter> registrationBean = new FilterRegistrationBean<>();
registrationBean.setFilter(new ActuatorAuthFilter(username, password));
registrationBean.addUrlPatterns("/actuator", "/actuator/**");
return registrationBean;
}
}

View File

@ -3,23 +3,24 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-cloud-plus</artifactId>
<artifactId>stwzhj-cloud-plus</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<modules>
<module>ruoyi-api-bom</module>
<module>ruoyi-api-system</module>
<module>ruoyi-api-resource</module>
<module>ruoyi-api-workflow</module>
<module>stwzhj-api-bom</module>
<module>stwzhj-api-system</module>
<module>stwzhj-api-resource</module>
<module>stwzhj-api-workflow</module>
<module>stwzhj-api-data2es</module>
</modules>
<artifactId>ruoyi-api</artifactId>
<artifactId>stwzhj-api</artifactId>
<packaging>pom</packaging>
<description>
ruoyi-api系统接口
stwzhj-api系统接口
</description>
</project>

View File

@ -6,16 +6,16 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-bom</artifactId>
<artifactId>stwzhj-api-bom</artifactId>
<packaging>pom</packaging>
<version>${revision}</version>
<description>
ruoyi-api-bom api依赖项
stwzhj-api-bom api依赖项
</description>
<properties>
<revision>2.2.1</revision>
<revision>2.2.2</revision>
</properties>
<dependencyManagement>
@ -23,21 +23,27 @@
<!-- 系统接口 -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-system</artifactId>
<artifactId>stwzhj-api-system</artifactId>
<version>${revision}</version>
</dependency>
<!-- 资源服务接口 -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-resource</artifactId>
<artifactId>stwzhj-api-resource</artifactId>
<version>${revision}</version>
</dependency>
<!-- workflow接口 -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-workflow</artifactId>
<artifactId>stwzhj-api-workflow</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-api-data2es</artifactId>
<version>${revision}</version>
</dependency>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-api</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>stwzhj-api-data2es</artifactId>
<description>
stwzhj-api-data2es数据处理接口模块
</description>
<dependencies>
<!-- stwzhj Common Core-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-core</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-excel</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,11 @@
package org.dromara.data2es.api;
import org.dromara.common.core.domain.R;
import org.dromara.data2es.api.domain.RemoteGpsInfo;
import java.util.List;
public interface RemoteDataToEsService {
R saveDataBatch(List<RemoteGpsInfo> gpsInfoList);
}

View File

@ -0,0 +1,48 @@
package org.dromara.data2es.api.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* <p>description: </p>
*
* @author chenle
* @date 2022-04-16 14:59
*/
@Data
public class RemoteGpsInfo implements Serializable {
/**
*
*/
private String deviceCode;
/**
*
*/
private String deviceType;
private String lat;
private String lng;
//方向
private String orientation;
//高程
private String height;
//精度
private String deltaH;
private String speed;
private String zzjgdm;
private String zzjgmc;
private String policeNo;
private String policeName;
private String phoneNum;
private String carNum;
private Integer online;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date gpsTime;
//3401,3402等地市代码
private String infoSource;
}

View File

@ -4,23 +4,23 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api</artifactId>
<artifactId>stwzhj-api</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-api-resource</artifactId>
<artifactId>stwzhj-api-resource</artifactId>
<description>
ruoyi-api-resource 资源服务接口模块
stwzhj-api-resource 资源服务接口模块
</description>
<dependencies>
<!-- RuoYi Common Core-->
<!-- stwzhj Common Core-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-core</artifactId>
<artifactId>stwzhj-common-core</artifactId>
</dependency>
</dependencies>

View File

@ -4,28 +4,28 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api</artifactId>
<artifactId>stwzhj-api</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-api-system</artifactId>
<artifactId>stwzhj-api-system</artifactId>
<description>
ruoyi-api-system系统接口模块
stwzhj-api-system系统接口模块
</description>
<dependencies>
<!-- RuoYi Common Core-->
<!-- stwzhj Common Core-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-core</artifactId>
<artifactId>stwzhj-common-core</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-excel</artifactId>
<artifactId>stwzhj-common-excel</artifactId>
</dependency>
</dependencies>

View File

@ -21,6 +21,6 @@ public interface RemoteDataScopeService {
* @param deptId ID
* @return null
*/
String getDeptAndChild(Long deptId);
String getDeptAndChild(String deptId);
}

View File

@ -0,0 +1,20 @@
package org.dromara.system.api;
import org.dromara.common.core.domain.R;
import org.dromara.system.api.domain.bo.RemoteDeviceBo;
import org.dromara.system.api.domain.bo.RemoteDeviceToStBo;
import org.dromara.system.api.domain.vo.RemoteDeviceVo;
import java.util.List;
public interface RemoteDeviceService {
boolean batchSaveDevice(List<RemoteDeviceBo> boList);
R pageDeviceList(RemoteDeviceBo bo);
List<RemoteDeviceVo> deviceList(RemoteDeviceBo bo);
R saveDeviceToSt(String infoSource, List<RemoteDeviceBo> list);
}

View File

@ -0,0 +1,93 @@
package org.dromara.system.api.domain.bo;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import java.io.Serial;
import java.io.Serializable;
@Data
@NoArgsConstructor
public class RemoteDeviceBo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long id;
/**
* 21
*/
@NotBlank(message = "设备编号不能为空", groups = { AddGroup.class, EditGroup.class })
private String deviceCode;
/**
*
*/
@NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
private String deviceType;
private String infoSource;
/**
*
*/
@NotBlank(message = "组织机构代码不能为空", groups = { AddGroup.class, EditGroup.class })
private String zzjgdm;
/**
*
*/
@NotBlank(message = "组织机构名称不能为空", groups = { AddGroup.class, EditGroup.class })
private String zzjgmc;
/**
*
*/
private String policeNo;
/**
*
*/
private String policeName;
/**
*
*/
private String phoneNum;
/**
*
*/
private String carNum;
/**
* 01
*/
private Integer valid;
/**
* 1
*/
private String remark1;
/**
* 2
*/
private String remark2;
private String beginTime;
private String endTime;
private Integer pageNum;
private Integer pageSize;
}

View File

@ -0,0 +1,19 @@
package org.dromara.system.api.domain.bo;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
@Data
public class RemoteDeviceToStBo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private String infoSource;
private List<RemoteDeviceBo> deviceBoList;
}

View File

@ -0,0 +1,85 @@
package org.dromara.system.api.domain.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import java.io.Serial;
import java.io.Serializable;
@Data
public class RemoteDeviceVo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long id;
/**
* 21
*/
private String deviceCode;
/**
*
*/
private String deviceType;
private String infoSource;
/**
*
*/
private String zzjgdm;
/**
*
*/
private String zzjgmc;
/**
*
*/
private String policeNo;
/**
*
*/
private String policeName;
/**
*
*/
private String phoneNum;
/**
*
*/
private String carNum;
/**
* 01
*/
private Integer valid;
/**
* 1
*/
private String remark1;
/**
* 2
*/
private String remark2;
private String createTime;
private String updateTime;
}

View File

@ -33,7 +33,7 @@ public class LoginUser implements Serializable {
/**
* ID
*/
private Long deptId;
private String deptId;
/**
*

View File

@ -4,27 +4,27 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api</artifactId>
<artifactId>stwzhj-api</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-api-workflow</artifactId>
<artifactId>stwzhj-api-workflow</artifactId>
<description>
ruoyi-api-workflow 工作流接口模块
stwzhj-api-workflow 工作流接口模块
</description>
<dependencies>
<!-- RuoYi Common Core-->
<!-- stwzhj Common Core-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-core</artifactId>
<artifactId>stwzhj-common-core</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-bus</artifactId>
<artifactId>stwzhj-common-bus</artifactId>
</dependency>
</dependencies>

View File

@ -3,22 +3,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-cloud-plus</artifactId>
<artifactId>stwzhj-cloud-plus</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-auth</artifactId>
<artifactId>stwzhj-auth</artifactId>
<description>
ruoyi-auth 认证授权中心
stwzhj-auth 认证授权中心
</description>
<dependencies>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-nacos</artifactId>
<artifactId>stwzhj-common-nacos</artifactId>
</dependency>
<dependency>
@ -28,86 +28,86 @@
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-sentinel</artifactId>
<artifactId>stwzhj-common-sentinel</artifactId>
</dependency>
<!-- RuoYi Common Security-->
<!-- stwzhj Common Security-->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-security</artifactId>
<artifactId>stwzhj-common-security</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-social</artifactId>
<artifactId>stwzhj-common-social</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<!-- stwzhj Common Log -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-log</artifactId>
<artifactId>stwzhj-common-log</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-doc</artifactId>
<artifactId>stwzhj-common-doc</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-web</artifactId>
<artifactId>stwzhj-common-web</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-ratelimiter</artifactId>
<artifactId>stwzhj-common-ratelimiter</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-encrypt</artifactId>
<artifactId>stwzhj-common-encrypt</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-dubbo</artifactId>
<artifactId>stwzhj-common-dubbo</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-seata</artifactId>
<artifactId>stwzhj-common-seata</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-tenant</artifactId>
<artifactId>stwzhj-common-tenant</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-api-resource</artifactId>
<artifactId>stwzhj-api-resource</artifactId>
</dependency>
<!-- 自定义负载均衡(多团队开发使用) -->
<!-- <dependency>-->
<!-- <groupId>org.dromara</groupId>-->
<!-- <artifactId>ruoyi-common-loadbalancer</artifactId>-->
<!-- <artifactId>stwzhj-common-loadbalancer</artifactId>-->
<!-- </dependency>-->
<!-- ELK 日志收集 -->
<!-- <dependency>-->
<!-- <groupId>org.dromara</groupId>-->
<!-- <artifactId>ruoyi-common-logstash</artifactId>-->
<!-- <artifactId>stwzhj-common-logstash</artifactId>-->
<!-- </dependency>-->
<!-- skywalking 日志收集 -->
<!-- <dependency>-->
<!-- <groupId>org.dromara</groupId>-->
<!-- <artifactId>ruoyi-common-skylog</artifactId>-->
<!-- <artifactId>stwzhj-common-skylog</artifactId>-->
<!-- </dependency>-->
<!-- prometheus 监控 -->
<!-- <dependency>-->
<!-- <groupId>org.dromara</groupId>-->
<!-- <artifactId>ruoyi-common-prometheus</artifactId>-->
<!-- <artifactId>stwzhj-common-prometheus</artifactId>-->
<!-- </dependency>-->
</dependencies>

View File

@ -107,6 +107,30 @@ public class TokenController {
return R.ok(loginVo);
}
/**
* Token
*
* @param body
* @return
*/
@ApiEncrypt
@PostMapping("/getToken")
public R<LoginVo> getToken(@RequestBody String body) {
LoginBody loginBody = JsonUtils.parseObject(body, LoginBody.class);
ValidatorUtils.validate(loginBody);
// 授权类型和客户端id
String clientId = "e5cd7e4891bf95d1d19206ce24a7b32e";
String grantType = "password";
RemoteClientVo clientVo = remoteClientService.queryByClientId(clientId);
// 登录
LoginVo loginVo = IAuthStrategy.login(body, clientVo, grantType);
return R.ok(loginVo);
}
/**
*
*

View File

@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
name: ruoyi-auth
name: stwzhj-auth
profiles:
# 环境配置
active: @profiles.active@

View File

@ -1,10 +1,10 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_ _ _
(_) | | | |
_ __ _ _ ___ _ _ _ ______ __ _ _ _ | |_ | |__
| '__|| | | | / _ \ | | | || ||______| / _` || | | || __|| '_ \
| | | |_| || (_) || |_| || | | (_| || |_| || |_ | | | |
|_| \__,_| \___/ \__, ||_| \__,_| \__,_| \__||_| |_|
__/ |
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_ _ _
(_) | | | |
_ __ _ _ ___ _ _ _ ______ __ _ _ _ | |_ | |__
| '__|| | | | / _ \ | | | || ||______| / _` || | | || __|| '_ \
| | | |_| || (_) || |_| || | | (_| || |_| || |_ | | | |
|_| \__,_| \___/ \__, ||_| \__,_| \__,_| \__||_| |_|
__/ |
|___/

57
stwzhj-common/pom.xml Normal file
View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-cloud-plus</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<modules>
<module>stwzhj-common-bom</module>
<module>stwzhj-common-alibaba-bom</module>
<module>stwzhj-common-log</module>
<module>stwzhj-common-dict</module>
<module>stwzhj-common-excel</module>
<module>stwzhj-common-core</module>
<module>stwzhj-common-redis</module>
<module>stwzhj-common-doc</module>
<module>stwzhj-common-security</module>
<module>stwzhj-common-satoken</module>
<module>stwzhj-common-web</module>
<module>stwzhj-common-mybatis</module>
<module>stwzhj-common-job</module>
<module>stwzhj-common-dubbo</module>
<module>stwzhj-common-seata</module>
<module>stwzhj-common-loadbalancer</module>
<module>stwzhj-common-oss</module>
<module>stwzhj-common-ratelimiter</module>
<module>stwzhj-common-idempotent</module>
<module>stwzhj-common-mail</module>
<module>stwzhj-common-sms</module>
<module>stwzhj-common-logstash</module>
<module>stwzhj-common-elasticsearch</module>
<module>stwzhj-common-sentinel</module>
<module>stwzhj-common-skylog</module>
<module>stwzhj-common-prometheus</module>
<module>stwzhj-common-translation</module>
<module>stwzhj-common-sensitive</module>
<module>stwzhj-common-json</module>
<module>stwzhj-common-encrypt</module>
<module>stwzhj-common-tenant</module>
<module>stwzhj-common-websocket</module>
<module>stwzhj-common-social</module>
<module>stwzhj-common-nacos</module>
<module>stwzhj-common-bus</module>
<module>stwzhj-common-sse</module>
</modules>
<artifactId>stwzhj-common</artifactId>
<packaging>pom</packaging>
<description>
stwzhj-common通用模块
</description>
</project>

View File

@ -5,16 +5,16 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-alibaba-bom</artifactId>
<artifactId>stwzhj-common-alibaba-bom</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<description>
ruoyi-common-alibaba-bom alibaba依赖项
stwzhj-common-alibaba-bom alibaba依赖项
</description>
<properties>
<revision>2.2.1</revision>
<revision>2.2.2</revision>
<spring-cloud-alibaba.version>2023.0.1.2</spring-cloud-alibaba.version>
<sentinel.version>1.8.8</sentinel.version>
<seata.version>1.7.1</seata.version>

Some files were not shown because too many files have changed in this diff Show More