diff --git a/pom.xml b/pom.xml
index c74a8b9b..407524fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,12 +5,12 @@
4.0.0
org.dromara
- ruoyi-cloud-plus
+ stwzhj-cloud-plus
${revision}
- RuoYi-Cloud-Plus
- https://gitee.com/dromara/RuoYi-Cloud-Plus
- RuoYi-Cloud-Plus微服务系统
+ Stwzhj-Cloud-Plus
+ https://gitee.com/dromara/stwzhj-Cloud-Plus
+ Stwzhj-Cloud-Plus微服务系统
2.2.2
@@ -115,7 +115,7 @@
org.dromara
- ruoyi-common-alibaba-bom
+ stwzhj-common-alibaba-bom
${revision}
pom
import
@@ -149,7 +149,7 @@
org.dromara
- ruoyi-common-bom
+ stwzhj-common-bom
${revision}
pom
import
@@ -158,7 +158,7 @@
org.dromara
- ruoyi-api-bom
+ stwzhj-api-bom
${revision}
pom
import
@@ -375,13 +375,13 @@
- ruoyi-auth
- ruoyi-gateway
- ruoyi-visual
- ruoyi-modules
- ruoyi-api
- ruoyi-common
- ruoyi-example
+ stwzhj-auth
+ stwzhj-gateway
+ stwzhj-visual
+ stwzhj-modules
+ stwzhj-api
+ stwzhj-common
+ stwzhj-example
pom
diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml
deleted file mode 100644
index 48e00955..00000000
--- a/ruoyi-common/pom.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
- org.dromara
- ruoyi-cloud-plus
- ${revision}
-
- 4.0.0
-
-
- ruoyi-common-bom
- ruoyi-common-alibaba-bom
- ruoyi-common-log
- ruoyi-common-dict
- ruoyi-common-excel
- ruoyi-common-core
- ruoyi-common-redis
- ruoyi-common-doc
- ruoyi-common-security
- ruoyi-common-satoken
- ruoyi-common-web
- ruoyi-common-mybatis
- ruoyi-common-job
- ruoyi-common-dubbo
- ruoyi-common-seata
- ruoyi-common-loadbalancer
- ruoyi-common-oss
- ruoyi-common-ratelimiter
- ruoyi-common-idempotent
- ruoyi-common-mail
- ruoyi-common-sms
- ruoyi-common-logstash
- ruoyi-common-elasticsearch
- ruoyi-common-sentinel
- ruoyi-common-skylog
- ruoyi-common-prometheus
- ruoyi-common-translation
- ruoyi-common-sensitive
- ruoyi-common-json
- ruoyi-common-encrypt
- ruoyi-common-tenant
- ruoyi-common-websocket
- ruoyi-common-social
- ruoyi-common-nacos
- ruoyi-common-bus
- ruoyi-common-sse
-
-
- ruoyi-common
- pom
-
-
- ruoyi-common通用模块
-
-
-
diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
deleted file mode 100644
index 6ad866f2..00000000
--- a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ruoyi-visual/ruoyi-nacos/src/main/java/com/alibaba/nacos/config/ActuatorAuthFilter.java b/ruoyi-visual/ruoyi-nacos/src/main/java/com/alibaba/nacos/config/ActuatorAuthFilter.java
deleted file mode 100644
index 1b857c39..00000000
--- a/ruoyi-visual/ruoyi-nacos/src/main/java/com/alibaba/nacos/config/ActuatorAuthFilter.java
+++ /dev/null
@@ -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() {
- }
-
-}
diff --git a/ruoyi-visual/ruoyi-nacos/src/main/java/com/alibaba/nacos/config/SecurityConfig.java b/ruoyi-visual/ruoyi-nacos/src/main/java/com/alibaba/nacos/config/SecurityConfig.java
deleted file mode 100644
index e38ae3f6..00000000
--- a/ruoyi-visual/ruoyi-nacos/src/main/java/com/alibaba/nacos/config/SecurityConfig.java
+++ /dev/null
@@ -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 actuatorFilterRegistrationBean() {
- FilterRegistrationBean registrationBean = new FilterRegistrationBean<>();
- registrationBean.setFilter(new ActuatorAuthFilter(username, password));
- registrationBean.addUrlPatterns("/actuator", "/actuator/**");
- return registrationBean;
- }
-
-}
diff --git a/ruoyi-api/pom.xml b/stwzhj-api/pom.xml
similarity index 60%
rename from ruoyi-api/pom.xml
rename to stwzhj-api/pom.xml
index 8b5f0b9e..38a3e4a9 100644
--- a/ruoyi-api/pom.xml
+++ b/stwzhj-api/pom.xml
@@ -3,23 +3,24 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-cloud-plus
+ stwzhj-cloud-plus
${revision}
4.0.0
- ruoyi-api-bom
- ruoyi-api-system
- ruoyi-api-resource
- ruoyi-api-workflow
+ stwzhj-api-bom
+ stwzhj-api-system
+ stwzhj-api-resource
+ stwzhj-api-workflow
+ stwzhj-api-data2es
- ruoyi-api
+ stwzhj-api
pom
- ruoyi-api系统接口
+ stwzhj-api系统接口
diff --git a/ruoyi-api/ruoyi-api-bom/pom.xml b/stwzhj-api/stwzhj-api-bom/pom.xml
similarity index 71%
rename from ruoyi-api/ruoyi-api-bom/pom.xml
rename to stwzhj-api/stwzhj-api-bom/pom.xml
index c2926347..f1e1c317 100644
--- a/ruoyi-api/ruoyi-api-bom/pom.xml
+++ b/stwzhj-api/stwzhj-api-bom/pom.xml
@@ -6,12 +6,12 @@
4.0.0
org.dromara
- ruoyi-api-bom
+ stwzhj-api-bom
pom
${revision}
- ruoyi-api-bom api依赖项
+ stwzhj-api-bom api依赖项
@@ -23,21 +23,27 @@
org.dromara
- ruoyi-api-system
+ stwzhj-api-system
${revision}
org.dromara
- ruoyi-api-resource
+ stwzhj-api-resource
${revision}
org.dromara
- ruoyi-api-workflow
+ stwzhj-api-workflow
+ ${revision}
+
+
+
+ org.dromara
+ stwzhj-api-data2es
${revision}
diff --git a/stwzhj-api/stwzhj-api-data2es/pom.xml b/stwzhj-api/stwzhj-api-data2es/pom.xml
new file mode 100644
index 00000000..dfd4cc1c
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-data2es/pom.xml
@@ -0,0 +1,33 @@
+
+
+
+ org.dromara
+ stwzhj-api
+ ${revision}
+
+ 4.0.0
+
+ stwzhj-api-data2es
+
+
+ stwzhj-api-data2es数据处理接口模块
+
+
+
+
+
+
+ org.dromara
+ stwzhj-common-core
+
+
+
+ org.dromara
+ stwzhj-common-excel
+
+
+
+
+
diff --git a/stwzhj-api/stwzhj-api-data2es/src/main/java/org/dromara/data2es/api/RemoteDataToEsService.java b/stwzhj-api/stwzhj-api-data2es/src/main/java/org/dromara/data2es/api/RemoteDataToEsService.java
new file mode 100644
index 00000000..92fa899f
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-data2es/src/main/java/org/dromara/data2es/api/RemoteDataToEsService.java
@@ -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 gpsInfoList);
+}
diff --git a/stwzhj-api/stwzhj-api-data2es/src/main/java/org/dromara/data2es/api/domain/RemoteGpsInfo.java b/stwzhj-api/stwzhj-api-data2es/src/main/java/org/dromara/data2es/api/domain/RemoteGpsInfo.java
new file mode 100644
index 00000000..598c0a2f
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-data2es/src/main/java/org/dromara/data2es/api/domain/RemoteGpsInfo.java
@@ -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;
+
+/**
+ * description:
+ *
+ * @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;
+}
diff --git a/ruoyi-api/ruoyi-api-resource/pom.xml b/stwzhj-api/stwzhj-api-resource/pom.xml
similarity index 71%
rename from ruoyi-api/ruoyi-api-resource/pom.xml
rename to stwzhj-api/stwzhj-api-resource/pom.xml
index 4a4f7289..ab6d5307 100644
--- a/ruoyi-api/ruoyi-api-resource/pom.xml
+++ b/stwzhj-api/stwzhj-api-resource/pom.xml
@@ -4,23 +4,23 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-api
+ stwzhj-api
${revision}
4.0.0
- ruoyi-api-resource
+ stwzhj-api-resource
- ruoyi-api-resource 资源服务接口模块
+ stwzhj-api-resource 资源服务接口模块
-
+
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteFileService.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteFileService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteFileService.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteFileService.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteFileServiceMock.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteFileServiceMock.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteFileServiceMock.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteFileServiceMock.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteMailService.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteMailService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteMailService.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteMailService.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageService.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageService.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageService.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageServiceStub.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageServiceStub.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageServiceStub.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteMessageServiceStub.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteSmsService.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteSmsService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/RemoteSmsService.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/RemoteSmsService.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteFile.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteFile.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteFile.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteFile.java
diff --git a/ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteSms.java b/stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteSms.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteSms.java
rename to stwzhj-api/stwzhj-api-resource/src/main/java/org/dromara/resource/api/domain/RemoteSms.java
diff --git a/ruoyi-api/ruoyi-api-system/pom.xml b/stwzhj-api/stwzhj-api-system/pom.xml
similarity index 70%
rename from ruoyi-api/ruoyi-api-system/pom.xml
rename to stwzhj-api/stwzhj-api-system/pom.xml
index 02958f35..13c4b5be 100644
--- a/ruoyi-api/ruoyi-api-system/pom.xml
+++ b/stwzhj-api/stwzhj-api-system/pom.xml
@@ -4,28 +4,28 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-api
+ stwzhj-api
${revision}
4.0.0
- ruoyi-api-system
+ stwzhj-api-system
- ruoyi-api-system系统接口模块
+ stwzhj-api-system系统接口模块
-
+
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
org.dromara
- ruoyi-common-excel
+ stwzhj-common-excel
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteClientService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteClientService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteClientService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteClientService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteConfigService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteConfigService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteConfigService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteConfigService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDataScopeService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDataScopeService.java
similarity index 92%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDataScopeService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDataScopeService.java
index d6a40056..ad246a58 100644
--- a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDataScopeService.java
+++ b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDataScopeService.java
@@ -21,6 +21,6 @@ public interface RemoteDataScopeService {
* @param deptId 部门ID
* @return 返回部门及其下级的权限语句,如果没有找到则返回 null
*/
- String getDeptAndChild(Long deptId);
+ String getDeptAndChild(String deptId);
}
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDeptService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDeptService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDeptService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDeptService.java
diff --git a/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDeviceService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDeviceService.java
new file mode 100644
index 00000000..13ae3840
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDeviceService.java
@@ -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 boList);
+
+ R pageDeviceList(RemoteDeviceBo bo);
+
+ List deviceList(RemoteDeviceBo bo);
+
+ R saveDeviceToSt(String infoSource, List list);
+
+}
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDictService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDictService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteDictService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteDictService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteLogService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteLogService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteLogService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteLogService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteSocialService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteSocialService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteSocialService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteSocialService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteTenantService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteTenantService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteTenantService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteTenantService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteUserService.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteUserService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/RemoteUserService.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/RemoteUserService.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/SysUserOnline.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/SysUserOnline.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/SysUserOnline.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/SysUserOnline.java
diff --git a/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteDeviceBo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteDeviceBo.java
new file mode 100644
index 00000000..ccabe023
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteDeviceBo.java
@@ -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;
+
+ /**
+ * 0无效,1有效
+ */
+ private Integer valid;
+
+ /**
+ * 备注字段1
+ */
+ private String remark1;
+
+ /**
+ * 备注字段2
+ */
+ private String remark2;
+
+ private String beginTime;
+
+ private String endTime;
+
+ private Integer pageNum;
+
+ private Integer pageSize;
+
+}
diff --git a/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteDeviceToStBo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteDeviceToStBo.java
new file mode 100644
index 00000000..bda3580c
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteDeviceToStBo.java
@@ -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 deviceBoList;
+
+}
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteLogininforBo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteLogininforBo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteLogininforBo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteLogininforBo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteOperLogBo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteOperLogBo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteOperLogBo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteOperLogBo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteSocialBo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteSocialBo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteSocialBo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteSocialBo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteUserBo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteUserBo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteUserBo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/bo/RemoteUserBo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteClientVo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteClientVo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteClientVo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteClientVo.java
diff --git a/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDeviceVo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDeviceVo.java
new file mode 100644
index 00000000..ee8e6deb
--- /dev/null
+++ b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDeviceVo.java
@@ -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;
+
+ /**
+ * 0无效,1有效
+ */
+ private Integer valid;
+
+ /**
+ * 备注字段1
+ */
+ private String remark1;
+
+ /**
+ * 备注字段2
+ */
+ private String remark2;
+
+ private String createTime;
+
+ private String updateTime;
+}
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDictDataVo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDictDataVo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDictDataVo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteDictDataVo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteSocialVo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteSocialVo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteSocialVo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteSocialVo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteTenantVo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteTenantVo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteTenantVo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteTenantVo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteUserVo.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteUserVo.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteUserVo.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/domain/vo/RemoteUserVo.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/LoginUser.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/LoginUser.java
similarity index 98%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/LoginUser.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/LoginUser.java
index 405a87f0..b6c1fce0 100644
--- a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/LoginUser.java
+++ b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/LoginUser.java
@@ -33,7 +33,7 @@ public class LoginUser implements Serializable {
/**
* 部门ID
*/
- private Long deptId;
+ private String deptId;
/**
* 部门类别编码
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/RoleDTO.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/RoleDTO.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/RoleDTO.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/RoleDTO.java
diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/XcxLoginUser.java b/stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/XcxLoginUser.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-system/src/main/java/org/dromara/system/api/model/XcxLoginUser.java
rename to stwzhj-api/stwzhj-api-system/src/main/java/org/dromara/system/api/model/XcxLoginUser.java
diff --git a/ruoyi-api/ruoyi-api-workflow/pom.xml b/stwzhj-api/stwzhj-api-workflow/pom.xml
similarity index 69%
rename from ruoyi-api/ruoyi-api-workflow/pom.xml
rename to stwzhj-api/stwzhj-api-workflow/pom.xml
index 45c32d06..c9909612 100644
--- a/ruoyi-api/ruoyi-api-workflow/pom.xml
+++ b/stwzhj-api/stwzhj-api-workflow/pom.xml
@@ -4,27 +4,27 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-api
+ stwzhj-api
${revision}
4.0.0
- ruoyi-api-workflow
+ stwzhj-api-workflow
- ruoyi-api-workflow 工作流接口模块
+ stwzhj-api-workflow 工作流接口模块
-
+
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
org.dromara
- ruoyi-common-bus
+ stwzhj-common-bus
diff --git a/ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/domain/RemoteWorkflowService.java b/stwzhj-api/stwzhj-api-workflow/src/main/java/org/dromara/workflow/api/domain/RemoteWorkflowService.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/domain/RemoteWorkflowService.java
rename to stwzhj-api/stwzhj-api-workflow/src/main/java/org/dromara/workflow/api/domain/RemoteWorkflowService.java
diff --git a/ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessEvent.java b/stwzhj-api/stwzhj-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessEvent.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessEvent.java
rename to stwzhj-api/stwzhj-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessEvent.java
diff --git a/ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessTaskEvent.java b/stwzhj-api/stwzhj-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessTaskEvent.java
similarity index 100%
rename from ruoyi-api/ruoyi-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessTaskEvent.java
rename to stwzhj-api/stwzhj-api-workflow/src/main/java/org/dromara/workflow/api/domain/event/ProcessTaskEvent.java
diff --git a/ruoyi-auth/Dockerfile b/stwzhj-auth/Dockerfile
similarity index 100%
rename from ruoyi-auth/Dockerfile
rename to stwzhj-auth/Dockerfile
diff --git a/ruoyi-auth/pom.xml b/stwzhj-auth/pom.xml
similarity index 70%
rename from ruoyi-auth/pom.xml
rename to stwzhj-auth/pom.xml
index 980d27e5..775d6a95 100644
--- a/ruoyi-auth/pom.xml
+++ b/stwzhj-auth/pom.xml
@@ -3,22 +3,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-cloud-plus
+ stwzhj-cloud-plus
${revision}
4.0.0
- ruoyi-auth
+ stwzhj-auth
- ruoyi-auth 认证授权中心
+ stwzhj-auth 认证授权中心
org.dromara
- ruoyi-common-nacos
+ stwzhj-common-nacos
@@ -28,86 +28,86 @@
org.dromara
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
-
+
org.dromara
- ruoyi-common-security
+ stwzhj-common-security
org.dromara
- ruoyi-common-social
+ stwzhj-common-social
-
+
org.dromara
- ruoyi-common-log
+ stwzhj-common-log
org.dromara
- ruoyi-common-doc
+ stwzhj-common-doc
org.dromara
- ruoyi-common-web
+ stwzhj-common-web
org.dromara
- ruoyi-common-ratelimiter
+ stwzhj-common-ratelimiter
org.dromara
- ruoyi-common-encrypt
+ stwzhj-common-encrypt
org.dromara
- ruoyi-common-dubbo
+ stwzhj-common-dubbo
org.dromara
- ruoyi-common-seata
+ stwzhj-common-seata
org.dromara
- ruoyi-common-tenant
+ stwzhj-common-tenant
org.dromara
- ruoyi-api-resource
+ stwzhj-api-resource
-
+
-
+
-
+
-
+
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/RuoYiAuthApplication.java b/stwzhj-auth/src/main/java/org/dromara/auth/RuoYiAuthApplication.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/RuoYiAuthApplication.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/RuoYiAuthApplication.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/captcha/UnsignedMathGenerator.java b/stwzhj-auth/src/main/java/org/dromara/auth/captcha/UnsignedMathGenerator.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/captcha/UnsignedMathGenerator.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/captcha/UnsignedMathGenerator.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/config/CaptchaConfig.java b/stwzhj-auth/src/main/java/org/dromara/auth/config/CaptchaConfig.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/config/CaptchaConfig.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/config/CaptchaConfig.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/controller/CaptchaController.java b/stwzhj-auth/src/main/java/org/dromara/auth/controller/CaptchaController.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/controller/CaptchaController.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/controller/CaptchaController.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/controller/TokenController.java b/stwzhj-auth/src/main/java/org/dromara/auth/controller/TokenController.java
similarity index 92%
rename from ruoyi-auth/src/main/java/org/dromara/auth/controller/TokenController.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/controller/TokenController.java
index 8de19740..5efbffbc 100644
--- a/ruoyi-auth/src/main/java/org/dromara/auth/controller/TokenController.java
+++ b/stwzhj-auth/src/main/java/org/dromara/auth/controller/TokenController.java
@@ -107,6 +107,30 @@ public class TokenController {
return R.ok(loginVo);
}
+ /**
+ * 第三方获取Token
+ *
+ * @param body 登录信息
+ * @return 结果
+ */
+ @ApiEncrypt
+ @PostMapping("/getToken")
+ public R 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);
+ }
+
+
+
/**
* 第三方登录请求
*
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/domain/convert/TenantVoConvert.java b/stwzhj-auth/src/main/java/org/dromara/auth/domain/convert/TenantVoConvert.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/domain/convert/TenantVoConvert.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/domain/convert/TenantVoConvert.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/CaptchaVo.java b/stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/CaptchaVo.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/CaptchaVo.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/CaptchaVo.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/LoginTenantVo.java b/stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/LoginTenantVo.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/LoginTenantVo.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/LoginTenantVo.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/LoginVo.java b/stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/LoginVo.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/LoginVo.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/LoginVo.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/TenantListVo.java b/stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/TenantListVo.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/domain/vo/TenantListVo.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/domain/vo/TenantListVo.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/enums/CaptchaCategory.java b/stwzhj-auth/src/main/java/org/dromara/auth/enums/CaptchaCategory.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/enums/CaptchaCategory.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/enums/CaptchaCategory.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/enums/CaptchaType.java b/stwzhj-auth/src/main/java/org/dromara/auth/enums/CaptchaType.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/enums/CaptchaType.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/enums/CaptchaType.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/form/EmailLoginBody.java b/stwzhj-auth/src/main/java/org/dromara/auth/form/EmailLoginBody.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/form/EmailLoginBody.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/form/EmailLoginBody.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/form/PasswordLoginBody.java b/stwzhj-auth/src/main/java/org/dromara/auth/form/PasswordLoginBody.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/form/PasswordLoginBody.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/form/PasswordLoginBody.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/form/RegisterBody.java b/stwzhj-auth/src/main/java/org/dromara/auth/form/RegisterBody.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/form/RegisterBody.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/form/RegisterBody.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/form/SmsLoginBody.java b/stwzhj-auth/src/main/java/org/dromara/auth/form/SmsLoginBody.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/form/SmsLoginBody.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/form/SmsLoginBody.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/form/SocialLoginBody.java b/stwzhj-auth/src/main/java/org/dromara/auth/form/SocialLoginBody.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/form/SocialLoginBody.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/form/SocialLoginBody.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/form/XcxLoginBody.java b/stwzhj-auth/src/main/java/org/dromara/auth/form/XcxLoginBody.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/form/XcxLoginBody.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/form/XcxLoginBody.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/listener/UserActionListener.java b/stwzhj-auth/src/main/java/org/dromara/auth/listener/UserActionListener.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/listener/UserActionListener.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/listener/UserActionListener.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/properties/CaptchaProperties.java b/stwzhj-auth/src/main/java/org/dromara/auth/properties/CaptchaProperties.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/properties/CaptchaProperties.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/properties/CaptchaProperties.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/properties/UserPasswordProperties.java b/stwzhj-auth/src/main/java/org/dromara/auth/properties/UserPasswordProperties.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/properties/UserPasswordProperties.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/properties/UserPasswordProperties.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/IAuthStrategy.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/IAuthStrategy.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/IAuthStrategy.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/IAuthStrategy.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/SysLoginService.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/SysLoginService.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/SysLoginService.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/SysLoginService.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/impl/EmailAuthStrategy.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/impl/EmailAuthStrategy.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/impl/EmailAuthStrategy.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/impl/EmailAuthStrategy.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/impl/PasswordAuthStrategy.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/impl/PasswordAuthStrategy.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/impl/PasswordAuthStrategy.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/impl/PasswordAuthStrategy.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/impl/SmsAuthStrategy.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/impl/SmsAuthStrategy.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/impl/SmsAuthStrategy.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/impl/SmsAuthStrategy.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/impl/SocialAuthStrategy.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/impl/SocialAuthStrategy.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/impl/SocialAuthStrategy.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/impl/SocialAuthStrategy.java
diff --git a/ruoyi-auth/src/main/java/org/dromara/auth/service/impl/XcxAuthStrategy.java b/stwzhj-auth/src/main/java/org/dromara/auth/service/impl/XcxAuthStrategy.java
similarity index 100%
rename from ruoyi-auth/src/main/java/org/dromara/auth/service/impl/XcxAuthStrategy.java
rename to stwzhj-auth/src/main/java/org/dromara/auth/service/impl/XcxAuthStrategy.java
diff --git a/ruoyi-auth/src/main/resources/application.yml b/stwzhj-auth/src/main/resources/application.yml
similarity index 96%
rename from ruoyi-auth/src/main/resources/application.yml
rename to stwzhj-auth/src/main/resources/application.yml
index 90c05356..bb4d0cf1 100644
--- a/ruoyi-auth/src/main/resources/application.yml
+++ b/stwzhj-auth/src/main/resources/application.yml
@@ -6,7 +6,7 @@ server:
spring:
application:
# 应用名称
- name: ruoyi-auth
+ name: stwzhj-auth
profiles:
# 环境配置
active: @profiles.active@
diff --git a/ruoyi-auth/src/main/resources/banner.txt b/stwzhj-auth/src/main/resources/banner.txt
similarity index 98%
rename from ruoyi-auth/src/main/resources/banner.txt
rename to stwzhj-auth/src/main/resources/banner.txt
index d4fe7e10..97c5c27c 100644
--- a/ruoyi-auth/src/main/resources/banner.txt
+++ b/stwzhj-auth/src/main/resources/banner.txt
@@ -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}
+ _ _ _
+ (_) | | | |
+ _ __ _ _ ___ _ _ _ ______ __ _ _ _ | |_ | |__
+| '__|| | | | / _ \ | | | || ||______| / _` || | | || __|| '_ \
+| | | |_| || (_) || |_| || | | (_| || |_| || |_ | | | |
+|_| \__,_| \___/ \__, ||_| \__,_| \__,_| \__||_| |_|
+ __/ |
|___/
\ No newline at end of file
diff --git a/ruoyi-auth/src/main/resources/logback-plus.xml b/stwzhj-auth/src/main/resources/logback-plus.xml
similarity index 100%
rename from ruoyi-auth/src/main/resources/logback-plus.xml
rename to stwzhj-auth/src/main/resources/logback-plus.xml
diff --git a/stwzhj-common/pom.xml b/stwzhj-common/pom.xml
new file mode 100644
index 00000000..ef10130a
--- /dev/null
+++ b/stwzhj-common/pom.xml
@@ -0,0 +1,57 @@
+
+
+
+ org.dromara
+ stwzhj-cloud-plus
+ ${revision}
+
+ 4.0.0
+
+
+ stwzhj-common-bom
+ stwzhj-common-alibaba-bom
+ stwzhj-common-log
+ stwzhj-common-dict
+ stwzhj-common-excel
+ stwzhj-common-core
+ stwzhj-common-redis
+ stwzhj-common-doc
+ stwzhj-common-security
+ stwzhj-common-satoken
+ stwzhj-common-web
+ stwzhj-common-mybatis
+ stwzhj-common-job
+ stwzhj-common-dubbo
+ stwzhj-common-seata
+ stwzhj-common-loadbalancer
+ stwzhj-common-oss
+ stwzhj-common-ratelimiter
+ stwzhj-common-idempotent
+ stwzhj-common-mail
+ stwzhj-common-sms
+ stwzhj-common-logstash
+ stwzhj-common-elasticsearch
+ stwzhj-common-sentinel
+ stwzhj-common-skylog
+ stwzhj-common-prometheus
+ stwzhj-common-translation
+ stwzhj-common-sensitive
+ stwzhj-common-json
+ stwzhj-common-encrypt
+ stwzhj-common-tenant
+ stwzhj-common-websocket
+ stwzhj-common-social
+ stwzhj-common-nacos
+ stwzhj-common-bus
+ stwzhj-common-sse
+
+
+ stwzhj-common
+ pom
+
+
+ stwzhj-common通用模块
+
+
+
diff --git a/ruoyi-common/ruoyi-common-alibaba-bom/pom.xml b/stwzhj-common/stwzhj-common-alibaba-bom/pom.xml
similarity index 98%
rename from ruoyi-common/ruoyi-common-alibaba-bom/pom.xml
rename to stwzhj-common/stwzhj-common-alibaba-bom/pom.xml
index 94956fd9..37a48baf 100644
--- a/ruoyi-common/ruoyi-common-alibaba-bom/pom.xml
+++ b/stwzhj-common/stwzhj-common-alibaba-bom/pom.xml
@@ -5,12 +5,12 @@
4.0.0
org.dromara
- ruoyi-common-alibaba-bom
+ stwzhj-common-alibaba-bom
${revision}
pom
- ruoyi-common-alibaba-bom alibaba依赖项
+ stwzhj-common-alibaba-bom alibaba依赖项
diff --git a/ruoyi-common/ruoyi-common-bom/pom.xml b/stwzhj-common/stwzhj-common-bom/pom.xml
similarity index 75%
rename from ruoyi-common/ruoyi-common-bom/pom.xml
rename to stwzhj-common/stwzhj-common-bom/pom.xml
index 91d30f05..5c19a88a 100644
--- a/ruoyi-common/ruoyi-common-bom/pom.xml
+++ b/stwzhj-common/stwzhj-common-bom/pom.xml
@@ -5,12 +5,12 @@
4.0.0
org.dromara
- ruoyi-common-bom
+ stwzhj-common-bom
${revision}
pom
- ruoyi-common-bom common依赖项
+ stwzhj-common-bom common依赖项
@@ -22,238 +22,238 @@
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
${revision}
org.dromara
- ruoyi-common-doc
+ stwzhj-common-doc
${revision}
org.dromara
- ruoyi-common-security
+ stwzhj-common-security
${revision}
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
${revision}
org.dromara
- ruoyi-common-log
+ stwzhj-common-log
${revision}
org.dromara
- ruoyi-common-dict
+ stwzhj-common-dict
${revision}
org.dromara
- ruoyi-common-excel
+ stwzhj-common-excel
${revision}
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
${revision}
org.dromara
- ruoyi-common-web
+ stwzhj-common-web
${revision}
org.dromara
- ruoyi-common-mybatis
+ stwzhj-common-mybatis
${revision}
org.dromara
- ruoyi-common-job
+ stwzhj-common-job
${revision}
org.dromara
- ruoyi-common-dubbo
+ stwzhj-common-dubbo
${revision}
org.dromara
- ruoyi-common-seata
+ stwzhj-common-seata
${revision}
org.dromara
- ruoyi-common-loadbalancer
+ stwzhj-common-loadbalancer
${revision}
org.dromara
- ruoyi-common-oss
+ stwzhj-common-oss
${revision}
org.dromara
- ruoyi-common-ratelimiter
+ stwzhj-common-ratelimiter
${revision}
org.dromara
- ruoyi-common-idempotent
+ stwzhj-common-idempotent
${revision}
org.dromara
- ruoyi-common-mail
+ stwzhj-common-mail
${revision}
org.dromara
- ruoyi-common-sms
+ stwzhj-common-sms
${revision}
org.dromara
- ruoyi-common-logstash
+ stwzhj-common-logstash
${revision}
org.dromara
- ruoyi-common-elasticsearch
+ stwzhj-common-elasticsearch
${revision}
org.dromara
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
${revision}
org.dromara
- ruoyi-common-skylog
+ stwzhj-common-skylog
${revision}
org.dromara
- ruoyi-common-prometheus
+ stwzhj-common-prometheus
${revision}
org.dromara
- ruoyi-common-translation
+ stwzhj-common-translation
${revision}
org.dromara
- ruoyi-common-sensitive
+ stwzhj-common-sensitive
${revision}
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
${revision}
org.dromara
- ruoyi-common-encrypt
+ stwzhj-common-encrypt
${revision}
org.dromara
- ruoyi-common-tenant
+ stwzhj-common-tenant
${revision}
org.dromara
- ruoyi-common-websocket
+ stwzhj-common-websocket
${revision}
org.dromara
- ruoyi-common-social
+ stwzhj-common-social
${revision}
org.dromara
- ruoyi-common-nacos
+ stwzhj-common-nacos
${revision}
org.dromara
- ruoyi-common-bus
+ stwzhj-common-bus
${revision}
org.dromara
- ruoyi-common-sse
+ stwzhj-common-sse
${revision}
diff --git a/ruoyi-common/ruoyi-common-bus/pom.xml b/stwzhj-common/stwzhj-common-bus/pom.xml
similarity index 89%
rename from ruoyi-common/ruoyi-common-bus/pom.xml
rename to stwzhj-common/stwzhj-common-bus/pom.xml
index e0256f86..2d2cbeed 100644
--- a/ruoyi-common/ruoyi-common-bus/pom.xml
+++ b/stwzhj-common/stwzhj-common-bus/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-bus
+ stwzhj-common-bus
- ruoyi-common-bus 消息总线模块
+ stwzhj-common-bus 消息总线模块
diff --git a/ruoyi-common/ruoyi-common-bus/src/main/java/org/dromara/common/bus/config/BusCustomConfiguration.java b/stwzhj-common/stwzhj-common-bus/src/main/java/org/dromara/common/bus/config/BusCustomConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-bus/src/main/java/org/dromara/common/bus/config/BusCustomConfiguration.java
rename to stwzhj-common/stwzhj-common-bus/src/main/java/org/dromara/common/bus/config/BusCustomConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-bus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-bus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-bus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-bus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-core/pom.xml b/stwzhj-common/stwzhj-common-core/pom.xml
similarity index 95%
rename from ruoyi-common/ruoyi-common-core/pom.xml
rename to stwzhj-common/stwzhj-common-core/pom.xml
index 01d876e7..59381064 100644
--- a/ruoyi-common/ruoyi-common-core/pom.xml
+++ b/stwzhj-common/stwzhj-common-core/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-core
+ stwzhj-common-core
- ruoyi-common-core 核心模块
+ stwzhj-common-core 核心模块
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/ApplicationConfig.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/ApplicationConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/ApplicationConfig.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/ApplicationConfig.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/AsyncConfig.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/AsyncConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/AsyncConfig.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/AsyncConfig.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/ThreadPoolConfig.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/ThreadPoolConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/ThreadPoolConfig.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/ThreadPoolConfig.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/ValidatorConfig.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/ValidatorConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/config/ValidatorConfig.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/config/ValidatorConfig.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheConstants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/CacheConstants.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheConstants.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/CacheConstants.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/CacheNames.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/Constants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/Constants.java
similarity index 97%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/Constants.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/Constants.java
index cdbda89f..d41d0b4e 100644
--- a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/Constants.java
+++ b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/Constants.java
@@ -75,7 +75,7 @@ public interface Constants {
/**
* 顶级部门id
*/
- Long TOP_PARENT_ID = 0L;
+ String TOP_PARENT_ID = "0";
}
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/GlobalConstants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/GlobalConstants.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/GlobalConstants.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/GlobalConstants.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/HttpStatus.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/HttpStatus.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/HttpStatus.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/HttpStatus.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/RegexConstants.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/TenantConstants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/TenantConstants.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/TenantConstants.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/TenantConstants.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/UserConstants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/UserConstants.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/constant/UserConstants.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/constant/UserConstants.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/domain/R.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/domain/R.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/domain/R.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/domain/R.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/domain/model/LoginBody.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/domain/model/LoginBody.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/domain/model/LoginBody.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/domain/model/LoginBody.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/BusinessStatusEnum.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/BusinessStatusEnum.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/BusinessStatusEnum.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/BusinessStatusEnum.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/DeviceType.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/DeviceType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/DeviceType.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/DeviceType.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/LoginType.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/LoginType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/LoginType.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/LoginType.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/TenantStatus.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/TenantStatus.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/TenantStatus.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/TenantStatus.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/UserStatus.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/UserStatus.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/UserStatus.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/UserStatus.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/UserType.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/UserType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/enums/UserType.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/enums/UserType.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/ServiceException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/ServiceException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/ServiceException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/ServiceException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/SseException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/SseException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/SseException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/SseException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/base/BaseException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/base/BaseException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/base/BaseException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/base/BaseException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/file/FileException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/file/FileException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/file/FileException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/file/FileException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/file/FileNameLengthLimitExceededException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/file/FileNameLengthLimitExceededException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/file/FileNameLengthLimitExceededException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/file/FileNameLengthLimitExceededException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/file/FileSizeLimitExceededException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/file/FileSizeLimitExceededException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/file/FileSizeLimitExceededException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/file/FileSizeLimitExceededException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaExpireException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaExpireException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaExpireException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/user/CaptchaExpireException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/user/UserException.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/user/UserException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/user/UserException.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/exception/user/UserException.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/factory/RegexPatternPoolFactory.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/factory/RegexPatternPoolFactory.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/factory/RegexPatternPoolFactory.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/factory/RegexPatternPoolFactory.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/factory/YmlPropertySourceFactory.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/factory/YmlPropertySourceFactory.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/factory/YmlPropertySourceFactory.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/factory/YmlPropertySourceFactory.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/service/DictService.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/service/DictService.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/service/DictService.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/service/DictService.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/DateUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/DateUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/DateUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/DateUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/MapstructUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/MapstructUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/MapstructUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/MapstructUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/MessageUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/MessageUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/MessageUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/MessageUtils.java
diff --git a/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/RedisConstants.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/RedisConstants.java
new file mode 100644
index 00000000..828ca4c5
--- /dev/null
+++ b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/RedisConstants.java
@@ -0,0 +1,32 @@
+package org.dromara.common.core.utils;
+
+public class RedisConstants {
+ // 用户
+ public static final String CCL_CODING_SSO_TOKEN = "com.ruansee:sso:token:";
+ // 单位 s
+ public static final int CCL_CODING_SSO_TOKEN_TIME = 60 * 60 * 24 * 3;
+
+ public static final String APP_CLIENT_REQUEST = "app_client_request_list:";
+
+ public static final String ONLINE_USERS = "online_users:";
+
+ public static final String REAL_ONLINE_USERS = "real_online_users:";
+
+ public static final String ORG_CODE_ONLINE_DEVICES = "orgcode_online_device:";
+ public static final String ORG_CODE_PRE = "org_code:";
+
+ public static final String ONLINE_USERS_GEO = "geo_hash";
+
+ public static final long REDIS_ONLINE_USER_EXPIRE_TIME = 60 * 60 * 24;
+
+ public static final long REDIS_ONLINE_USER_NEVER_EXPIRE = -1;
+
+ public static final long FIVE_MINUTES_REDIS_ONLINE_USER_EXPIRE_TIME = 60 * 5;
+
+
+ public static String getUserTokenKey(String token) {
+ return CCL_CODING_SSO_TOKEN + token;
+ }
+
+
+}
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ServletUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ServletUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ServletUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ServletUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/SpringUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/SpringUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/SpringUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/SpringUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/StreamUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/StreamUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/StreamUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/StreamUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/StringUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/StringUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/StringUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/StringUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/Threads.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/Threads.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/Threads.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/Threads.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/TreeBuildUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/TreeBuildUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/TreeBuildUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/TreeBuildUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ValidatorUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ValidatorUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ValidatorUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ValidatorUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/file/FileUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/file/FileUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/file/FileUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/file/FileUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/file/MimeTypeUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/file/MimeTypeUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/file/MimeTypeUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/file/MimeTypeUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ip/AddressUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ip/AddressUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ip/AddressUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ip/AddressUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ip/RegionUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ip/RegionUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/ip/RegionUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/ip/RegionUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/reflect/ReflectUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/reflect/ReflectUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/reflect/ReflectUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/reflect/ReflectUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexUtils.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexUtils.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexUtils.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexValidator.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexValidator.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexValidator.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/regex/RegexValidator.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/sql/SqlUtil.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/sql/SqlUtil.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/sql/SqlUtil.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/utils/sql/SqlUtil.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/validate/AddGroup.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/validate/AddGroup.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/validate/AddGroup.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/validate/AddGroup.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/validate/EditGroup.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/validate/EditGroup.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/validate/EditGroup.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/validate/EditGroup.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/validate/QueryGroup.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/validate/QueryGroup.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/validate/QueryGroup.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/validate/QueryGroup.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/xss/Xss.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/xss/Xss.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/xss/Xss.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/xss/Xss.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/xss/XssValidator.java b/stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/xss/XssValidator.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/xss/XssValidator.java
rename to stwzhj-common/stwzhj-common-core/src/main/java/org/dromara/common/core/xss/XssValidator.java
diff --git a/ruoyi-common/ruoyi-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-core/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-core/src/main/resources/i18n/messages.properties b/stwzhj-common/stwzhj-common-core/src/main/resources/i18n/messages.properties
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/resources/i18n/messages.properties
rename to stwzhj-common/stwzhj-common-core/src/main/resources/i18n/messages.properties
diff --git a/ruoyi-common/ruoyi-common-core/src/main/resources/i18n/messages_en_US.properties b/stwzhj-common/stwzhj-common-core/src/main/resources/i18n/messages_en_US.properties
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/resources/i18n/messages_en_US.properties
rename to stwzhj-common/stwzhj-common-core/src/main/resources/i18n/messages_en_US.properties
diff --git a/ruoyi-common/ruoyi-common-core/src/main/resources/i18n/messages_zh_CN.properties b/stwzhj-common/stwzhj-common-core/src/main/resources/i18n/messages_zh_CN.properties
similarity index 100%
rename from ruoyi-common/ruoyi-common-core/src/main/resources/i18n/messages_zh_CN.properties
rename to stwzhj-common/stwzhj-common-core/src/main/resources/i18n/messages_zh_CN.properties
diff --git a/ruoyi-common/ruoyi-common-dict/pom.xml b/stwzhj-common/stwzhj-common-dict/pom.xml
similarity index 75%
rename from ruoyi-common/ruoyi-common-dict/pom.xml
rename to stwzhj-common/stwzhj-common-dict/pom.xml
index e7dcf05f..ec0e995e 100644
--- a/ruoyi-common/ruoyi-common-dict/pom.xml
+++ b/stwzhj-common/stwzhj-common-dict/pom.xml
@@ -4,28 +4,28 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-dict
+ stwzhj-common-dict
- ruoyi-common-dict 字典
+ stwzhj-common-dict 字典
-
+
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
org.dromara
- ruoyi-api-system
+ stwzhj-api-system
diff --git a/ruoyi-common/ruoyi-common-dict/src/main/java/org/dromara/common/dict/service/impl/DictServiceImpl.java b/stwzhj-common/stwzhj-common-dict/src/main/java/org/dromara/common/dict/service/impl/DictServiceImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dict/src/main/java/org/dromara/common/dict/service/impl/DictServiceImpl.java
rename to stwzhj-common/stwzhj-common-dict/src/main/java/org/dromara/common/dict/service/impl/DictServiceImpl.java
diff --git a/ruoyi-common/ruoyi-common-dict/src/main/java/org/dromara/common/dict/utils/DictUtils.java b/stwzhj-common/stwzhj-common-dict/src/main/java/org/dromara/common/dict/utils/DictUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dict/src/main/java/org/dromara/common/dict/utils/DictUtils.java
rename to stwzhj-common/stwzhj-common-dict/src/main/java/org/dromara/common/dict/utils/DictUtils.java
diff --git a/ruoyi-common/ruoyi-common-dict/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-dict/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-dict/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-dict/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-doc/pom.xml b/stwzhj-common/stwzhj-common-doc/pom.xml
similarity index 84%
rename from ruoyi-common/ruoyi-common-doc/pom.xml
rename to stwzhj-common/stwzhj-common-doc/pom.xml
index 26a35fc8..3c96eab3 100644
--- a/ruoyi-common/ruoyi-common-doc/pom.xml
+++ b/stwzhj-common/stwzhj-common-doc/pom.xml
@@ -4,22 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-doc
+ stwzhj-common-doc
- ruoyi-common-doc 系统接口
+ stwzhj-common-doc 系统接口
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/config/PlusPaths.java b/stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/config/PlusPaths.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/config/PlusPaths.java
rename to stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/config/PlusPaths.java
diff --git a/ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/config/SpringDocAutoConfiguration.java b/stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/config/SpringDocAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/config/SpringDocAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/config/SpringDocAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/config/properties/SpringDocProperties.java b/stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/config/properties/SpringDocProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/config/properties/SpringDocProperties.java
rename to stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/config/properties/SpringDocProperties.java
diff --git a/ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/handler/OpenApiHandler.java b/stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/handler/OpenApiHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-doc/src/main/java/org/dromara/common/doc/handler/OpenApiHandler.java
rename to stwzhj-common/stwzhj-common-doc/src/main/java/org/dromara/common/doc/handler/OpenApiHandler.java
diff --git a/ruoyi-common/ruoyi-common-doc/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-doc/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-doc/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-doc/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-dubbo/pom.xml b/stwzhj-common/stwzhj-common-dubbo/pom.xml
similarity index 92%
rename from ruoyi-common/ruoyi-common-dubbo/pom.xml
rename to stwzhj-common/stwzhj-common-dubbo/pom.xml
index 5f0088c3..e515b05f 100644
--- a/ruoyi-common/ruoyi-common-dubbo/pom.xml
+++ b/stwzhj-common/stwzhj-common-dubbo/pom.xml
@@ -4,21 +4,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-dubbo
+ stwzhj-common-dubbo
- ruoyi-common-dubbo RPC服务
+ stwzhj-common-dubbo RPC服务
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReport.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReport.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReport.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReport.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/config/CustomBeanFactoryPostProcessor.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/config/CustomBeanFactoryPostProcessor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/config/CustomBeanFactoryPostProcessor.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/config/CustomBeanFactoryPostProcessor.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/config/DubboConfiguration.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/config/DubboConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/config/DubboConfiguration.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/config/DubboConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/enumd/RequestLogEnum.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/enumd/RequestLogEnum.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/enumd/RequestLogEnum.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/enumd/RequestLogEnum.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/filter/DubboRequestFilter.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/filter/DubboRequestFilter.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/filter/DubboRequestFilter.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/filter/DubboRequestFilter.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/properties/DubboCustomProperties.java b/stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/properties/DubboCustomProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/java/org/dromara/common/dubbo/properties/DubboCustomProperties.java
rename to stwzhj-common/stwzhj-common-dubbo/src/main/java/org/dromara/common/dubbo/properties/DubboCustomProperties.java
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter b/stwzhj-common/stwzhj-common-dubbo/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter
rename to stwzhj-common/stwzhj-common-dubbo/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-dubbo/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-dubbo/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-dubbo/src/main/resources/common-dubbo.yml b/stwzhj-common/stwzhj-common-dubbo/src/main/resources/common-dubbo.yml
similarity index 100%
rename from ruoyi-common/ruoyi-common-dubbo/src/main/resources/common-dubbo.yml
rename to stwzhj-common/stwzhj-common-dubbo/src/main/resources/common-dubbo.yml
diff --git a/ruoyi-common/ruoyi-common-elasticsearch/pom.xml b/stwzhj-common/stwzhj-common-elasticsearch/pom.xml
similarity index 80%
rename from ruoyi-common/ruoyi-common-elasticsearch/pom.xml
rename to stwzhj-common/stwzhj-common-elasticsearch/pom.xml
index 401320dc..43ad1d80 100644
--- a/ruoyi-common/ruoyi-common-elasticsearch/pom.xml
+++ b/stwzhj-common/stwzhj-common-elasticsearch/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-elasticsearch
+ stwzhj-common-elasticsearch
- ruoyi-common-elasticsearch ES搜索引擎服务
+ stwzhj-common-elasticsearch ES搜索引擎服务
diff --git a/ruoyi-common/ruoyi-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/ActuatorEnvironmentPostProcessor.java b/stwzhj-common/stwzhj-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/ActuatorEnvironmentPostProcessor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/ActuatorEnvironmentPostProcessor.java
rename to stwzhj-common/stwzhj-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/ActuatorEnvironmentPostProcessor.java
diff --git a/ruoyi-common/ruoyi-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/EasyEsConfiguration.java b/stwzhj-common/stwzhj-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/EasyEsConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/EasyEsConfiguration.java
rename to stwzhj-common/stwzhj-common-elasticsearch/src/main/java/org/dromara/common/elasticsearch/config/EasyEsConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-elasticsearch/src/main/resources/META-INF/spring.factories b/stwzhj-common/stwzhj-common-elasticsearch/src/main/resources/META-INF/spring.factories
similarity index 100%
rename from ruoyi-common/ruoyi-common-elasticsearch/src/main/resources/META-INF/spring.factories
rename to stwzhj-common/stwzhj-common-elasticsearch/src/main/resources/META-INF/spring.factories
diff --git a/ruoyi-common/ruoyi-common-elasticsearch/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-elasticsearch/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-elasticsearch/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-elasticsearch/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-encrypt/pom.xml b/stwzhj-common/stwzhj-common-encrypt/pom.xml
similarity index 87%
rename from ruoyi-common/ruoyi-common-encrypt/pom.xml
rename to stwzhj-common/stwzhj-common-encrypt/pom.xml
index ed4910ef..62e913c7 100644
--- a/ruoyi-common/ruoyi-common-encrypt/pom.xml
+++ b/stwzhj-common/stwzhj-common-encrypt/pom.xml
@@ -4,22 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-encrypt
+ stwzhj-common-encrypt
- ruoyi-common-encrypt 数据加解密模块
+ stwzhj-common-encrypt 数据加解密模块
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/ApiEncrypt.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/ApiEncrypt.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/ApiEncrypt.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/ApiEncrypt.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/EncryptField.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/EncryptField.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/EncryptField.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/annotation/EncryptField.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/config/ApiDecryptAutoConfiguration.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/config/ApiDecryptAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/config/ApiDecryptAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/config/ApiDecryptAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/config/EncryptorAutoConfiguration.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/config/EncryptorAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/config/EncryptorAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/config/EncryptorAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptContext.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptContext.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptContext.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptContext.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptorManager.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptorManager.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptorManager.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/EncryptorManager.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/IEncryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/IEncryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/IEncryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/IEncryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AbstractEncryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AbstractEncryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AbstractEncryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AbstractEncryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AesEncryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AesEncryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AesEncryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/AesEncryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Base64Encryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Base64Encryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Base64Encryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Base64Encryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/RsaEncryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/RsaEncryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/RsaEncryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/RsaEncryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm2Encryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm2Encryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm2Encryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm2Encryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm4Encryptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm4Encryptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm4Encryptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/core/encryptor/Sm4Encryptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/AlgorithmType.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/AlgorithmType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/AlgorithmType.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/AlgorithmType.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/EncodeType.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/EncodeType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/EncodeType.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/enumd/EncodeType.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/CryptoFilter.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/CryptoFilter.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/CryptoFilter.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/CryptoFilter.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/DecryptRequestBodyWrapper.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/DecryptRequestBodyWrapper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/DecryptRequestBodyWrapper.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/DecryptRequestBodyWrapper.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/EncryptResponseBodyWrapper.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/EncryptResponseBodyWrapper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/EncryptResponseBodyWrapper.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/filter/EncryptResponseBodyWrapper.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisDecryptInterceptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisDecryptInterceptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisDecryptInterceptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisDecryptInterceptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/ApiDecryptProperties.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/ApiDecryptProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/ApiDecryptProperties.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/ApiDecryptProperties.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/EncryptorProperties.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/EncryptorProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/EncryptorProperties.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/properties/EncryptorProperties.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java b/stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java
rename to stwzhj-common/stwzhj-common-encrypt/src/main/java/org/dromara/common/encrypt/utils/EncryptUtils.java
diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-encrypt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-encrypt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-encrypt/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-excel/pom.xml b/stwzhj-common/stwzhj-common-excel/pom.xml
similarity index 79%
rename from ruoyi-common/ruoyi-common-excel/pom.xml
rename to stwzhj-common/stwzhj-common-excel/pom.xml
index dd4a5eeb..3f946e19 100644
--- a/ruoyi-common/ruoyi-common-excel/pom.xml
+++ b/stwzhj-common/stwzhj-common-excel/pom.xml
@@ -4,21 +4,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-excel
+ stwzhj-common-excel
- ruoyi-common-excel
+ stwzhj-common-excel
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/annotation/CellMerge.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/annotation/CellMerge.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/annotation/CellMerge.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/annotation/CellMerge.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelDictFormat.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelDictFormat.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelDictFormat.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelDictFormat.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelEnumFormat.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelEnumFormat.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelEnumFormat.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/annotation/ExcelEnumFormat.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelBigNumberConvert.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelBigNumberConvert.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelBigNumberConvert.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelBigNumberConvert.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelDictConvert.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelDictConvert.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelDictConvert.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelDictConvert.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelEnumConvert.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelEnumConvert.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelEnumConvert.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/convert/ExcelEnumConvert.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/CellMergeStrategy.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/CellMergeStrategy.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/CellMergeStrategy.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/CellMergeStrategy.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelListener.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelListener.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelListener.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelListener.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelResult.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelResult.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelResult.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/DefaultExcelResult.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/DropDownOptions.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/DropDownOptions.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/DropDownOptions.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/DropDownOptions.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/ExcelDownHandler.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/ExcelDownHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/ExcelDownHandler.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/ExcelDownHandler.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/ExcelListener.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/ExcelListener.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/ExcelListener.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/ExcelListener.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/ExcelResult.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/ExcelResult.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/core/ExcelResult.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/core/ExcelResult.java
diff --git a/ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/utils/ExcelUtil.java b/stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/utils/ExcelUtil.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-excel/src/main/java/org/dromara/common/excel/utils/ExcelUtil.java
rename to stwzhj-common/stwzhj-common-excel/src/main/java/org/dromara/common/excel/utils/ExcelUtil.java
diff --git a/ruoyi-common/ruoyi-common-idempotent/pom.xml b/stwzhj-common/stwzhj-common-idempotent/pom.xml
similarity index 78%
rename from ruoyi-common/ruoyi-common-idempotent/pom.xml
rename to stwzhj-common/stwzhj-common-idempotent/pom.xml
index 64418b42..706015ce 100644
--- a/ruoyi-common/ruoyi-common-idempotent/pom.xml
+++ b/stwzhj-common/stwzhj-common-idempotent/pom.xml
@@ -4,26 +4,26 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-idempotent
+ stwzhj-common-idempotent
- ruoyi-common-idempotent 幂等功能
+ stwzhj-common-idempotent 幂等功能
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-idempotent/src/main/java/org/dromara/common/idempotent/annotation/RepeatSubmit.java b/stwzhj-common/stwzhj-common-idempotent/src/main/java/org/dromara/common/idempotent/annotation/RepeatSubmit.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-idempotent/src/main/java/org/dromara/common/idempotent/annotation/RepeatSubmit.java
rename to stwzhj-common/stwzhj-common-idempotent/src/main/java/org/dromara/common/idempotent/annotation/RepeatSubmit.java
diff --git a/ruoyi-common/ruoyi-common-idempotent/src/main/java/org/dromara/common/idempotent/aspectj/RepeatSubmitAspect.java b/stwzhj-common/stwzhj-common-idempotent/src/main/java/org/dromara/common/idempotent/aspectj/RepeatSubmitAspect.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-idempotent/src/main/java/org/dromara/common/idempotent/aspectj/RepeatSubmitAspect.java
rename to stwzhj-common/stwzhj-common-idempotent/src/main/java/org/dromara/common/idempotent/aspectj/RepeatSubmitAspect.java
diff --git a/ruoyi-common/ruoyi-common-idempotent/src/main/java/org/dromara/common/idempotent/config/IdempotentAutoConfiguration.java b/stwzhj-common/stwzhj-common-idempotent/src/main/java/org/dromara/common/idempotent/config/IdempotentAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-idempotent/src/main/java/org/dromara/common/idempotent/config/IdempotentAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-idempotent/src/main/java/org/dromara/common/idempotent/config/IdempotentAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-idempotent/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-idempotent/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-idempotent/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-idempotent/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-job/pom.xml b/stwzhj-common/stwzhj-common-job/pom.xml
similarity index 88%
rename from ruoyi-common/ruoyi-common-job/pom.xml
rename to stwzhj-common/stwzhj-common-job/pom.xml
index 2a08c7da..194d8b6f 100644
--- a/ruoyi-common/ruoyi-common-job/pom.xml
+++ b/stwzhj-common/stwzhj-common-job/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-job
+ stwzhj-common-job
- ruoyi-common-job 定时任务
+ stwzhj-common-job 定时任务
@@ -47,7 +47,7 @@
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java b/stwzhj-common/stwzhj-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java
rename to stwzhj-common/stwzhj-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java
diff --git a/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/properties/SnailJobServerProperties.java b/stwzhj-common/stwzhj-common-job/src/main/java/org/dromara/common/job/config/properties/SnailJobServerProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/properties/SnailJobServerProperties.java
rename to stwzhj-common/stwzhj-common-job/src/main/java/org/dromara/common/job/config/properties/SnailJobServerProperties.java
diff --git a/ruoyi-common/ruoyi-common-job/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-job/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-job/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-job/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-json/pom.xml b/stwzhj-common/stwzhj-common-json/pom.xml
similarity index 82%
rename from ruoyi-common/ruoyi-common-json/pom.xml
rename to stwzhj-common/stwzhj-common-json/pom.xml
index 870df5cd..228b0fdd 100644
--- a/ruoyi-common/ruoyi-common-json/pom.xml
+++ b/stwzhj-common/stwzhj-common-json/pom.xml
@@ -4,21 +4,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-json
+ stwzhj-common-json
- ruoyi-common-json 序列化模块
+ stwzhj-common-json 序列化模块
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-json/src/main/java/org/dromara/common/json/config/JacksonConfig.java b/stwzhj-common/stwzhj-common-json/src/main/java/org/dromara/common/json/config/JacksonConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-json/src/main/java/org/dromara/common/json/config/JacksonConfig.java
rename to stwzhj-common/stwzhj-common-json/src/main/java/org/dromara/common/json/config/JacksonConfig.java
diff --git a/ruoyi-common/ruoyi-common-json/src/main/java/org/dromara/common/json/handler/BigNumberSerializer.java b/stwzhj-common/stwzhj-common-json/src/main/java/org/dromara/common/json/handler/BigNumberSerializer.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-json/src/main/java/org/dromara/common/json/handler/BigNumberSerializer.java
rename to stwzhj-common/stwzhj-common-json/src/main/java/org/dromara/common/json/handler/BigNumberSerializer.java
diff --git a/ruoyi-common/ruoyi-common-json/src/main/java/org/dromara/common/json/utils/JsonUtils.java b/stwzhj-common/stwzhj-common-json/src/main/java/org/dromara/common/json/utils/JsonUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-json/src/main/java/org/dromara/common/json/utils/JsonUtils.java
rename to stwzhj-common/stwzhj-common-json/src/main/java/org/dromara/common/json/utils/JsonUtils.java
diff --git a/ruoyi-common/ruoyi-common-json/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-json/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-json/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-json/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/pom.xml b/stwzhj-common/stwzhj-common-loadbalancer/pom.xml
similarity index 81%
rename from ruoyi-common/ruoyi-common-loadbalancer/pom.xml
rename to stwzhj-common/stwzhj-common-loadbalancer/pom.xml
index 1509a44f..dc437e56 100644
--- a/ruoyi-common/ruoyi-common-loadbalancer/pom.xml
+++ b/stwzhj-common/stwzhj-common-loadbalancer/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-loadbalancer
+ stwzhj-common-loadbalancer
- ruoyi-common-loadbalancer 自定义负载均衡(多团队开发使用)
+ stwzhj-common-loadbalancer 自定义负载均衡(多团队开发使用)
@@ -33,7 +33,7 @@
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomEnvironmentPostProcessor.java b/stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomEnvironmentPostProcessor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomEnvironmentPostProcessor.java
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomEnvironmentPostProcessor.java
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceAutoConfiguration.java b/stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceClientConfiguration.java b/stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceClientConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceClientConfiguration.java
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/config/CustomLoadBalanceClientConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomDubboLoadBalancer.java b/stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomDubboLoadBalancer.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomDubboLoadBalancer.java
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomDubboLoadBalancer.java
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomSpringCloudLoadBalancer.java b/stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomSpringCloudLoadBalancer.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomSpringCloudLoadBalancer.java
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/java/org/dromara/common/loadbalance/core/CustomSpringCloudLoadBalancer.java
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.cluster.LoadBalance b/stwzhj-common/stwzhj-common-loadbalancer/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.cluster.LoadBalance
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.cluster.LoadBalance
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.cluster.LoadBalance
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/resources/META-INF/spring.factories b/stwzhj-common/stwzhj-common-loadbalancer/src/main/resources/META-INF/spring.factories
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/resources/META-INF/spring.factories
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/resources/META-INF/spring.factories
diff --git a/ruoyi-common/ruoyi-common-loadbalancer/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-loadbalancer/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-loadbalancer/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-loadbalancer/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-log/pom.xml b/stwzhj-common/stwzhj-common-log/pom.xml
similarity index 77%
rename from ruoyi-common/ruoyi-common-log/pom.xml
rename to stwzhj-common/stwzhj-common-log/pom.xml
index 2614957f..23134984 100644
--- a/ruoyi-common/ruoyi-common-log/pom.xml
+++ b/stwzhj-common/stwzhj-common-log/pom.xml
@@ -4,27 +4,27 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-log
+ stwzhj-common-log
- ruoyi-common-log 日志记录
+ stwzhj-common-log 日志记录
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/annotation/Log.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/annotation/Log.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/annotation/Log.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/annotation/Log.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/aspect/LogAspect.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/aspect/LogAspect.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/aspect/LogAspect.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/aspect/LogAspect.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/enums/BusinessStatus.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/enums/BusinessStatus.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/enums/BusinessStatus.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/enums/BusinessStatus.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/enums/BusinessType.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/enums/BusinessType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/enums/BusinessType.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/enums/BusinessType.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/enums/OperatorType.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/enums/OperatorType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/enums/OperatorType.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/enums/OperatorType.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/event/LogEventListener.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/event/LogEventListener.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/event/LogEventListener.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/event/LogEventListener.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/event/LogininforEvent.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/event/LogininforEvent.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/event/LogininforEvent.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/event/LogininforEvent.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/event/OperLogEvent.java b/stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/event/OperLogEvent.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/java/org/dromara/common/log/event/OperLogEvent.java
rename to stwzhj-common/stwzhj-common-log/src/main/java/org/dromara/common/log/event/OperLogEvent.java
diff --git a/ruoyi-common/ruoyi-common-log/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-log/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-log/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-log/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-logstash/pom.xml b/stwzhj-common/stwzhj-common-logstash/pom.xml
similarity index 80%
rename from ruoyi-common/ruoyi-common-logstash/pom.xml
rename to stwzhj-common/stwzhj-common-logstash/pom.xml
index 36ad275d..28b4f65a 100644
--- a/ruoyi-common/ruoyi-common-logstash/pom.xml
+++ b/stwzhj-common/stwzhj-common-logstash/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-logstash
+ stwzhj-common-logstash
- ruoyi-common-logstash logstash日志推送模块
+ stwzhj-common-logstash logstash日志推送模块
diff --git a/ruoyi-common/ruoyi-common-logstash/src/main/resources/logback-logstash.xml b/stwzhj-common/stwzhj-common-logstash/src/main/resources/logback-logstash.xml
similarity index 100%
rename from ruoyi-common/ruoyi-common-logstash/src/main/resources/logback-logstash.xml
rename to stwzhj-common/stwzhj-common-logstash/src/main/resources/logback-logstash.xml
diff --git a/ruoyi-common/ruoyi-common-mail/pom.xml b/stwzhj-common/stwzhj-common-mail/pom.xml
similarity index 81%
rename from ruoyi-common/ruoyi-common-mail/pom.xml
rename to stwzhj-common/stwzhj-common-mail/pom.xml
index c0e1b2e4..449e4f9e 100644
--- a/ruoyi-common/ruoyi-common-mail/pom.xml
+++ b/stwzhj-common/stwzhj-common-mail/pom.xml
@@ -4,21 +4,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-mail
+ stwzhj-common-mail
- ruoyi-common-mail 邮件模块
+ stwzhj-common-mail 邮件模块
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-mail/src/main/java/org/dromara/common/mail/config/MailConfiguration.java b/stwzhj-common/stwzhj-common-mail/src/main/java/org/dromara/common/mail/config/MailConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mail/src/main/java/org/dromara/common/mail/config/MailConfiguration.java
rename to stwzhj-common/stwzhj-common-mail/src/main/java/org/dromara/common/mail/config/MailConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-mail/src/main/java/org/dromara/common/mail/config/properties/MailProperties.java b/stwzhj-common/stwzhj-common-mail/src/main/java/org/dromara/common/mail/config/properties/MailProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mail/src/main/java/org/dromara/common/mail/config/properties/MailProperties.java
rename to stwzhj-common/stwzhj-common-mail/src/main/java/org/dromara/common/mail/config/properties/MailProperties.java
diff --git a/ruoyi-common/ruoyi-common-mail/src/main/java/org/dromara/common/mail/utils/MailUtils.java b/stwzhj-common/stwzhj-common-mail/src/main/java/org/dromara/common/mail/utils/MailUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mail/src/main/java/org/dromara/common/mail/utils/MailUtils.java
rename to stwzhj-common/stwzhj-common-mail/src/main/java/org/dromara/common/mail/utils/MailUtils.java
diff --git a/ruoyi-common/ruoyi-common-mail/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-mail/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-mail/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-mail/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-mybatis/pom.xml b/stwzhj-common/stwzhj-common-mybatis/pom.xml
similarity index 55%
rename from ruoyi-common/ruoyi-common-mybatis/pom.xml
rename to stwzhj-common/stwzhj-common-mybatis/pom.xml
index 7fe7e3bb..9491d4a1 100644
--- a/ruoyi-common/ruoyi-common-mybatis/pom.xml
+++ b/stwzhj-common/stwzhj-common-mybatis/pom.xml
@@ -4,26 +4,26 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-mybatis
+ stwzhj-common-mybatis
- ruoyi-common-mybatis 数据库服务
+ stwzhj-common-mybatis 数据库服务
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
org.dromara
- ruoyi-common-dubbo
+ stwzhj-common-dubbo
true
@@ -50,26 +50,26 @@
com.mysql
mysql-connector-j
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ com.oracle.database.jdbc
+ ojdbc8
+
+
+
+ com.oracle.database.nls
+ orai18n
+
+
+
+ org.postgresql
+ postgresql
+
+
+
+ com.microsoft.sqlserver
+ mssql-jdbc
+
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataColumn.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataColumn.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataColumn.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataColumn.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataPermission.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataPermission.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataPermission.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/annotation/DataPermission.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/config/MybatisPlusConfiguration.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/config/MybatisPlusConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/config/MybatisPlusConfiguration.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/config/MybatisPlusConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/domain/BaseEntity.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/domain/BaseEntity.java
similarity index 89%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/domain/BaseEntity.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/domain/BaseEntity.java
index 13a79416..d621dad0 100644
--- a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/domain/BaseEntity.java
+++ b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/domain/BaseEntity.java
@@ -34,7 +34,7 @@ public class BaseEntity implements Serializable {
* 创建部门
*/
@TableField(fill = FieldFill.INSERT)
- private Long createDept;
+ private String createDept;
/**
* 创建者
@@ -60,6 +60,12 @@ public class BaseEntity implements Serializable {
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
+ @TableField(exist = false)
+ private String beginTime;
+
+ @TableField(exist = false)
+ private String endTime;
+
/**
* 请求参数
*/
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/PageQuery.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/PageQuery.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/PageQuery.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/PageQuery.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/TableDataInfo.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/TableDataInfo.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/TableDataInfo.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/core/page/TableDataInfo.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataBaseType.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataBaseType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataBaseType.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataBaseType.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataScopeType.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataScopeType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataScopeType.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/enums/DataScopeType.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/filter/DubboDataPermissionFilter.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/filter/DubboDataPermissionFilter.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/filter/DubboDataPermissionFilter.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/filter/DubboDataPermissionFilter.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/InjectionMetaObjectHandler.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/InjectionMetaObjectHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/InjectionMetaObjectHandler.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/InjectionMetaObjectHandler.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/MybatisExceptionHandler.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/MybatisExceptionHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/MybatisExceptionHandler.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/MybatisExceptionHandler.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/PlusDataPermissionHandler.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/PlusDataPermissionHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/PlusDataPermissionHandler.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/PlusDataPermissionHandler.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataBaseHelper.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataBaseHelper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataBaseHelper.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataBaseHelper.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataPermissionHelper.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataPermissionHelper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataPermissionHelper.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/helper/DataPermissionHelper.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/interceptor/PlusDataPermissionInterceptor.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/interceptor/PlusDataPermissionInterceptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/interceptor/PlusDataPermissionInterceptor.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/interceptor/PlusDataPermissionInterceptor.java
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/service/SysDataScopeService.java b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/service/SysDataScopeService.java
similarity index 95%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/service/SysDataScopeService.java
rename to stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/service/SysDataScopeService.java
index 4543579c..08e8c83e 100644
--- a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/service/SysDataScopeService.java
+++ b/stwzhj-common/stwzhj-common-mybatis/src/main/java/org/dromara/common/mybatis/service/SysDataScopeService.java
@@ -34,7 +34,7 @@ public class SysDataScopeService {
* @param deptId 部门ID
* @return 返回部门及其下级的权限语句,如果没有找到则返回 null
*/
- public String getDeptAndChild(Long deptId) {
+ public String getDeptAndChild(String deptId) {
return remoteDataScopeService.getDeptAndChild(deptId);
}
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter b/stwzhj-common/stwzhj-common-mybatis/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter
rename to stwzhj-common/stwzhj-common-mybatis/src/main/resources/META-INF/dubbo/org.apache.dubbo.rpc.Filter
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-mybatis/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-mybatis/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/resources/common-mybatis.yml b/stwzhj-common/stwzhj-common-mybatis/src/main/resources/common-mybatis.yml
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/resources/common-mybatis.yml
rename to stwzhj-common/stwzhj-common-mybatis/src/main/resources/common-mybatis.yml
diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/resources/spy.properties b/stwzhj-common/stwzhj-common-mybatis/src/main/resources/spy.properties
similarity index 100%
rename from ruoyi-common/ruoyi-common-mybatis/src/main/resources/spy.properties
rename to stwzhj-common/stwzhj-common-mybatis/src/main/resources/spy.properties
diff --git a/ruoyi-common/ruoyi-common-nacos/pom.xml b/stwzhj-common/stwzhj-common-nacos/pom.xml
similarity index 90%
rename from ruoyi-common/ruoyi-common-nacos/pom.xml
rename to stwzhj-common/stwzhj-common-nacos/pom.xml
index 9a87e45b..43905af7 100644
--- a/ruoyi-common/ruoyi-common-nacos/pom.xml
+++ b/stwzhj-common/stwzhj-common-nacos/pom.xml
@@ -3,15 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-nacos
+ stwzhj-common-nacos
- ruoyi-common-nacos 配置中心
+ stwzhj-common-nacos 配置中心
diff --git a/ruoyi-common/ruoyi-common-oss/pom.xml b/stwzhj-common/stwzhj-common-oss/pom.xml
similarity index 90%
rename from ruoyi-common/ruoyi-common-oss/pom.xml
rename to stwzhj-common/stwzhj-common-oss/pom.xml
index 18d004f5..53ef2c5b 100644
--- a/ruoyi-common/ruoyi-common-oss/pom.xml
+++ b/stwzhj-common/stwzhj-common-oss/pom.xml
@@ -4,26 +4,26 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-oss
+ stwzhj-common-oss
- ruoyi-common-oss oss服务
+ stwzhj-common-oss oss服务
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/constant/OssConstant.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/constant/OssConstant.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/constant/OssConstant.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/constant/OssConstant.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/core/OssClient.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/core/OssClient.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/core/OssClient.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/core/OssClient.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/entity/UploadResult.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/entity/UploadResult.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/entity/UploadResult.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/entity/UploadResult.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/enumd/AccessPolicyType.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/enumd/AccessPolicyType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/enumd/AccessPolicyType.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/enumd/AccessPolicyType.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/enumd/PolicyType.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/enumd/PolicyType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/enumd/PolicyType.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/enumd/PolicyType.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/exception/OssException.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/exception/OssException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/exception/OssException.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/exception/OssException.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/factory/OssFactory.java
diff --git a/ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/properties/OssProperties.java b/stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/properties/OssProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-oss/src/main/java/org/dromara/common/oss/properties/OssProperties.java
rename to stwzhj-common/stwzhj-common-oss/src/main/java/org/dromara/common/oss/properties/OssProperties.java
diff --git a/ruoyi-common/ruoyi-common-prometheus/pom.xml b/stwzhj-common/stwzhj-common-prometheus/pom.xml
similarity index 84%
rename from ruoyi-common/ruoyi-common-prometheus/pom.xml
rename to stwzhj-common/stwzhj-common-prometheus/pom.xml
index 319bed40..1ffe6b0c 100644
--- a/ruoyi-common/ruoyi-common-prometheus/pom.xml
+++ b/stwzhj-common/stwzhj-common-prometheus/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-prometheus
+ stwzhj-common-prometheus
- ruoyi-common-prometheus prometheus监控
+ stwzhj-common-prometheus prometheus监控
diff --git a/ruoyi-common/ruoyi-common-prometheus/src/main/java/org/dromara/common/prometheus/config/PrometheusConfiguration.java b/stwzhj-common/stwzhj-common-prometheus/src/main/java/org/dromara/common/prometheus/config/PrometheusConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-prometheus/src/main/java/org/dromara/common/prometheus/config/PrometheusConfiguration.java
rename to stwzhj-common/stwzhj-common-prometheus/src/main/java/org/dromara/common/prometheus/config/PrometheusConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-prometheus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-prometheus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-prometheus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-prometheus/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/pom.xml b/stwzhj-common/stwzhj-common-ratelimiter/pom.xml
similarity index 71%
rename from ruoyi-common/ruoyi-common-ratelimiter/pom.xml
rename to stwzhj-common/stwzhj-common-ratelimiter/pom.xml
index bbde9409..c490d3a4 100644
--- a/ruoyi-common/ruoyi-common-ratelimiter/pom.xml
+++ b/stwzhj-common/stwzhj-common-ratelimiter/pom.xml
@@ -4,26 +4,26 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-ratelimiter
+ stwzhj-common-ratelimiter
- ruoyi-common-ratelimiter 限流功能
+ stwzhj-common-ratelimiter 限流功能
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/annotation/RateLimiter.java b/stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/annotation/RateLimiter.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/annotation/RateLimiter.java
rename to stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/annotation/RateLimiter.java
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/aspectj/RateLimiterAspect.java b/stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/aspectj/RateLimiterAspect.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/aspectj/RateLimiterAspect.java
rename to stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/aspectj/RateLimiterAspect.java
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/config/RateLimiterConfig.java b/stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/config/RateLimiterConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/config/RateLimiterConfig.java
rename to stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/config/RateLimiterConfig.java
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/enums/LimitType.java b/stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/enums/LimitType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/enums/LimitType.java
rename to stwzhj-common/stwzhj-common-ratelimiter/src/main/java/org/dromara/common/ratelimiter/enums/LimitType.java
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-ratelimiter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-ratelimiter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-ratelimiter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-ratelimiter/src/main/resources/spel-extension.json b/stwzhj-common/stwzhj-common-ratelimiter/src/main/resources/spel-extension.json
similarity index 100%
rename from ruoyi-common/ruoyi-common-ratelimiter/src/main/resources/spel-extension.json
rename to stwzhj-common/stwzhj-common-ratelimiter/src/main/resources/spel-extension.json
diff --git a/ruoyi-common/ruoyi-common-redis/pom.xml b/stwzhj-common/stwzhj-common-redis/pom.xml
similarity index 77%
rename from ruoyi-common/ruoyi-common-redis/pom.xml
rename to stwzhj-common/stwzhj-common-redis/pom.xml
index f56f8aad..92503af8 100644
--- a/ruoyi-common/ruoyi-common-redis/pom.xml
+++ b/stwzhj-common/stwzhj-common-redis/pom.xml
@@ -4,22 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-redis
+ stwzhj-common-redis
- ruoyi-common-redis 缓存服务
+ stwzhj-common-redis 缓存服务
-
+
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
@@ -42,6 +42,10 @@
com.fasterxml.jackson.datatype
jackson-datatype-jsr310
+
+ cn.hutool
+ hutool-json
+
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/config/CacheConfiguration.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/config/CacheConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/config/CacheConfiguration.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/config/CacheConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/config/RedisConfiguration.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/config/RedisConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/config/RedisConfiguration.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/config/RedisConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/config/properties/RedissonProperties.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/config/properties/RedissonProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/config/properties/RedissonProperties.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/config/properties/RedissonProperties.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/handler/KeyPrefixHandler.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/handler/KeyPrefixHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/handler/KeyPrefixHandler.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/handler/KeyPrefixHandler.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/handler/RedisExceptionHandler.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/handler/RedisExceptionHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/handler/RedisExceptionHandler.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/handler/RedisExceptionHandler.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/manager/CaffeineCacheDecorator.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/manager/CaffeineCacheDecorator.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/manager/CaffeineCacheDecorator.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/manager/CaffeineCacheDecorator.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/manager/PlusSpringCacheManager.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/manager/PlusSpringCacheManager.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/manager/PlusSpringCacheManager.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/manager/PlusSpringCacheManager.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/utils/CacheUtils.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/utils/CacheUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/utils/CacheUtils.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/utils/CacheUtils.java
diff --git a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/utils/RedisUtils.java b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/utils/RedisUtils.java
similarity index 82%
rename from ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/utils/RedisUtils.java
rename to stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/utils/RedisUtils.java
index 6fa3b748..bff861b8 100644
--- a/ruoyi-common/ruoyi-common-redis/src/main/java/org/dromara/common/redis/utils/RedisUtils.java
+++ b/stwzhj-common/stwzhj-common-redis/src/main/java/org/dromara/common/redis/utils/RedisUtils.java
@@ -1,15 +1,23 @@
package org.dromara.common.redis.utils;
+import cn.hutool.json.JSONObject;
+import cn.hutool.json.JSONUtil;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.dromara.common.core.utils.SpringUtils;
import org.redisson.api.*;
+import org.springframework.dao.DataAccessException;
+import org.springframework.data.redis.connection.RedisConnection;
+import org.springframework.data.redis.connection.RedisStringCommands;
+import org.springframework.data.redis.core.RedisCallback;
+import org.springframework.data.redis.core.types.Expiration;
+import org.springframework.data.redis.serializer.RedisSerializer;
import java.time.Duration;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.time.Instant;
+import java.util.*;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -545,4 +553,82 @@ public class RedisUtils {
RKeys rKeys = CLIENT.getKeys();
return rKeys.countExists(key) > 0;
}
+
+ public static void batchInsert(Map map, long seconds){
+ // 创建批量操作对象
+ RBatch asyncBatch = CLIENT.createBatch();
+ for (Map.Entry entry : map.entrySet()) {
+ RBucketAsync
-
+
org.dromara
- ruoyi-api-system
+ stwzhj-api-system
-
+
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfiguration.java b/stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfiguration.java
rename to stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/config/SaTokenConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/core/dao/PlusSaTokenDao.java b/stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/core/dao/PlusSaTokenDao.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/core/dao/PlusSaTokenDao.java
rename to stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/core/dao/PlusSaTokenDao.java
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/core/service/SaPermissionImpl.java b/stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/core/service/SaPermissionImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/core/service/SaPermissionImpl.java
rename to stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/core/service/SaPermissionImpl.java
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/handler/SaTokenExceptionHandler.java b/stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/handler/SaTokenExceptionHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/handler/SaTokenExceptionHandler.java
rename to stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/handler/SaTokenExceptionHandler.java
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/utils/LoginHelper.java b/stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/utils/LoginHelper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/java/org/dromara/common/satoken/utils/LoginHelper.java
rename to stwzhj-common/stwzhj-common-satoken/src/main/java/org/dromara/common/satoken/utils/LoginHelper.java
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-satoken/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-satoken/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/resources/common-satoken.yml b/stwzhj-common/stwzhj-common-satoken/src/main/resources/common-satoken.yml
similarity index 100%
rename from ruoyi-common/ruoyi-common-satoken/src/main/resources/common-satoken.yml
rename to stwzhj-common/stwzhj-common-satoken/src/main/resources/common-satoken.yml
diff --git a/ruoyi-common/ruoyi-common-seata/pom.xml b/stwzhj-common/stwzhj-common-seata/pom.xml
similarity index 89%
rename from ruoyi-common/ruoyi-common-seata/pom.xml
rename to stwzhj-common/stwzhj-common-seata/pom.xml
index b2b51f87..5863f2c9 100644
--- a/ruoyi-common/ruoyi-common-seata/pom.xml
+++ b/stwzhj-common/stwzhj-common-seata/pom.xml
@@ -4,22 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-seata
+ stwzhj-common-seata
- ruoyi-common-seata 分布式事务
+ stwzhj-common-seata 分布式事务
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-seata/src/main/java/org/dromara/common/seata/config/SeataConfiguration.java b/stwzhj-common/stwzhj-common-seata/src/main/java/org/dromara/common/seata/config/SeataConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-seata/src/main/java/org/dromara/common/seata/config/SeataConfiguration.java
rename to stwzhj-common/stwzhj-common-seata/src/main/java/org/dromara/common/seata/config/SeataConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-seata/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-seata/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-seata/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-seata/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-seata/src/main/resources/common-seata.yml b/stwzhj-common/stwzhj-common-seata/src/main/resources/common-seata.yml
similarity index 100%
rename from ruoyi-common/ruoyi-common-seata/src/main/resources/common-seata.yml
rename to stwzhj-common/stwzhj-common-seata/src/main/resources/common-seata.yml
diff --git a/ruoyi-common/ruoyi-common-security/pom.xml b/stwzhj-common/stwzhj-common-security/pom.xml
similarity index 80%
rename from ruoyi-common/ruoyi-common-security/pom.xml
rename to stwzhj-common/stwzhj-common-security/pom.xml
index ee499f12..907b7084 100644
--- a/ruoyi-common/ruoyi-common-security/pom.xml
+++ b/stwzhj-common/stwzhj-common-security/pom.xml
@@ -4,21 +4,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-security
+ stwzhj-common-security
- ruoyi-common-security 安全模块
+ stwzhj-common-security 安全模块
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
diff --git a/ruoyi-common/ruoyi-common-security/src/main/java/org/dromara/common/security/config/SecurityConfiguration.java b/stwzhj-common/stwzhj-common-security/src/main/java/org/dromara/common/security/config/SecurityConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-security/src/main/java/org/dromara/common/security/config/SecurityConfiguration.java
rename to stwzhj-common/stwzhj-common-security/src/main/java/org/dromara/common/security/config/SecurityConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-security/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-security/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-security/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-security/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-sensitive/pom.xml b/stwzhj-common/stwzhj-common-sensitive/pom.xml
similarity index 74%
rename from ruoyi-common/ruoyi-common-sensitive/pom.xml
rename to stwzhj-common/stwzhj-common-sensitive/pom.xml
index fecdf091..32e38189 100644
--- a/ruoyi-common/ruoyi-common-sensitive/pom.xml
+++ b/stwzhj-common/stwzhj-common-sensitive/pom.xml
@@ -4,21 +4,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-sensitive
+ stwzhj-common-sensitive
- ruoyi-common-sensitive 脱敏模块
+ stwzhj-common-sensitive 脱敏模块
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
diff --git a/ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/annotation/Sensitive.java b/stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/annotation/Sensitive.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/annotation/Sensitive.java
rename to stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/annotation/Sensitive.java
diff --git a/ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveService.java b/stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveService.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveService.java
rename to stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveService.java
diff --git a/ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveStrategy.java b/stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveStrategy.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveStrategy.java
rename to stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/core/SensitiveStrategy.java
diff --git a/ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/handler/SensitiveHandler.java b/stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/handler/SensitiveHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sensitive/src/main/java/org/dromara/common/sensitive/handler/SensitiveHandler.java
rename to stwzhj-common/stwzhj-common-sensitive/src/main/java/org/dromara/common/sensitive/handler/SensitiveHandler.java
diff --git a/ruoyi-common/ruoyi-common-sentinel/pom.xml b/stwzhj-common/stwzhj-common-sentinel/pom.xml
similarity index 88%
rename from ruoyi-common/ruoyi-common-sentinel/pom.xml
rename to stwzhj-common/stwzhj-common-sentinel/pom.xml
index 3185baf7..52ba2136 100644
--- a/ruoyi-common/ruoyi-common-sentinel/pom.xml
+++ b/stwzhj-common/stwzhj-common-sentinel/pom.xml
@@ -3,15 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
- ruoyi-common-sentinel 限流模块
+ stwzhj-common-sentinel 限流模块
@@ -39,7 +39,7 @@
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
diff --git a/ruoyi-common/ruoyi-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomAutoConfiguration.java b/stwzhj-common/stwzhj-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomProperties.java b/stwzhj-common/stwzhj-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomProperties.java
rename to stwzhj-common/stwzhj-common-sentinel/src/main/java/org/dromara/common/sentinel/config/SentinelCustomProperties.java
diff --git a/ruoyi-common/ruoyi-common-sentinel/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-sentinel/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-sentinel/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-sentinel/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-skylog/pom.xml b/stwzhj-common/stwzhj-common-skylog/pom.xml
similarity index 84%
rename from ruoyi-common/ruoyi-common-skylog/pom.xml
rename to stwzhj-common/stwzhj-common-skylog/pom.xml
index 212bcf05..3bfc67c0 100644
--- a/ruoyi-common/ruoyi-common-skylog/pom.xml
+++ b/stwzhj-common/stwzhj-common-skylog/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-skylog
+ stwzhj-common-skylog
- ruoyi-common-skylog skywalking日志收集模块
+ stwzhj-common-skylog skywalking日志收集模块
diff --git a/ruoyi-common/ruoyi-common-skylog/src/main/resources/logback-skylog.xml b/stwzhj-common/stwzhj-common-skylog/src/main/resources/logback-skylog.xml
similarity index 100%
rename from ruoyi-common/ruoyi-common-skylog/src/main/resources/logback-skylog.xml
rename to stwzhj-common/stwzhj-common-skylog/src/main/resources/logback-skylog.xml
diff --git a/ruoyi-common/ruoyi-common-sms/pom.xml b/stwzhj-common/stwzhj-common-sms/pom.xml
similarity index 76%
rename from ruoyi-common/ruoyi-common-sms/pom.xml
rename to stwzhj-common/stwzhj-common-sms/pom.xml
index 292edb6e..1a2bfaec 100644
--- a/ruoyi-common/ruoyi-common-sms/pom.xml
+++ b/stwzhj-common/stwzhj-common-sms/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-sms
+ stwzhj-common-sms
- ruoyi-common-sms 短信模块
+ stwzhj-common-sms 短信模块
@@ -22,10 +22,10 @@
sms4j-spring-boot-starter
-
+
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-sms/src/main/java/org/dromara/common/sms/config/SmsAutoConfiguration.java b/stwzhj-common/stwzhj-common-sms/src/main/java/org/dromara/common/sms/config/SmsAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sms/src/main/java/org/dromara/common/sms/config/SmsAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-sms/src/main/java/org/dromara/common/sms/config/SmsAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-sms/src/main/java/org/dromara/common/sms/core/dao/PlusSmsDao.java b/stwzhj-common/stwzhj-common-sms/src/main/java/org/dromara/common/sms/core/dao/PlusSmsDao.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sms/src/main/java/org/dromara/common/sms/core/dao/PlusSmsDao.java
rename to stwzhj-common/stwzhj-common-sms/src/main/java/org/dromara/common/sms/core/dao/PlusSmsDao.java
diff --git a/ruoyi-common/ruoyi-common-sms/src/main/java/org/dromara/common/sms/handler/SmsExceptionHandler.java b/stwzhj-common/stwzhj-common-sms/src/main/java/org/dromara/common/sms/handler/SmsExceptionHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sms/src/main/java/org/dromara/common/sms/handler/SmsExceptionHandler.java
rename to stwzhj-common/stwzhj-common-sms/src/main/java/org/dromara/common/sms/handler/SmsExceptionHandler.java
diff --git a/ruoyi-common/ruoyi-common-sms/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-sms/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-sms/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-sms/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-social/pom.xml b/stwzhj-common/stwzhj-common-social/pom.xml
similarity index 76%
rename from ruoyi-common/ruoyi-common-social/pom.xml
rename to stwzhj-common/stwzhj-common-social/pom.xml
index 887a8e06..56e38773 100644
--- a/ruoyi-common/ruoyi-common-social/pom.xml
+++ b/stwzhj-common/stwzhj-common-social/pom.xml
@@ -4,15 +4,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-social
+ stwzhj-common-social
- ruoyi-common-social 授权认证
+ stwzhj-common-social 授权认证
@@ -23,12 +23,12 @@
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/config/SocialAutoConfiguration.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/config/SocialAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/config/SocialAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/config/SocialAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/config/properties/SocialLoginConfigProperties.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/config/properties/SocialLoginConfigProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/config/properties/SocialLoginConfigProperties.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/config/properties/SocialLoginConfigProperties.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/config/properties/SocialProperties.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/config/properties/SocialProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/config/properties/SocialProperties.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/config/properties/SocialProperties.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeyRequest.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeyRequest.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeyRequest.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeyRequest.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeySource.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeySource.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeySource.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/maxkey/AuthMaxKeySource.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopIamRequest.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopIamRequest.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopIamRequest.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopIamRequest.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopiamSource.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopiamSource.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopiamSource.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/topiam/AuthTopiamSource.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/utils/AuthRedisStateCache.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/utils/AuthRedisStateCache.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/utils/AuthRedisStateCache.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/utils/AuthRedisStateCache.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/utils/SocialUtils.java b/stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/utils/SocialUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/java/org/dromara/common/social/utils/SocialUtils.java
rename to stwzhj-common/stwzhj-common-social/src/main/java/org/dromara/common/social/utils/SocialUtils.java
diff --git a/ruoyi-common/ruoyi-common-social/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-social/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-social/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-social/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-sse/pom.xml b/stwzhj-common/stwzhj-common-sse/pom.xml
similarity index 73%
rename from ruoyi-common/ruoyi-common-sse/pom.xml
rename to stwzhj-common/stwzhj-common-sse/pom.xml
index 88f89a14..6e0688c8 100644
--- a/ruoyi-common/ruoyi-common-sse/pom.xml
+++ b/stwzhj-common/stwzhj-common-sse/pom.xml
@@ -4,33 +4,33 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-sse
+ stwzhj-common-sse
- ruoyi-common-sse 模块
+ stwzhj-common-sse 模块
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
org.springframework
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/config/SseAutoConfiguration.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/config/SseAutoConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/config/SseAutoConfiguration.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/config/SseAutoConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/config/SseProperties.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/config/SseProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/config/SseProperties.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/config/SseProperties.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/controller/SseController.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/controller/SseController.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/controller/SseController.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/controller/SseController.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/core/SseEmitterManager.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/core/SseEmitterManager.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/core/SseEmitterManager.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/core/SseEmitterManager.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/dto/SseMessageDto.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/dto/SseMessageDto.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/dto/SseMessageDto.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/dto/SseMessageDto.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/listener/SseTopicListener.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/listener/SseTopicListener.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/listener/SseTopicListener.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/listener/SseTopicListener.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/utils/SseMessageUtils.java b/stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/utils/SseMessageUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/java/org/dromara/common/sse/utils/SseMessageUtils.java
rename to stwzhj-common/stwzhj-common-sse/src/main/java/org/dromara/common/sse/utils/SseMessageUtils.java
diff --git a/ruoyi-common/ruoyi-common-sse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-sse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-sse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-sse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-tenant/pom.xml b/stwzhj-common/stwzhj-common-tenant/pom.xml
similarity index 78%
rename from ruoyi-common/ruoyi-common-tenant/pom.xml
rename to stwzhj-common/stwzhj-common-tenant/pom.xml
index 970d10f2..e3cbe6bf 100644
--- a/ruoyi-common/ruoyi-common-tenant/pom.xml
+++ b/stwzhj-common/stwzhj-common-tenant/pom.xml
@@ -4,27 +4,27 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-tenant
+ stwzhj-common-tenant
- ruoyi-common-tenant 租户模块
+ stwzhj-common-tenant 租户模块
org.dromara
- ruoyi-common-mybatis
+ stwzhj-common-mybatis
true
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/config/TenantConfiguration.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/config/TenantConfiguration.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/config/TenantConfiguration.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/config/TenantConfiguration.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantEntity.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantEntity.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantEntity.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantEntity.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantSaTokenDao.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantSaTokenDao.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantSaTokenDao.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/core/TenantSaTokenDao.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/exception/TenantException.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/exception/TenantException.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/exception/TenantException.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/exception/TenantException.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/PlusTenantLineHandler.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/handle/PlusTenantLineHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/PlusTenantLineHandler.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/handle/PlusTenantLineHandler.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/helper/TenantHelper.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/helper/TenantHelper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/helper/TenantHelper.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/helper/TenantHelper.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/manager/TenantSpringCacheManager.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/manager/TenantSpringCacheManager.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/manager/TenantSpringCacheManager.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/manager/TenantSpringCacheManager.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/properties/TenantProperties.java b/stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/properties/TenantProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/properties/TenantProperties.java
rename to stwzhj-common/stwzhj-common-tenant/src/main/java/org/dromara/common/tenant/properties/TenantProperties.java
diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-tenant/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-tenant/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-tenant/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-translation/pom.xml b/stwzhj-common/stwzhj-common-translation/pom.xml
similarity index 68%
rename from ruoyi-common/ruoyi-common-translation/pom.xml
rename to stwzhj-common/stwzhj-common-translation/pom.xml
index 030dd7d3..8f505684 100644
--- a/ruoyi-common/ruoyi-common-translation/pom.xml
+++ b/stwzhj-common/stwzhj-common-translation/pom.xml
@@ -4,37 +4,37 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-translation
+ stwzhj-common-translation
- ruoyi-common-translation 通用翻译功能
+ stwzhj-common-translation 通用翻译功能
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
org.dromara
- ruoyi-common-dict
+ stwzhj-common-dict
org.dromara
- ruoyi-common-dubbo
+ stwzhj-common-dubbo
org.dromara
- ruoyi-api-resource
+ stwzhj-api-resource
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/annotation/Translation.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/annotation/Translation.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/annotation/Translation.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/annotation/Translation.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/annotation/TranslationType.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/annotation/TranslationType.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/annotation/TranslationType.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/annotation/TranslationType.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/config/TranslationConfig.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/config/TranslationConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/config/TranslationConfig.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/config/TranslationConfig.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/constant/TransConstant.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/TranslationInterface.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/TranslationInterface.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/TranslationInterface.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/TranslationInterface.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationBeanSerializerModifier.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationBeanSerializerModifier.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationBeanSerializerModifier.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationBeanSerializerModifier.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationHandler.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationHandler.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/handler/TranslationHandler.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/NicknameTranslationImpl.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/NicknameTranslationImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/NicknameTranslationImpl.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/NicknameTranslationImpl.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java b/stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java
rename to stwzhj-common/stwzhj-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java
diff --git a/ruoyi-common/ruoyi-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-translation/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-web/pom.xml b/stwzhj-common/stwzhj-common-web/pom.xml
similarity index 92%
rename from ruoyi-common/ruoyi-common-web/pom.xml
rename to stwzhj-common/stwzhj-common-web/pom.xml
index 6bb30063..0068771b 100644
--- a/ruoyi-common/ruoyi-common-web/pom.xml
+++ b/stwzhj-common/stwzhj-common-web/pom.xml
@@ -4,22 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-web
+ stwzhj-common-web
- ruoyi-common-web web服务
+ stwzhj-common-web web服务
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/FilterConfig.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/FilterConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/FilterConfig.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/FilterConfig.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/I18nConfig.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/I18nConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/I18nConfig.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/I18nConfig.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/ResourcesConfig.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/ResourcesConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/ResourcesConfig.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/ResourcesConfig.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/properties/XssProperties.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/properties/XssProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/properties/XssProperties.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/config/properties/XssProperties.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/core/BaseController.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/core/BaseController.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/core/BaseController.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/core/BaseController.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/core/I18nLocaleResolver.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/core/I18nLocaleResolver.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/core/I18nLocaleResolver.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/core/I18nLocaleResolver.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/filter/XssFilter.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/filter/XssFilter.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/filter/XssFilter.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/filter/XssFilter.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/filter/XssHttpServletRequestWrapper.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/filter/XssHttpServletRequestWrapper.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/filter/XssHttpServletRequestWrapper.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/filter/XssHttpServletRequestWrapper.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/handler/GlobalExceptionHandler.java b/stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/handler/GlobalExceptionHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/handler/GlobalExceptionHandler.java
rename to stwzhj-common/stwzhj-common-web/src/main/java/org/dromara/common/web/handler/GlobalExceptionHandler.java
diff --git a/ruoyi-common/ruoyi-common-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-web/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-common/ruoyi-common-web/src/main/resources/ip2region.xdb b/stwzhj-common/stwzhj-common-web/src/main/resources/ip2region.xdb
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/resources/ip2region.xdb
rename to stwzhj-common/stwzhj-common-web/src/main/resources/ip2region.xdb
diff --git a/ruoyi-common/ruoyi-common-web/src/main/resources/logback-common.xml b/stwzhj-common/stwzhj-common-web/src/main/resources/logback-common.xml
similarity index 100%
rename from ruoyi-common/ruoyi-common-web/src/main/resources/logback-common.xml
rename to stwzhj-common/stwzhj-common-web/src/main/resources/logback-common.xml
diff --git a/ruoyi-common/ruoyi-common-websocket/pom.xml b/stwzhj-common/stwzhj-common-websocket/pom.xml
similarity index 73%
rename from ruoyi-common/ruoyi-common-websocket/pom.xml
rename to stwzhj-common/stwzhj-common-websocket/pom.xml
index db86dcbe..ac41e5ba 100644
--- a/ruoyi-common/ruoyi-common-websocket/pom.xml
+++ b/stwzhj-common/stwzhj-common-websocket/pom.xml
@@ -4,33 +4,33 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-common
+ stwzhj-common
${revision}
4.0.0
- ruoyi-common-websocket
+ stwzhj-common-websocket
- ruoyi-common-websocket 模块
+ stwzhj-common-websocket 模块
org.dromara
- ruoyi-common-core
+ stwzhj-common-core
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
org.dromara
- ruoyi-common-json
+ stwzhj-common-json
org.springframework.boot
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/config/WebSocketConfig.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/config/WebSocketConfig.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/config/WebSocketConfig.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/config/WebSocketConfig.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/config/properties/WebSocketProperties.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/config/properties/WebSocketProperties.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/config/properties/WebSocketProperties.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/config/properties/WebSocketProperties.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/constant/WebSocketConstants.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/constant/WebSocketConstants.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/constant/WebSocketConstants.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/constant/WebSocketConstants.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/dto/WebSocketMessageDto.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/dto/WebSocketMessageDto.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/dto/WebSocketMessageDto.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/dto/WebSocketMessageDto.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/handler/PlusWebSocketHandler.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/handler/PlusWebSocketHandler.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/handler/PlusWebSocketHandler.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/handler/PlusWebSocketHandler.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/holder/WebSocketSessionHolder.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/holder/WebSocketSessionHolder.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/holder/WebSocketSessionHolder.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/holder/WebSocketSessionHolder.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/interceptor/PlusWebSocketInterceptor.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/interceptor/PlusWebSocketInterceptor.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/interceptor/PlusWebSocketInterceptor.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/interceptor/PlusWebSocketInterceptor.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/listener/WebSocketTopicListener.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/listener/WebSocketTopicListener.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/listener/WebSocketTopicListener.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/listener/WebSocketTopicListener.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java b/stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java
rename to stwzhj-common/stwzhj-common-websocket/src/main/java/org/dromara/common/websocket/utils/WebSocketUtils.java
diff --git a/ruoyi-common/ruoyi-common-websocket/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/stwzhj-common/stwzhj-common-websocket/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
similarity index 100%
rename from ruoyi-common/ruoyi-common-websocket/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
rename to stwzhj-common/stwzhj-common-websocket/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
diff --git a/ruoyi-example/pom.xml b/stwzhj-example/pom.xml
similarity index 85%
rename from ruoyi-example/pom.xml
rename to stwzhj-example/pom.xml
index 1670137e..65e56cca 100644
--- a/ruoyi-example/pom.xml
+++ b/stwzhj-example/pom.xml
@@ -3,21 +3,21 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-cloud-plus
+ stwzhj-cloud-plus
${revision}
4.0.0
- ruoyi-demo
- ruoyi-test-mq
+ stwzhj-demo
+ stwzhj-test-mq
- ruoyi-example
+ stwzhj-example
pom
- ruoyi-example 例子模块
+ stwzhj-example 例子模块
diff --git a/ruoyi-example/ruoyi-demo/README.md b/stwzhj-example/stwzhj-demo/README.md
similarity index 100%
rename from ruoyi-example/ruoyi-demo/README.md
rename to stwzhj-example/stwzhj-demo/README.md
diff --git a/ruoyi-example/ruoyi-demo/pom.xml b/stwzhj-example/stwzhj-demo/pom.xml
similarity index 73%
rename from ruoyi-example/ruoyi-demo/pom.xml
rename to stwzhj-example/stwzhj-demo/pom.xml
index 5238e6ef..d1b1e80c 100644
--- a/ruoyi-example/ruoyi-demo/pom.xml
+++ b/stwzhj-example/stwzhj-demo/pom.xml
@@ -4,92 +4,92 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-example
+ stwzhj-example
${revision}
4.0.0
- ruoyi-demo
+ stwzhj-demo
- ruoyi-demo 演示模块
+ stwzhj-demo 演示模块
org.dromara
- ruoyi-common-nacos
+ stwzhj-common-nacos
org.dromara
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
org.dromara
- ruoyi-common-log
+ stwzhj-common-log
org.dromara
- ruoyi-common-doc
+ stwzhj-common-doc
org.dromara
- ruoyi-common-security
+ stwzhj-common-security
org.dromara
- ruoyi-common-web
+ stwzhj-common-web
org.dromara
- ruoyi-common-mybatis
+ stwzhj-common-mybatis
org.dromara
- ruoyi-common-dubbo
+ stwzhj-common-dubbo
org.dromara
- ruoyi-common-idempotent
+ stwzhj-common-idempotent
org.dromara
- ruoyi-common-mail
+ stwzhj-common-mail
org.dromara
- ruoyi-common-sms
+ stwzhj-common-sms
org.dromara
- ruoyi-common-encrypt
+ stwzhj-common-encrypt
org.dromara
- ruoyi-common-tenant
+ stwzhj-common-tenant
org.dromara
- ruoyi-common-elasticsearch
+ stwzhj-common-elasticsearch
org.dromara
- ruoyi-common-sensitive
+ stwzhj-common-sensitive
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/RuoYiDemoApplication.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/RuoYiDemoApplication.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/RuoYiDemoApplication.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/RuoYiDemoApplication.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/EsCrudController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/EsCrudController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/EsCrudController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/EsCrudController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/MailController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/MailController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/MailController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/MailController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/RedisCacheController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/RedisCacheController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/RedisCacheController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/RedisCacheController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/RedisLockController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/RedisLockController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/RedisLockController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/RedisLockController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/RedisPubSubController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/RedisPubSubController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/RedisPubSubController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/RedisPubSubController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/SmsController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/SmsController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/SmsController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/SmsController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/Swagger3DemoController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/Swagger3DemoController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/Swagger3DemoController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/Swagger3DemoController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestBatchController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestBatchController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestBatchController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestBatchController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestBusController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestBusController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestBusController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestBusController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestDemoController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestDemoController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestDemoController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestDemoController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestEncryptController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestEncryptController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestEncryptController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestEncryptController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestExcelController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestExcelController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestExcelController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestExcelController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestI18nController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestI18nController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestI18nController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestI18nController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestSensitiveController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestSensitiveController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestSensitiveController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestSensitiveController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestShardingController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestShardingController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestShardingController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestShardingController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestTreeController.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestTreeController.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/TestTreeController.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/TestTreeController.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/package-info.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/package-info.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/controller/package-info.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/controller/package-info.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/Document.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/Document.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/Document.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/Document.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/ShardingOrder.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/ShardingOrder.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/ShardingOrder.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/ShardingOrder.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/ShardingOrderItem.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/ShardingOrderItem.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/ShardingOrderItem.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/ShardingOrderItem.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/TestDemo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/TestDemo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/TestDemo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/TestDemo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/TestDemoEncrypt.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/TestDemoEncrypt.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/TestDemoEncrypt.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/TestDemoEncrypt.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/TestTree.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/TestTree.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/TestTree.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/TestTree.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoBo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoBo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoBo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoBo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoImportVo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoImportVo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoImportVo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/bo/TestDemoImportVo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/bo/TestTreeBo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/bo/TestTreeBo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/bo/TestTreeBo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/bo/TestTreeBo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/package-info.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/package-info.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/package-info.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/package-info.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/vo/ExportDemoVo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/vo/ExportDemoVo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/vo/ExportDemoVo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/vo/ExportDemoVo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/vo/TestDemoVo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/vo/TestDemoVo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/vo/TestDemoVo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/vo/TestDemoVo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/vo/TestTreeVo.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/vo/TestTreeVo.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/domain/vo/TestTreeVo.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/domain/vo/TestTreeVo.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/esmapper/DocumentMapper.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/esmapper/DocumentMapper.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/esmapper/DocumentMapper.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/esmapper/DocumentMapper.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/listener/ExportDemoListener.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/listener/ExportDemoListener.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/listener/ExportDemoListener.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/listener/ExportDemoListener.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderItemMapper.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderItemMapper.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderItemMapper.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderItemMapper.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderMapper.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderMapper.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderMapper.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/ShardingOrderMapper.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/TestDemoEncryptMapper.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/TestDemoEncryptMapper.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/TestDemoEncryptMapper.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/TestDemoEncryptMapper.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/TestDemoMapper.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/TestDemoMapper.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/TestDemoMapper.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/TestDemoMapper.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/TestTreeMapper.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/TestTreeMapper.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/TestTreeMapper.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/TestTreeMapper.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/package-info.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/package-info.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/mapper/package-info.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/mapper/package-info.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/IExportExcelService.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/IExportExcelService.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/IExportExcelService.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/IExportExcelService.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/ITestDemoService.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/ITestDemoService.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/ITestDemoService.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/ITestDemoService.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/ITestTreeService.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/ITestTreeService.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/ITestTreeService.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/ITestTreeService.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/ExportExcelServiceImpl.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/ExportExcelServiceImpl.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/ExportExcelServiceImpl.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/ExportExcelServiceImpl.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/SensitiveServiceImpl.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/SensitiveServiceImpl.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/SensitiveServiceImpl.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/SensitiveServiceImpl.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/TestDemoServiceImpl.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/TestDemoServiceImpl.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/TestDemoServiceImpl.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/TestDemoServiceImpl.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/TestTreeServiceImpl.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/TestTreeServiceImpl.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/TestTreeServiceImpl.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/TestTreeServiceImpl.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/package-info.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/package-info.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/impl/package-info.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/impl/package-info.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/package-info.java b/stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/package-info.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/java/org/dromara/demo/service/package-info.java
rename to stwzhj-example/stwzhj-demo/src/main/java/org/dromara/demo/service/package-info.java
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/application.yml b/stwzhj-example/stwzhj-demo/src/main/resources/application.yml
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/application.yml
rename to stwzhj-example/stwzhj-demo/src/main/resources/application.yml
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/banner.txt b/stwzhj-example/stwzhj-demo/src/main/resources/banner.txt
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/banner.txt
rename to stwzhj-example/stwzhj-demo/src/main/resources/banner.txt
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/excel/单列表.xlsx b/stwzhj-example/stwzhj-demo/src/main/resources/excel/单列表.xlsx
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/excel/单列表.xlsx
rename to stwzhj-example/stwzhj-demo/src/main/resources/excel/单列表.xlsx
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/excel/多sheet列表.xlsx b/stwzhj-example/stwzhj-demo/src/main/resources/excel/多sheet列表.xlsx
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/excel/多sheet列表.xlsx
rename to stwzhj-example/stwzhj-demo/src/main/resources/excel/多sheet列表.xlsx
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/excel/多列表.xlsx b/stwzhj-example/stwzhj-demo/src/main/resources/excel/多列表.xlsx
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/excel/多列表.xlsx
rename to stwzhj-example/stwzhj-demo/src/main/resources/excel/多列表.xlsx
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/logback-plus.xml b/stwzhj-example/stwzhj-demo/src/main/resources/logback-plus.xml
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/logback-plus.xml
rename to stwzhj-example/stwzhj-demo/src/main/resources/logback-plus.xml
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/ShardingOrderItemMapper.xml b/stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/ShardingOrderItemMapper.xml
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/ShardingOrderItemMapper.xml
rename to stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/ShardingOrderItemMapper.xml
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/ShardingOrderMapper.xml b/stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/ShardingOrderMapper.xml
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/ShardingOrderMapper.xml
rename to stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/ShardingOrderMapper.xml
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/TestDemoMapper.xml b/stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/TestDemoMapper.xml
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/TestDemoMapper.xml
rename to stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/TestDemoMapper.xml
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/TestTreeMapper.xml b/stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/TestTreeMapper.xml
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/mapper/demo/TestTreeMapper.xml
rename to stwzhj-example/stwzhj-demo/src/main/resources/mapper/demo/TestTreeMapper.xml
diff --git a/ruoyi-example/ruoyi-demo/src/main/resources/mapper/package-info.md b/stwzhj-example/stwzhj-demo/src/main/resources/mapper/package-info.md
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/main/resources/mapper/package-info.md
rename to stwzhj-example/stwzhj-demo/src/main/resources/mapper/package-info.md
diff --git a/ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/AssertUnitTest.java b/stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/AssertUnitTest.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/AssertUnitTest.java
rename to stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/AssertUnitTest.java
diff --git a/ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/DemoUnitTest.java b/stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/DemoUnitTest.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/DemoUnitTest.java
rename to stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/DemoUnitTest.java
diff --git a/ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/ParamUnitTest.java b/stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/ParamUnitTest.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/ParamUnitTest.java
rename to stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/ParamUnitTest.java
diff --git a/ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/TOrderTest.java b/stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/TOrderTest.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/TOrderTest.java
rename to stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/TOrderTest.java
diff --git a/ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/TagUnitTest.java b/stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/TagUnitTest.java
similarity index 100%
rename from ruoyi-example/ruoyi-demo/src/test/java/org/dromara/demo/TagUnitTest.java
rename to stwzhj-example/stwzhj-demo/src/test/java/org/dromara/demo/TagUnitTest.java
diff --git a/ruoyi-example/ruoyi-test-mq/README.md b/stwzhj-example/stwzhj-test-mq/README.md
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/README.md
rename to stwzhj-example/stwzhj-test-mq/README.md
diff --git a/ruoyi-example/ruoyi-test-mq/pom.xml b/stwzhj-example/stwzhj-test-mq/pom.xml
similarity index 80%
rename from ruoyi-example/ruoyi-test-mq/pom.xml
rename to stwzhj-example/stwzhj-test-mq/pom.xml
index dc29d327..94a354b5 100644
--- a/ruoyi-example/ruoyi-test-mq/pom.xml
+++ b/stwzhj-example/stwzhj-test-mq/pom.xml
@@ -4,22 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-example
+ stwzhj-example
${revision}
4.0.0
- ruoyi-test-mq
+ stwzhj-test-mq
- ruoyi-test-mq 案例项目
+ stwzhj-test-mq 案例项目
org.dromara
- ruoyi-common-nacos
+ stwzhj-common-nacos
org.springframework.boot
@@ -36,31 +36,31 @@
org.dromara
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
org.dromara
- ruoyi-common-security
+ stwzhj-common-security
org.dromara
- ruoyi-common-doc
+ stwzhj-common-doc
org.dromara
- ruoyi-common-web
+ stwzhj-common-web
org.dromara
- ruoyi-common-tenant
+ stwzhj-common-tenant
org.dromara
- ruoyi-common-mybatis
+ stwzhj-common-mybatis
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/RuoYiTestMqApplication.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/RuoYiTestMqApplication.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/RuoYiTestMqApplication.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/RuoYiTestMqApplication.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/config/RabbitConfig.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/config/RabbitConfig.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/config/RabbitConfig.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/config/RabbitConfig.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/config/RabbitTtlQueueConfig.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/config/RabbitTtlQueueConfig.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/config/RabbitTtlQueueConfig.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/config/RabbitTtlQueueConfig.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/KafkaNormalConsumer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/KafkaNormalConsumer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/KafkaNormalConsumer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/KafkaNormalConsumer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/NormalRocketConsumer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/NormalRocketConsumer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/NormalRocketConsumer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/NormalRocketConsumer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/RabbitConsumer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/RabbitConsumer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/RabbitConsumer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/RabbitConsumer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/TransactionRocketConsumer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/TransactionRocketConsumer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/consumer/TransactionRocketConsumer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/consumer/TransactionRocketConsumer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/controller/PushMessageController.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/controller/PushMessageController.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/controller/PushMessageController.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/controller/PushMessageController.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/listener/TranscationRocketListener.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/listener/TranscationRocketListener.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/listener/TranscationRocketListener.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/listener/TranscationRocketListener.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/DelayRabbitProducer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/DelayRabbitProducer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/DelayRabbitProducer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/DelayRabbitProducer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/KafkaNormalProducer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/KafkaNormalProducer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/KafkaNormalProducer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/KafkaNormalProducer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/NormalRabbitProducer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/NormalRabbitProducer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/NormalRabbitProducer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/NormalRabbitProducer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/NormalRocketProducer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/NormalRocketProducer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/NormalRocketProducer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/NormalRocketProducer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/TransactionRocketProducer.java b/stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/TransactionRocketProducer.java
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/java/org/dromara/stream/producer/TransactionRocketProducer.java
rename to stwzhj-example/stwzhj-test-mq/src/main/java/org/dromara/stream/producer/TransactionRocketProducer.java
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml b/stwzhj-example/stwzhj-test-mq/src/main/resources/application.yml
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/resources/application.yml
rename to stwzhj-example/stwzhj-test-mq/src/main/resources/application.yml
diff --git a/ruoyi-example/ruoyi-test-mq/src/main/resources/logback-plus.xml b/stwzhj-example/stwzhj-test-mq/src/main/resources/logback-plus.xml
similarity index 100%
rename from ruoyi-example/ruoyi-test-mq/src/main/resources/logback-plus.xml
rename to stwzhj-example/stwzhj-test-mq/src/main/resources/logback-plus.xml
diff --git a/ruoyi-gateway/Dockerfile b/stwzhj-gateway/Dockerfile
similarity index 100%
rename from ruoyi-gateway/Dockerfile
rename to stwzhj-gateway/Dockerfile
diff --git a/ruoyi-gateway/pom.xml b/stwzhj-gateway/pom.xml
similarity index 90%
rename from ruoyi-gateway/pom.xml
rename to stwzhj-gateway/pom.xml
index 41f9bd53..727b15e6 100644
--- a/ruoyi-gateway/pom.xml
+++ b/stwzhj-gateway/pom.xml
@@ -3,15 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-cloud-plus
+ stwzhj-cloud-plus
${revision}
4.0.0
- ruoyi-gateway
+ stwzhj-gateway
- ruoyi-gateway网关模块
+ stwzhj-gateway网关模块
@@ -34,7 +34,7 @@
org.dromara
- ruoyi-common-nacos
+ stwzhj-common-nacos
@@ -69,7 +69,7 @@
org.dromara
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
com.alibaba.csp
@@ -80,22 +80,22 @@
org.dromara
- ruoyi-common-satoken
+ stwzhj-common-satoken
org.dromara
- ruoyi-common-redis
+ stwzhj-common-redis
org.dromara
- ruoyi-common-tenant
+ stwzhj-common-tenant
org.dromara
- ruoyi-common-mybatis
+ stwzhj-common-mybatis
diff --git a/ruoyi-gateway/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/sc/callback/DefaultBlockRequestHandler.java b/stwzhj-gateway/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/sc/callback/DefaultBlockRequestHandler.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/sc/callback/DefaultBlockRequestHandler.java
rename to stwzhj-gateway/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/sc/callback/DefaultBlockRequestHandler.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/RuoYiGatewayApplication.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/RuoYiGatewayApplication.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/RuoYiGatewayApplication.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/RuoYiGatewayApplication.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/config/GatewayConfig.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/config/GatewayConfig.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/config/GatewayConfig.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/config/GatewayConfig.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/config/properties/ApiDecryptProperties.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/config/properties/ApiDecryptProperties.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/config/properties/ApiDecryptProperties.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/config/properties/ApiDecryptProperties.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/config/properties/CustomGatewayProperties.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/config/properties/CustomGatewayProperties.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/config/properties/CustomGatewayProperties.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/config/properties/CustomGatewayProperties.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/config/properties/IgnoreWhiteProperties.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/config/properties/IgnoreWhiteProperties.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/config/properties/IgnoreWhiteProperties.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/config/properties/IgnoreWhiteProperties.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/AuthFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/AuthFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/AuthFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/AuthFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/BlackListUrlFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/BlackListUrlFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/BlackListUrlFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/BlackListUrlFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/ForwardAuthFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/ForwardAuthFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/ForwardAuthFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/ForwardAuthFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCacheRequestFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalCacheRequestFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCacheRequestFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalCacheRequestFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalCorsFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalI18nFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalI18nFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalI18nFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalI18nFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalLogFilter.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalLogFilter.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/filter/GlobalLogFilter.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/filter/GlobalLogFilter.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/handler/SentinelFallbackHandler.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/handler/SentinelFallbackHandler.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/handler/SentinelFallbackHandler.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/handler/SentinelFallbackHandler.java
diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java b/stwzhj-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java
similarity index 100%
rename from ruoyi-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java
rename to stwzhj-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java
diff --git a/ruoyi-gateway/src/main/resources/application.yml b/stwzhj-gateway/src/main/resources/application.yml
similarity index 96%
rename from ruoyi-gateway/src/main/resources/application.yml
rename to stwzhj-gateway/src/main/resources/application.yml
index 98c9dd04..229dc16a 100644
--- a/ruoyi-gateway/src/main/resources/application.yml
+++ b/stwzhj-gateway/src/main/resources/application.yml
@@ -8,7 +8,7 @@ server:
spring:
application:
# 应用名称
- name: ruoyi-gateway
+ name: stwzhj-gateway
profiles:
# 环境配置
active: @profiles.active@
diff --git a/ruoyi-gateway/src/main/resources/banner.txt b/stwzhj-gateway/src/main/resources/banner.txt
similarity index 96%
rename from ruoyi-gateway/src/main/resources/banner.txt
rename to stwzhj-gateway/src/main/resources/banner.txt
index fc8e1184..ceced29f 100644
--- a/ruoyi-gateway/src/main/resources/banner.txt
+++ b/stwzhj-gateway/src/main/resources/banner.txt
@@ -1,10 +1,10 @@
-Spring Boot Version: ${spring-boot.version}
-Spring Application Name: ${spring.application.name}
- _ _
- (_) | |
- _ __ _ _ ___ _ _ _ ______ __ _ __ _ | |_ ___ __ __ __ _ _ _
-| '__|| | | | / _ \ | | | || ||______| / _` | / _` || __| / _ \\ \ /\ / / / _` || | | |
-| | | |_| || (_) || |_| || | | (_| || (_| || |_ | __/ \ V V / | (_| || |_| |
-|_| \__,_| \___/ \__, ||_| \__, | \__,_| \__| \___| \_/\_/ \__,_| \__, |
- __/ | __/ | __/ |
+Spring Boot Version: ${spring-boot.version}
+Spring Application Name: ${spring.application.name}
+ _ _
+ (_) | |
+ _ __ _ _ ___ _ _ _ ______ __ _ __ _ | |_ ___ __ __ __ _ _ _
+| '__|| | | | / _ \ | | | || ||______| / _` | / _` || __| / _ \\ \ /\ / / / _` || | | |
+| | | |_| || (_) || |_| || | | (_| || (_| || |_ | __/ \ V V / | (_| || |_| |
+|_| \__,_| \___/ \__, ||_| \__, | \__,_| \__| \___| \_/\_/ \__,_| \__, |
+ __/ | __/ | __/ |
|___/ |___/ |___/
\ No newline at end of file
diff --git a/ruoyi-gateway/src/main/resources/logback-plus.xml b/stwzhj-gateway/src/main/resources/logback-plus.xml
similarity index 100%
rename from ruoyi-gateway/src/main/resources/logback-plus.xml
rename to stwzhj-gateway/src/main/resources/logback-plus.xml
diff --git a/ruoyi-modules/pom.xml b/stwzhj-modules/pom.xml
similarity index 77%
rename from ruoyi-modules/pom.xml
rename to stwzhj-modules/pom.xml
index c9063627..c3b249e9 100644
--- a/ruoyi-modules/pom.xml
+++ b/stwzhj-modules/pom.xml
@@ -3,24 +3,26 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-cloud-plus
+ stwzhj-cloud-plus
${revision}
4.0.0
- ruoyi-system
- ruoyi-gen
- ruoyi-job
- ruoyi-resource
- ruoyi-workflow
+ stwzhj-system
+ stwzhj-gen
+ stwzhj-job
+ stwzhj-resource
+ stwzhj-workflow
+ stwzhj-data2es
+ stwzhj-baseToSt
- ruoyi-modules
+ stwzhj-modules
pom
- ruoyi-modules业务模块
+ stwzhj-modules业务模块
diff --git a/ruoyi-modules/ruoyi-system/pom.xml b/stwzhj-modules/stwzhj-baseToSt/pom.xml
similarity index 67%
rename from ruoyi-modules/ruoyi-system/pom.xml
rename to stwzhj-modules/stwzhj-baseToSt/pom.xml
index d8816011..9f8016c1 100644
--- a/ruoyi-modules/ruoyi-system/pom.xml
+++ b/stwzhj-modules/stwzhj-baseToSt/pom.xml
@@ -4,104 +4,104 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
org.dromara
- ruoyi-modules
+ stwzhj-modules
${revision}
4.0.0
- ruoyi-system
+ stwzhj-basetost
- ruoyi-system系统模块
+ stwzhj-basetost位置汇聚基础数据到省厅
-
org.dromara
- ruoyi-common-nacos
+ stwzhj-common-nacos
org.dromara
- ruoyi-common-sentinel
+ stwzhj-common-sentinel
org.dromara
- ruoyi-common-log
+ stwzhj-common-log
org.dromara
- ruoyi-common-dict
+ stwzhj-common-dict
org.dromara
- ruoyi-common-doc
+ stwzhj-common-doc
org.dromara
- ruoyi-common-web
+ stwzhj-common-web
+
+
+
+ com.mysql
+ mysql-connector-j
org.dromara
- ruoyi-common-mybatis
+ stwzhj-common-dubbo
org.dromara
- ruoyi-common-dubbo
+ stwzhj-common-seata
org.dromara
- ruoyi-common-seata
+ stwzhj-common-idempotent
org.dromara
- ruoyi-common-idempotent
+ stwzhj-common-tenant
org.dromara
- ruoyi-common-tenant
+ stwzhj-common-security
org.dromara
- ruoyi-common-security
+ stwzhj-common-translation
org.dromara
- ruoyi-common-translation
+ stwzhj-common-sensitive
org.dromara
- ruoyi-common-sensitive
-
-
-
- org.dromara
- ruoyi-common-encrypt
+ stwzhj-common-encrypt
org.dromara
- ruoyi-api-system
+ stwzhj-api-system
+
- org.dromara
- ruoyi-api-resource
+ org.springframework.boot
+ spring-boot-starter-data-jpa
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/BaseToSTApplication.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/BaseToSTApplication.java
new file mode 100644
index 00000000..0379070f
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/BaseToSTApplication.java
@@ -0,0 +1,24 @@
+package org.dromara.basetost;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+
+import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2023-05-20 12:01
+ */
+@SpringBootApplication
+@EnableJpaAuditing
+@EnableDiscoveryClient
+@EnableScheduling
+public class BaseToSTApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(BaseToSTApplication.class, args);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/config/AsyncConfig.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/config/AsyncConfig.java
new file mode 100644
index 00000000..5fbd31ec
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/config/AsyncConfig.java
@@ -0,0 +1,41 @@
+package org.dromara.basetost.config;
+
+import cn.hutool.core.thread.ThreadFactoryBuilder;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
+
+import java.util.concurrent.*;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-29 9:20
+ */
+@Configuration
+@EnableAsync
+public class AsyncConfig {
+
+ @Bean("taskExecutor")
+ public Executor taskExecutor(){
+ ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
+ taskExecutor.setCorePoolSize(8);
+ taskExecutor.setMaxPoolSize(20);
+ taskExecutor.setQueueCapacity(Integer.MAX_VALUE);
+ taskExecutor.setKeepAliveSeconds(60);
+ taskExecutor.setThreadNamePrefix("appmTaskExecutor--");
+ taskExecutor.setWaitForTasksToCompleteOnShutdown(true);
+ taskExecutor.setAwaitTerminationSeconds(60);
+ taskExecutor.setRejectedExecutionHandler(new ThreadPoolExecutor.DiscardOldestPolicy());
+ return taskExecutor;
+ }
+ @Bean("myCacheExecutor")
+ public ExecutorService executorService(){
+ ThreadFactory threadFactory = new ThreadFactoryBuilder().setNamePrefix("basetost-").build();
+ return new ThreadPoolExecutor(0, Integer.MAX_VALUE,
+ 20L, TimeUnit.SECONDS,
+ new SynchronousQueue(),threadFactory);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/AbstractGpsEntity.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/AbstractGpsEntity.java
new file mode 100644
index 00000000..bb3f74fc
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/AbstractGpsEntity.java
@@ -0,0 +1,10 @@
+package org.dromara.basetost.entity;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2022-08-05 17:42
+ */
+public interface AbstractGpsEntity {
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/Device.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/Device.java
new file mode 100644
index 00000000..bec24982
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/Device.java
@@ -0,0 +1,108 @@
+package org.dromara.basetost.entity;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import jakarta.persistence.*;
+import lombok.Data;
+
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+@Entity
+@Table(name = "t_device")
+public class Device implements AbstractGpsEntity, Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name = "id", nullable = false)
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private Integer id;
+
+ /**
+ * 外部系统设备编号建议21位
+ */
+ @Column(name = "device_code")
+ private String deviceCode;
+
+ /**
+ *
+ *
+ *
+ *
+ *
+ *
+ */
+ @Column(name = "device_type")
+ private String deviceType;
+
+ /**
+ * 组织机构代码
+ */
+ @Column(name = "zzjgdm")
+ private String zzjgdm;
+
+ /**
+ * 组织机构名称
+ */
+ @Column(name = "zzjgmc")
+ private String zzjgmc;
+
+ /**
+ * 警号(若有)
+ */
+ @Column(name = "policeNo")
+ private String policeNo;
+
+ /**
+ * 姓名(若有)
+ */
+ @Column(name = "policeName")
+ private String policeName;
+
+ /**
+ * 联系电话(若有)
+ */
+ @Column(name = "phoneNum")
+ private String phoneNum;
+
+ /**
+ * 车牌号(若有)
+ */
+ @Column(name = "car_num")
+ private String carNum;
+
+ /**
+ * 0无效,1有效
+ */
+ @Column(name = "valid")
+ private Integer valid;
+
+ /**
+ * 备注字段1
+ */
+ @Column(name = "remark1")
+ private String remark1;
+
+ /**
+ * 备注字段2
+ */
+ @Column(name = "remark2")
+ private String remark2;
+
+ /**
+ * 创建时间
+ */
+ @Column(name = "create_time")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
+ private Date createTime;
+
+ /**
+ * 最后更新时间
+ */
+ @Column(name = "update_time")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
+ private Date updateTime;
+
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/DictData.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/DictData.java
new file mode 100644
index 00000000..c3f1236d
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/entity/DictData.java
@@ -0,0 +1,102 @@
+package org.dromara.basetost.entity;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 字典数据表
+ */
+@Data
+@Entity
+@Table(name = "sys_dict_data")
+public class DictData implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 字典编码
+ */
+ @Id
+ @Column(name = "dict_code", nullable = false)
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private Long dictCode;
+
+ /**
+ * 字典排序
+ */
+ @Column(name = "dict_sort")
+ private Integer dictSort;
+
+ /**
+ * 字典标签
+ */
+ @Column(name = "dict_label")
+ private String dictLabel;
+
+ /**
+ * 字典键值
+ */
+ @Column(name = "dict_value")
+ private String dictValue;
+
+ /**
+ * 字典类型
+ */
+ @Column(name = "dict_type")
+ private String dictType;
+
+ /**
+ * 样式属性(其他样式扩展)
+ */
+ @Column(name = "css_class")
+ private String cssClass;
+
+ /**
+ * 表格回显样式
+ */
+ @Column(name = "list_class")
+ private String listClass;
+
+
+
+ /**
+ * 状态(0正常 1停用)
+ */
+ @Column(name = "status")
+ private String status;
+
+ /**
+ * 创建者
+ */
+ @Column(name = "create_by")
+ private String createBy;
+
+ /**
+ * 创建时间
+ */
+ @Column(name = "create_time")
+ private Date createTime;
+
+ /**
+ * 更新者
+ */
+ @Column(name = "update_by")
+ private String updateBy;
+
+ /**
+ * 更新时间
+ */
+ @Column(name = "update_time")
+ private Date updateTime;
+
+ /**
+ * 备注
+ */
+ @Column(name = "remark")
+ private String remark;
+
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/AbstractAsyncHandler.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/AbstractAsyncHandler.java
new file mode 100644
index 00000000..3f845bb1
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/AbstractAsyncHandler.java
@@ -0,0 +1,129 @@
+package org.dromara.basetost.handler;
+
+import cn.hutool.core.bean.BeanUtil;
+import cn.hutool.core.date.DateUtil;
+import org.dromara.basetost.entity.AbstractGpsEntity;
+import org.dromara.basetost.entity.Device;
+import org.dromara.basetost.entity.DictData;
+import org.dromara.basetost.repository.DictDataRepository;
+import org.dromara.common.core.utils.StringUtils;
+import org.dromara.system.api.domain.bo.RemoteDeviceBo;
+import org.dromara.system.api.domain.bo.RemoteDeviceToStBo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.springframework.util.CollectionUtils;
+
+import java.util.*;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2022-08-05 16:48
+ */
+@Component
+public abstract class AbstractAsyncHandler {
+
+ private Logger logger = LoggerFactory.getLogger(AsyncHandler.class);
+ @Autowired
+ AsyncHandler asyncHandler;
+
+ @Autowired
+ DictDataRepository dictDataRepository;
+
+
+
+ private String lastUpdateTime;
+
+
+ public boolean saveBaseToST(){
+
+
+ try {
+// lastUpdateTime = PathUtil.getValueFromProperties("lastUpdateTime");
+ lastUpdateTime = "2024-11-23 11:20:32";
+ }catch (Exception e){
+ logger.info("lastUpdateTime={},lastUpdateTimeError={}",lastUpdateTime,e.getMessage());
+ return false;
+ }
+
+ List data = getGpsInfoByTime(lastUpdateTime);
+ logger.info("dataSize={}",data.size());
+ if(CollectionUtils.isEmpty(data)){
+ logger.info("此时无数据={}",lastUpdateTime);
+ return true;
+ }
+ requestToData2es(data);
+ return true;
+ }
+
+ private void requestToData2es(List data){
+ String infoSource = "3418";
+// bo.setInfoSource(PathUtil.getValueFromProperties("infoSource"));
+ boolean b = true;
+ int size = data.size();
+ for (AbstractGpsEntity datum : data) {
+ Device device = (Device) datum;
+ DictData dictData = dictDataRepository.findDictDataByDictTypeAndDictLabel("device_type_tost", String.valueOf(device.getDeviceType()));
+ String dictValue = null;
+ if(!Objects.isNull(dictData)){
+ dictValue = dictData.getDictValue();
+ }
+ if(StringUtils.isEmpty(dictValue)){
+ dictValue = "99";
+ }
+
+ device.setDeviceType(dictValue);
+ }
+ int forCount = size / 50;
+ for (int i = 0; i <= forCount; i++) {
+ List singleList = new ArrayList<>();
+
+ int fromIndex = i * 50;
+ int endIndex = (i == forCount ? size: (i+1)*50);
+ singleList = data.subList(fromIndex,endIndex);
+// BeanUtil.copyToList(singleList, RemoteDeviceBo.class)
+ List list = new ArrayList<>();
+
+// bo.setDeviceBoList();
+ boolean singleB = asyncHandler.saveGpsAsync(infoSource,BeanUtil.copyToList(singleList, RemoteDeviceBo.class));
+ if(!singleB){
+ b = false;
+ }
+ }
+ if(b){
+ AbstractGpsEntity abstractGpsEntity = data.get(size - 1);
+ Device lastDevice = (Device) abstractGpsEntity;
+ resetUpdateTime(lastDevice.getUpdateTime());
+ }
+
+ }
+
+
+
+
+ private void resetUpdateTime(Date gpsTime) {
+ try {
+ lastUpdateTime = DateUtil.format(gpsTime,"yyyy-MM-dd HH:mm:ss");
+// PathUtil.updateProperties("lastUpdateTime",lastUpdateTime,"ruansi.properties");
+ }catch (Exception e){
+ logger.info("lastTime reset error"+e.getMessage());
+ e.printStackTrace();
+ }
+ }
+
+
+
+
+ protected Device produceGpsInfo(AbstractGpsEntity gpsInfo){
+ return null;
+ };
+
+ protected boolean checkNullOrEmpty(AbstractGpsEntity gpsInfo) {
+ return false;
+ };
+
+ protected abstract List getGpsInfoByTime(String lastUpdateTime);
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/AsyncHandler.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/AsyncHandler.java
new file mode 100644
index 00000000..d743d5f8
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/AsyncHandler.java
@@ -0,0 +1,46 @@
+package org.dromara.basetost.handler;
+
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.dromara.common.core.domain.R;
+import org.dromara.system.api.RemoteDeviceService;
+import org.dromara.system.api.domain.bo.RemoteDeviceBo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-29 9:34
+ */
+@Component
+public class AsyncHandler {
+
+ private Logger logger = LoggerFactory.getLogger(AsyncHandler.class);
+
+ @DubboReference
+ private RemoteDeviceService deviceService;
+
+
+// @Async(value = "myCacheExecutor")
+ boolean saveGpsAsync(String infoSource, List list) {
+ R response = deviceService.saveDeviceToSt(infoSource,list);
+ if(Objects.isNull(response) || Objects.isNull(response.getCode())){
+ assert response != null;
+ logger.info("返回null,message={}",response.getMsg());
+ return false;
+ }
+ if(200 == response.getCode()){
+ logger.info("success");
+ }else{
+ logger.info("fail,message={},data={}",response.getMsg(),response.getData());
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/PDTHandler.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/PDTHandler.java
new file mode 100644
index 00000000..bfff71d3
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/PDTHandler.java
@@ -0,0 +1,42 @@
+package org.dromara.basetost.handler;
+
+import cn.hutool.core.date.DateUtil;
+import org.dromara.basetost.entity.AbstractGpsEntity;
+import org.dromara.basetost.entity.Device;
+import org.dromara.basetost.repository.DeviceRepository;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.util.List;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2022-08-05 17:32
+ */
+@Component("pdthandler")
+public class PDTHandler extends AbstractAsyncHandler {
+
+ private Logger logger = LoggerFactory.getLogger(AbstractAsyncHandler.class);
+
+ @Autowired
+ DeviceRepository deviceRepository;
+
+ public PDTHandler() {
+ super();
+ }
+
+
+ @Override
+ protected List getGpsInfoByTime(String lastUpdateTime) {
+
+
+ return deviceRepository.findDeviceByUpdateTimeAfterOrderByUpdateTimeAsc(DateUtil.parse(lastUpdateTime));
+// return deviceRepository.findDeviceByUpdateTimeAfterOrderByUpdateTimeAsc(lastUpdateTime);
+ }
+
+
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/PathUtil.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/PathUtil.java
new file mode 100644
index 00000000..ab0a41a3
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/handler/PathUtil.java
@@ -0,0 +1,90 @@
+package org.dromara.basetost.handler;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2022-08-05 12:00
+ */
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import org.dromara.basetost.response.MyBusinessException;
+import org.dromara.common.core.utils.StringUtils;
+
+import java.io.*;
+import java.util.Objects;
+import java.util.Properties;
+
+public class PathUtil {
+
+ static String outpath = System.getProperty("user.dir")+File.separator+"conf"+File.separator;//先读取config目录的,没有再加载classpath的
+
+ private static Properties getProperties(String fileName) {
+
+ try {
+ Properties properties = new Properties();
+ InputStream in = new FileInputStream(new File(outpath + fileName));
+ properties.load(in);
+ return properties;
+ } catch (IOException e) {
+ try {
+ Properties properties = new Properties();
+ InputStream in = PathUtil.class.getClassLoader().getResourceAsStream(fileName);//默认加载classpath的
+ if(Objects.isNull(in)){
+ return null;
+ }
+ properties.load(in);
+ return properties;
+ } catch (IOException es) {
+ return null;
+ }
+ }
+ }
+
+
+
+ /**
+ * 更新properties文件的键值对
+ * 如果该主键已经存在,更新该主键的值;
+ * 如果该主键不存在,则插件一对键值。
+ * @param keyname 键名
+ * @param keyvalue 键值
+ */
+ public static void updateProperties( String keyname, String keyvalue, String fileName) throws IOException {
+
+ // 调用 Hashtable 的方法 put,使用 getProperty 方法提供并行性。
+ // 强制要求为属性的键和值使用字符串。返回值是 Hashtable 调用 put 的结果。
+ Properties props = PathUtil.getProperties(fileName);
+ OutputStream fos = new FileOutputStream(outpath + fileName);
+ props.setProperty(keyname, keyvalue);
+ // 以适合使用 load 方法加载到 Properties 表中的格式,
+ // 将此 Properties 表中的属性列表(键和元素对)写入输出流
+ props.store(fos, "Update '" + keyname + "' value");
+
+ }
+
+ public static String getValueFromProperties(String propertiesName) {
+ Properties properties = PathUtil.getProperties("ruansi.properties");
+ if(Objects.isNull(properties)){
+ throw new MyBusinessException("jar包所在文件夹下conf子目录下缺少[ruansi.properties] 文件,请新建");
+ }
+ String lastUpdateTime = properties.getProperty(propertiesName);
+ if(StringUtils.isEmpty(lastUpdateTime)){
+ throw new MyBusinessException("[ruansi.properties]文件内缺少["+propertiesName+"]属性");
+ }
+ //checkTimeFormatter(lastUpdateTime);
+ return lastUpdateTime;
+ }
+
+ private static void checkTimeFormatter(String lastUpdateTime) {
+ try {
+ DateTime parse = DateUtil.parse(lastUpdateTime, "yyyy-MM-dd HH:mm:ss");
+ }catch (Exception e){
+ throw new RuntimeException(e.getMessage());
+ }
+ }
+
+
+
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/repository/DeviceRepository.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/repository/DeviceRepository.java
new file mode 100644
index 00000000..dfbe058a
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/repository/DeviceRepository.java
@@ -0,0 +1,17 @@
+package org.dromara.basetost.repository;
+
+import org.dromara.basetost.entity.Device;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.Date;
+import java.util.List;
+
+public interface DeviceRepository extends JpaRepository, JpaSpecificationExecutor {
+ List findDeviceByUpdateTimeAfterOrderByUpdateTimeAsc(Date updateTime);
+
+
+// @Query(nativeQuery = true,value = "select * from t_device t1 " +
+// " where t1.update_time>?1 order by update_time asc limit 50")
+// List findDevice(@Param("updateTime") String updateTime);
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/repository/DictDataRepository.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/repository/DictDataRepository.java
new file mode 100644
index 00000000..de2fb433
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/repository/DictDataRepository.java
@@ -0,0 +1,9 @@
+package org.dromara.basetost.repository;
+
+import org.dromara.basetost.entity.DictData;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+public interface DictDataRepository extends JpaRepository, JpaSpecificationExecutor {
+ DictData findDictDataByDictTypeAndDictLabel(String dictType, String dictLabel);
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/ApiCodeEnum.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/ApiCodeEnum.java
new file mode 100644
index 00000000..95e6e040
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/ApiCodeEnum.java
@@ -0,0 +1,47 @@
+package org.dromara.basetost.response;
+
+public enum ApiCodeEnum {
+
+ COMMON_SUCCESS (200, "操作成功!"),
+ COMMON_BAD_REQUEST (400, "参数错误!"),
+ COMMON_UNAUTHORIZED (401, "用户未登陆!"),
+ COMMON_FORBIDDEN (403, "用户没有权限!"),
+ COMMON_NOT_FOUND (404, "接口不存在!"),
+ COMMON_SERVICE_ERROR (500, "服务器异常!"),
+ ACCESS_LIMIT_ERROR(501, "操作频繁!"),
+ ;
+
+ private Integer code;
+ private String message;
+
+ private ApiCodeEnum(int code, String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ public static String getMessageByStatus(int code) {
+ for (ApiCodeEnum refer : ApiCodeEnum.values()) {
+ if (refer.getCode() == code) {
+ return refer.getMessage();
+ }
+ }
+ return null;
+ }
+
+ public static ApiCodeEnum fromCode(int code) {
+ for (ApiCodeEnum refer : ApiCodeEnum.values()) {
+ if (refer.getCode() == code) {
+ return refer;
+ }
+ }
+ return null;
+ }
+
+ public Integer getCode() {
+ return code;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/ApiResponse.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/ApiResponse.java
new file mode 100644
index 00000000..e38b03ba
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/ApiResponse.java
@@ -0,0 +1,54 @@
+package org.dromara.basetost.response;
+
+import lombok.Data;
+
+@Data
+public class ApiResponse {
+
+ private Integer code;
+ private String message;
+ private T data;
+
+
+ public static ApiResponse build() {
+ return new ApiResponse();
+ }
+
+ public ApiResponse success() {
+ this.setCode(0);
+ this.setMessage("success");
+ return this;
+ }
+
+ public ApiResponse success(T obj) {
+ this.code = ApiCodeEnum.COMMON_SUCCESS.getCode();
+ this.message = ApiCodeEnum.COMMON_SUCCESS.getMessage();
+ this.data = obj;
+ return this;
+ }
+
+ public ApiResponse success(String message) {
+ this.code = ApiCodeEnum.COMMON_SUCCESS.getCode();
+ this.message = message;
+
+ return this;
+ }
+
+ public ApiResponse error(int code, String message) {
+ this.code = code;
+ this.message = message;
+ return this;
+ }
+
+ public ApiResponse tokenError(String message) {
+ code = ApiCodeEnum.COMMON_UNAUTHORIZED.getCode();
+ this.message = message;
+ return this;
+ }
+
+ public ApiResponse accessLimitError(String message) {
+ code = ApiCodeEnum.ACCESS_LIMIT_ERROR.getCode();
+ this.message = message;
+ return this;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/MyBusinessException.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/MyBusinessException.java
new file mode 100644
index 00000000..dbb39af3
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/response/MyBusinessException.java
@@ -0,0 +1,54 @@
+package org.dromara.basetost.response;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-06-07 10:56
+ */
+public class MyBusinessException extends RuntimeException {
+ private static final long serialVersionUID = 1L;
+
+ private String msg;
+ private int code = 500;
+
+ public MyBusinessException(String msg) {
+ super(msg);
+ this.msg = msg;
+ }
+
+ public MyBusinessException(String msg, Throwable e) {
+ super(msg, e);
+ this.msg = msg;
+ }
+
+ public MyBusinessException(String msg, int code) {
+ super(msg);
+ this.msg = msg;
+ this.code = code;
+ }
+
+ public MyBusinessException(String msg, int code, Throwable e) {
+ super(msg, e);
+ this.msg = msg;
+ this.code = code;
+ }
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public int getCode() {
+ return code;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/schedule/BaseToSTSchedule.java b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/schedule/BaseToSTSchedule.java
new file mode 100644
index 00000000..2f291fc6
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/java/org/dromara/basetost/schedule/BaseToSTSchedule.java
@@ -0,0 +1,28 @@
+package org.dromara.basetost.schedule;
+
+import org.dromara.basetost.handler.AbstractAsyncHandler;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2023-05-22 9:24
+ */
+@Component
+public class BaseToSTSchedule {
+
+
+ @Autowired
+ @Qualifier(value = "pdthandler")
+ AbstractAsyncHandler abstractAsyncHandler;
+
+
+ @Scheduled(cron = "${devicecorn:0/30 * * * * ?}")
+ public void sendToSt(){
+ abstractAsyncHandler.saveBaseToST();
+ }
+}
diff --git a/stwzhj-modules/stwzhj-baseToSt/src/main/resources/application.yml b/stwzhj-modules/stwzhj-baseToSt/src/main/resources/application.yml
new file mode 100644
index 00000000..6f7b9f71
--- /dev/null
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/resources/application.yml
@@ -0,0 +1,45 @@
+# Tomcat
+server:
+ port: 10025
+devicecorn: 0/10 * * * * ?
+
+# Spring
+spring:
+ application:
+ # 应用名称
+ name: stwzhj-basetost
+ profiles:
+ # 环境配置
+ active: dev
+
+--- # nacos 配置
+spring:
+ datasource:
+ url: jdbc:mysql://localhost:3306/wzhj_hs?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
+ username: root
+ password: root
+ driver-class-name: com.mysql.jdbc.Driver
+ type: com.zaxxer.hikari.HikariDataSource
+ jpa:
+ show-sql: true
+ hibernate:
+ naming:
+ physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+ cloud:
+ nacos:
+ # nacos 服务地址
+ server-addr: 127.0.0.1:8848
+ username: nacos
+ password: nacos
+ discovery:
+ # 注册组
+ group: DEFAULT_GROUP
+ namespace: ${spring.profiles.active}
+ config:
+ # 配置组
+ group: DEFAULT_GROUP
+ namespace: ${spring.profiles.active}
+ config:
+ import:
+ - optional:nacos:application-common.yml
+
diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/banner.txt b/stwzhj-modules/stwzhj-baseToSt/src/main/resources/banner.txt
similarity index 96%
rename from ruoyi-modules/ruoyi-system/src/main/resources/banner.txt
rename to stwzhj-modules/stwzhj-baseToSt/src/main/resources/banner.txt
index e5e8395c..fbd45f53 100644
--- a/ruoyi-modules/ruoyi-system/src/main/resources/banner.txt
+++ b/stwzhj-modules/stwzhj-baseToSt/src/main/resources/banner.txt
@@ -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}
+ _ _
+ (_) | |
+ _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
+| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
+| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
+|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
+ __/ | __/ |
|___/ |___/
\ No newline at end of file
diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/logback-plus.xml b/stwzhj-modules/stwzhj-baseToSt/src/main/resources/logback-plus.xml
similarity index 100%
rename from ruoyi-modules/ruoyi-system/src/main/resources/logback-plus.xml
rename to stwzhj-modules/stwzhj-baseToSt/src/main/resources/logback-plus.xml
diff --git a/stwzhj-modules/stwzhj-consumer/pom.xml b/stwzhj-modules/stwzhj-consumer/pom.xml
new file mode 100644
index 00000000..7b704482
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/pom.xml
@@ -0,0 +1,172 @@
+
+
+
+ org.dromara
+ stwzhj-modules
+ ${revision}
+
+ 4.0.0
+
+ stwzhj-consumer
+
+
+
+
+ org.dromara
+ stwzhj-common-nacos
+
+
+
+ org.dromara
+ stwzhj-common-sentinel
+
+
+
+
+ org.dromara
+ stwzhj-common-log
+
+
+
+ org.dromara
+ stwzhj-common-dict
+
+
+
+ org.dromara
+ stwzhj-common-doc
+
+
+
+ org.dromara
+ stwzhj-common-web
+
+
+
+
+ org.dromara
+ stwzhj-common-dubbo
+
+
+
+ org.dromara
+ stwzhj-common-seata
+
+
+
+ org.dromara
+ stwzhj-common-idempotent
+
+
+
+ org.dromara
+ stwzhj-common-tenant
+
+
+
+ org.dromara
+ stwzhj-common-security
+
+
+
+ org.dromara
+ stwzhj-common-translation
+
+
+
+ org.dromara
+ stwzhj-common-sensitive
+
+
+
+ org.dromara
+ stwzhj-common-encrypt
+
+
+
+
+ org.dromara
+ stwzhj-api-system
+
+
+
+ org.dromara
+ stwzhj-api-data2es
+
+
+
+ org.apache.kafka
+ kafka-clients
+ 2.4.0-hw-ei-302002
+
+
+
+ com.ruansee.app
+ app_common
+ 1.0-SNAPSHOT
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ cn.hutool
+ hutool-all
+ 5.1.0
+ compile
+
+
+
+ de.codecentric
+ spring-boot-admin-starter-client
+ 2.3.1
+
+
+ org.apache.zookeeper
+ zookeeper
+ 3.5.6
+
+
+
+
+ cn.dynamictp
+ dynamic-tp-spring-boot-starter-common
+ 1.1.0
+
+
+
+ org.springframework.kafka
+ spring-kafka
+
+
+ org.apache.kafka
+ kafka-clients
+
+
+
+
+
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot.version}
+
+
+
+ repackage
+
+
+
+
+
+
+
+
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/KafkaConsumerApplication.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/KafkaConsumerApplication.java
new file mode 100644
index 00000000..0fe37b81
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/KafkaConsumerApplication.java
@@ -0,0 +1,34 @@
+package org.dromara.kafka.consumer;
+
+import com.ruansee.redis.JedisConfig;
+import com.ruansee.redis.RedisConfig;
+import com.ruansee.redis.RedisUtil;
+import com.ruansee.redis.RedissionLockUtil;
+import org.dromara.kafka.consumer.config.KafkaPropertiesConfig;
+import org.redisson.spring.starter.RedissonAutoConfiguration;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
+import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration;
+import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.boot.web.servlet.ServletComponentScan;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.FilterType;
+import org.springframework.scheduling.annotation.EnableAsync;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-06 11:12
+ */
+@SpringBootApplication
+@EnableAsync
+@EnableConfigurationProperties({KafkaPropertiesConfig.class})
+@ServletComponentScan
+public class KafkaConsumerApplication {
+ public static void main(String[] args){
+ SpringApplication.run(KafkaConsumerApplication.class,args);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/AsyncConfig.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/AsyncConfig.java
new file mode 100644
index 00000000..ecdfc330
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/AsyncConfig.java
@@ -0,0 +1,69 @@
+package org.dromara.kafka.consumer.config;
+
+import com.dtp.common.em.QueueTypeEnum;
+import com.dtp.common.em.RejectedTypeEnum;
+import com.dtp.core.support.ThreadPoolBuilder;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
+
+import java.util.concurrent.LinkedBlockingQueue;
+import java.util.concurrent.ThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-06 16:31
+ */
+@Configuration
+public class AsyncConfig {
+
+ @Bean("taskExecutor")
+ public ThreadPoolTaskExecutor taskExecutor(){
+ ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
+ taskExecutor.setCorePoolSize(8);
+ taskExecutor.setMaxPoolSize(20);
+ taskExecutor.setQueueCapacity(200);
+ taskExecutor.setKeepAliveSeconds(60);
+ taskExecutor.setThreadNamePrefix("hfapp--kafkaConsumer--");
+ taskExecutor.setWaitForTasksToCompleteOnShutdown(true);
+ taskExecutor.setAwaitTerminationSeconds(60);
+ taskExecutor.setRejectedExecutionHandler(new ThreadPoolExecutor.DiscardOldestPolicy());
+ return taskExecutor;
+ }
+
+ /**
+ * tips: 建议直接在配置中心配置就行,不用 @Bean 声明
+ * @return 线程池实例
+ */
+// @Bean(name = "dtpExecutor2")
+ public ThreadPoolExecutor dtpExecutor2() {
+ return ThreadPoolBuilder.newBuilder()
+ .threadPoolName("dtpExecutor2")
+ .corePoolSize(8)
+ .maximumPoolSize(20)
+ .keepAliveTime(60)
+ .timeUnit(TimeUnit.MILLISECONDS)
+ .workQueue(QueueTypeEnum.VARIABLE_LINKED_BLOCKING_QUEUE.getName(), 1024, false)
+ .waitForTasksToCompleteOnShutdown(true)
+ .awaitTerminationSeconds(60)
+ .rejectedExecutionHandler(RejectedTypeEnum.CALLER_RUNS_POLICY.getName())
+ .buildDynamic();
+ }
+
+ @Bean(name = "threadPoolExecutor")
+ public ThreadPoolExecutor threadPoolExecutor() {
+ return new ThreadPoolExecutor(
+ 8, // 核心线程数
+ 20, // 最大线程数
+ 60, // 空闲时间300秒
+ TimeUnit.SECONDS,
+ new LinkedBlockingQueue<>(10000), // 任务队列最大长度
+ new ThreadPoolExecutor.CallerRunsPolicy() // 拒绝策略:由调用线程处理
+ );
+ }
+
+}
+
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/KafkaProperties.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/KafkaProperties.java
new file mode 100644
index 00000000..45606d28
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/KafkaProperties.java
@@ -0,0 +1,136 @@
+package org.dromara.kafka.consumer.config;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.Properties;
+
+public final class KafkaProperties
+{
+ private static final Logger LOG = LoggerFactory.getLogger(KafkaProperties.class);
+
+ // Topic名称,安全模式下,需要以管理员用户添加当前用户的访问权限
+ public final static String TOPIC = "t_gps_realtime";
+
+ private static Properties serverProps = new Properties();
+ private static Properties producerProps = new Properties();
+
+ private static Properties consumerProps = new Properties();
+
+ private static Properties clientProps = new Properties();
+
+ private static KafkaProperties instance = null;
+
+ private KafkaProperties()
+ {
+ String filePath = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator;
+
+ try
+ {
+ File proFile = new File(filePath + "producer.properties");
+
+ if (proFile.exists())
+ {
+ producerProps.load(new FileInputStream(filePath + "producer.properties"));
+ }
+
+ File conFile = new File(filePath + "producer.properties");
+
+ if (conFile.exists())
+ {
+ consumerProps.load(new FileInputStream(filePath + "consumer.properties"));
+ }
+
+ File serFile = new File(filePath + "server.properties");
+
+ if (serFile.exists())
+ {
+ serverProps.load(new FileInputStream(filePath + "server.properties"));
+ }
+
+ File cliFile = new File(filePath + "client.properties");
+
+ if (cliFile.exists())
+ {
+ clientProps.load(new FileInputStream(filePath + "client.properties"));
+ }
+ }
+ catch (IOException e)
+ {
+ LOG.info("The Exception occured.", e);
+ }
+ }
+
+ public synchronized static KafkaProperties getInstance()
+ {
+ if (null == instance)
+ {
+ instance = new KafkaProperties();
+ }
+
+ return instance;
+ }
+
+ /**
+ * 获取参数值
+ * @param key properites的key值
+ * @param defValue 默认值
+ * @return
+ */
+ public String getValues(String key, String defValue)
+ {
+ String rtValue = null;
+
+ if (null == key)
+ {
+ LOG.error("key is null");
+ }
+ else
+ {
+ rtValue = getPropertiesValue(key);
+ }
+
+ if (null == rtValue)
+ {
+ LOG.warn("KafkaProperties.getValues return null, key is " + key);
+ rtValue = defValue;
+ }
+
+ LOG.info("KafkaProperties.getValues: key is " + key + "; Value is " + rtValue);
+
+ return rtValue;
+ }
+
+ /**
+ * 根据key值获取server.properties的值
+ * @param key
+ * @return
+ */
+ private String getPropertiesValue(String key)
+ {
+ String rtValue = serverProps.getProperty(key);
+
+ // server.properties中没有,则再向producer.properties中获取
+ if (null == rtValue)
+ {
+ rtValue = producerProps.getProperty(key);
+ }
+
+ // producer中没有,则再向consumer.properties中获取
+ if (null == rtValue)
+ {
+ rtValue = consumerProps.getProperty(key);
+ }
+
+ // consumer没有,则再向client.properties中获取
+ if (null == rtValue)
+ {
+ rtValue = clientProps.getProperty(key);
+ }
+
+ return rtValue;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/KafkaPropertiesConfig.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/KafkaPropertiesConfig.java
new file mode 100644
index 00000000..5f4edabf
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/KafkaPropertiesConfig.java
@@ -0,0 +1,35 @@
+package org.dromara.kafka.consumer.config;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Profile;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-06 15:13
+ */
+@ConfigurationProperties(prefix = "mykafka")
+@Profile(value = "dev")
+public
+class KafkaPropertiesConfig {
+ private String serverUrl;
+
+ private MyConsumerProperties consumerProperties = new MyConsumerProperties();
+
+ public String getServerUrl() {
+ return serverUrl;
+ }
+
+ public void setServerUrl(String serverUrl) {
+ this.serverUrl = serverUrl;
+ }
+
+ public MyConsumerProperties getConsumerProperties() {
+ return consumerProperties;
+ }
+
+ public void setConsumerProperties(MyConsumerProperties consumerProperties) {
+ this.consumerProperties = consumerProperties;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/LoginUtil.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/LoginUtil.java
new file mode 100644
index 00000000..2f7ae3fe
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/LoginUtil.java
@@ -0,0 +1,214 @@
+package org.dromara.kafka.consumer.config;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+public class LoginUtil
+{
+
+ static Logger logger = LoggerFactory.getLogger(LoginUtil.class);
+
+ public enum Module
+ {
+ STORM("StormClient"), KAFKA("KafkaClient"), ZOOKEEPER("Client");
+
+ private String name;
+
+ private Module(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+ }
+
+ /**
+ * line operator string
+ */
+ private static final String LINE_SEPARATOR = System.getProperty("line.separator");
+
+ /**
+ * jaas file postfix
+ */
+ private static final String JAAS_POSTFIX = ".jaas.conf";
+
+ /**
+ * is IBM jdk or not
+ */
+ private static final boolean IS_IBM_JDK = System.getProperty("java.vendor").contains("IBM");
+
+ /**
+ * IBM jdk login module
+ */
+ private static final String IBM_LOGIN_MODULE = "com.ibm.security.auth.module.Krb5LoginModule required";
+
+ /**
+ * oracle jdk login module
+ */
+ private static final String SUN_LOGIN_MODULE = "com.sun.security.auth.module.Krb5LoginModule required";
+
+ /**
+ * Zookeeper quorum principal.
+ */
+ public static final String ZOOKEEPER_AUTH_PRINCIPAL = "zookeeper.server.principal";
+
+ /**
+ * java security krb5 file path
+ */
+ public static final String JAVA_SECURITY_KRB5_CONF = "java.security.krb5.conf";
+
+ /**
+ * java security login file path
+ */
+ public static final String JAVA_SECURITY_LOGIN_CONF = "java.security.auth.login.config";
+
+ /**
+ * 设置jaas.conf文件
+ *
+ * @param principal
+ * @param keytabPath
+ * @throws IOException
+ */
+ public static void setJaasFile(String principal, String keytabPath)
+ throws IOException
+ {
+ String jaasPath =
+ new File(System.getProperty("java.io.tmpdir")) + File.separator + System.getProperty("user.name")
+ + JAAS_POSTFIX;
+
+ // windows路径下分隔符替换
+ jaasPath = jaasPath.replace("\\", "\\\\");
+ // 删除jaas文件
+ deleteJaasFile(jaasPath);
+ writeJaasFile(jaasPath, principal, keytabPath);
+ logger.error("jaasPath--{}",jaasPath);
+ System.setProperty(JAVA_SECURITY_LOGIN_CONF, jaasPath);
+ }
+
+ /**
+ * 设置zookeeper服务端principal
+ *
+ * @param zkServerPrincipal
+ * @throws IOException
+ */
+ public static void setZookeeperServerPrincipal(String zkServerPrincipal)
+ throws IOException
+ {
+ System.setProperty(ZOOKEEPER_AUTH_PRINCIPAL, zkServerPrincipal);
+ String ret = System.getProperty(ZOOKEEPER_AUTH_PRINCIPAL);
+ if (ret == null)
+ {
+ throw new IOException(ZOOKEEPER_AUTH_PRINCIPAL + " is null.");
+ }
+ if (!ret.equals(zkServerPrincipal))
+ {
+ throw new IOException(ZOOKEEPER_AUTH_PRINCIPAL + " is " + ret + " is not " + zkServerPrincipal + ".");
+ }
+ }
+
+ /**
+ * 设置krb5文件
+ *
+ * @param krb5ConfFile
+ * @throws IOException
+ */
+ public static void setKrb5Config(String krb5ConfFile)
+ throws IOException
+ {
+ System.setProperty(JAVA_SECURITY_KRB5_CONF, krb5ConfFile);
+ String ret = System.getProperty(JAVA_SECURITY_KRB5_CONF);
+ if (ret == null)
+ {
+ throw new IOException(JAVA_SECURITY_KRB5_CONF + " is null.");
+ }
+ if (!ret.equals(krb5ConfFile))
+ {
+ throw new IOException(JAVA_SECURITY_KRB5_CONF + " is " + ret + " is not " + krb5ConfFile + ".");
+ }
+ }
+
+ /**
+ * 写入jaas文件
+ *
+ * @throws IOException
+ * 写文件异常
+ */
+ private static void writeJaasFile(String jaasPath, String principal, String keytabPath)
+ throws IOException
+ {
+ FileWriter writer = new FileWriter(new File(jaasPath));
+ try
+ {
+ writer.write(getJaasConfContext(principal, keytabPath));
+ writer.flush();
+ }
+ catch (IOException e)
+ {
+ throw new IOException("Failed to create jaas.conf File");
+ }
+ finally
+ {
+ writer.close();
+ }
+ }
+
+ private static void deleteJaasFile(String jaasPath)
+ throws IOException
+ {
+ File jaasFile = new File(jaasPath);
+ if (jaasFile.exists())
+ {
+ if (!jaasFile.delete())
+ {
+ throw new IOException("Failed to delete exists jaas file.");
+ }
+ }
+ }
+
+ private static String getJaasConfContext(String principal, String keytabPath)
+ {
+ Module[] allModule = Module.values();
+ StringBuilder builder = new StringBuilder();
+ for (Module modlue : allModule)
+ {
+ builder.append(getModuleContext(principal, keytabPath, modlue));
+ }
+ return builder.toString();
+ }
+
+ private static String getModuleContext(String userPrincipal, String keyTabPath, Module module)
+ {
+ StringBuilder builder = new StringBuilder();
+ if (IS_IBM_JDK)
+ {
+ builder.append(module.getName()).append(" {").append(LINE_SEPARATOR);
+ builder.append(IBM_LOGIN_MODULE).append(LINE_SEPARATOR);
+ builder.append("credsType=both").append(LINE_SEPARATOR);
+ builder.append("principal=\"" + userPrincipal + "\"").append(LINE_SEPARATOR);
+ builder.append("useKeytab=\"" + keyTabPath + "\"").append(LINE_SEPARATOR);
+ builder.append("debug=true;").append(LINE_SEPARATOR);
+ builder.append("};").append(LINE_SEPARATOR);
+ }
+ else
+ {
+ builder.append(module.getName()).append(" {").append(LINE_SEPARATOR);
+ builder.append(SUN_LOGIN_MODULE).append(LINE_SEPARATOR);
+ builder.append("useKeyTab=true").append(LINE_SEPARATOR);
+ builder.append("keyTab=\"" + keyTabPath + "\"").append(LINE_SEPARATOR);
+ builder.append("principal=\"" + userPrincipal + "\"").append(LINE_SEPARATOR);
+ builder.append("useTicketCache=false").append(LINE_SEPARATOR);
+ builder.append("storeKey=true").append(LINE_SEPARATOR);
+ builder.append("debug=true;").append(LINE_SEPARATOR);
+ builder.append("};").append(LINE_SEPARATOR);
+ }
+
+ return builder.toString();
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/MyConsumerProperties.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/MyConsumerProperties.java
new file mode 100644
index 00000000..040def94
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/MyConsumerProperties.java
@@ -0,0 +1,28 @@
+package org.dromara.kafka.consumer.config;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-07 14:54
+ */
+public class MyConsumerProperties {
+ private String clientId;
+ private String groupId = "222";
+
+ public String getClientId() {
+ return clientId;
+ }
+
+ public void setClientId(String clientId) {
+ this.clientId = clientId;
+ }
+
+ public String getGroupId() {
+ return groupId;
+ }
+
+ public void setGroupId(String groupId) {
+ this.groupId = groupId;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/NewConsumer.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/NewConsumer.java
new file mode 100644
index 00000000..2205ee31
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/NewConsumer.java
@@ -0,0 +1,159 @@
+package org.dromara.kafka.consumer.config;
+
+import org.apache.kafka.clients.consumer.ConsumerRecord;
+import org.apache.kafka.clients.consumer.ConsumerRecords;
+import org.apache.kafka.clients.consumer.KafkaConsumer;
+import org.dromara.kafka.consumer.handler.KafkaSecurityUtil;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.Properties;
+
+
+public class NewConsumer extends Thread{
+ private static final Logger LOG = LoggerFactory.getLogger(NewConsumer.class);
+
+ private final KafkaConsumer consumer;
+
+ private final String topic;
+
+ // 一次请求的最大等待时间
+ private final int waitTime = 10000;
+
+ // Broker连接地址
+ private final String bootstrapServers = "bootstrap.servers";
+ // Group id
+ private final String groupId = "group.id";
+ // 消息内容使用的反序列化类
+ private final String valueDeserializer = "value.deserializer";
+ // 消息Key值使用的反序列化类
+ private final String keyDeserializer = "key.deserializer";
+ // 协议类型:当前支持配置为SASL_PLAINTEXT或者PLAINTEXT
+ private final String securityProtocol = "security.protocol";
+ // 服务名
+ private final String saslKerberosServiceName = "sasl.kerberos.service.name";
+ // 域名
+ private final String kerberosDomainName = "kerberos.domain.name";
+ // 是否自动提交offset
+ private final String enableAutoCommit = "enable.auto.commit";
+ // 自动提交offset的时间间隔
+ private final String autoCommitIntervalMs = "auto.commit.interval.ms";
+
+ // 会话超时时间
+ private final String sessionTimeoutMs = "session.timeout.ms";
+
+ /**
+ * 用户自己申请的机机账号keytab文件名称
+ */
+ private static final String USER_KEYTAB_FILE = "user.keytab";
+
+ /**
+ * 用户自己申请的机机账号名称
+ */
+ private static final String USER_PRINCIPAL = "aqdsj_ruansi";
+
+ /**
+ * NewConsumer构造函数
+ * @param topic 订阅的Topic名称
+ */
+ public NewConsumer(String topic) {
+
+ Properties props = new Properties();
+
+ KafkaProperties kafkaProc = KafkaProperties.getInstance();
+ // Broker连接地址
+ props.put(bootstrapServers,
+ kafkaProc.getValues(bootstrapServers, "localhost:21007"));
+ // Group id
+ props.put(groupId, "DemoConsumer");
+ // 是否自动提交offset
+ props.put(enableAutoCommit, "true");
+ // 自动提交offset的时间间隔
+ props.put(autoCommitIntervalMs, "1000");
+ // 会话超时时间
+ props.put(sessionTimeoutMs, "30000");
+ // 消息Key值使用的反序列化类
+ props.put(keyDeserializer,
+ "org.apache.kafka.common.serialization.IntegerDeserializer");
+ // 消息内容使用的反序列化类
+ props.put(valueDeserializer,
+ "org.apache.kafka.common.serialization.StringDeserializer");
+ // 安全协议类型
+ props.put(securityProtocol, kafkaProc.getValues(securityProtocol, "SASL_PLAINTEXT"));
+ // 服务名
+ props.put(saslKerberosServiceName, "kafka");
+ // 域名
+ props.put(kerberosDomainName, kafkaProc.getValues(kerberosDomainName, "hadoop.hadoop.com"));
+ consumer = new KafkaConsumer(props);
+ this.topic = topic;
+ }
+
+ /**
+ * 订阅Topic的消息处理函数
+ */
+ public void doWork()
+ {
+ // 订阅
+ consumer.subscribe(Collections.singletonList(this.topic));
+ // 消息消费请求
+ ConsumerRecords records = consumer.poll(waitTime);
+ // 消息处理
+ for (ConsumerRecord record : records)
+ {
+ LOG.info("[NewConsumerExample], Received message: (" + record.key() + ", " + record.value()
+ + ") at offset " + record.offset());
+ }
+ }
+
+
+
+ public static void main(String[] args)
+ {
+ if (KafkaSecurityUtil.isSecurityModel())
+ {
+ try
+ {
+ LOG.info("Securitymode start.");
+
+ //!!注意,安全认证时,需要用户手动修改为自己申请的机机账号
+ KafkaSecurityUtil.securityPrepare();
+ }
+ catch (IOException e)
+ {
+ LOG.error("Security prepare failure.");
+ LOG.error("The IOException occured : {}.", e);
+ return;
+ }
+ LOG.info("Security prepare success.");
+ }
+
+ NewConsumer consumerThread = new NewConsumer(KafkaProperties.TOPIC);
+ consumerThread.start();
+
+ // 等到60s后将consumer关闭,实际执行过程中可修改
+ try
+ {
+ Thread.sleep(60000);
+ }
+ catch (InterruptedException e)
+ {
+ LOG.info("The InterruptedException occured : {}.", e);
+ }
+ finally
+ {
+ consumerThread.shutdown();
+ consumerThread.consumer.close();
+ }
+ }
+
+ @Override
+ public synchronized void start() {
+ doWork();
+ }
+
+ private void shutdown(){
+ Thread.currentThread().interrupt();
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/WatchApi.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/WatchApi.java
new file mode 100644
index 00000000..31bb013c
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/WatchApi.java
@@ -0,0 +1,25 @@
+package org.dromara.kafka.consumer.config;
+
+import org.apache.zookeeper.WatchedEvent;
+import org.apache.zookeeper.Watcher;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-15 16:10
+ */
+public class WatchApi implements Watcher {
+
+ private static final Logger logger = LoggerFactory.getLogger(WatchApi.class);
+ @Override
+ public void process(WatchedEvent event) {
+ logger.info("【Watcher监听事件】={}",event.getState());
+ logger.info("【监听路径为】={}",event.getPath());
+ logger.info("【监听的类型为】={}",event.getType()); // 三种监听类型: 创建,删除,更新
+ }
+}
+
+
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/WebMvcConfig.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/WebMvcConfig.java
new file mode 100644
index 00000000..1f928a52
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/config/WebMvcConfig.java
@@ -0,0 +1,32 @@
+package org.dromara.kafka.consumer.config;
+
+
+import org.dromara.kafka.consumer.interceptors.MyInterceptor;
+import org.dromara.kafka.consumer.interceptors.MyInterceptor2;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-08 16:19
+ */
+@Configuration
+public class WebMvcConfig implements WebMvcConfigurer {
+
+ private MyInterceptor myInterceptor;
+ private MyInterceptor2 myInterceptor2;
+
+ public WebMvcConfig(MyInterceptor myInterceptor, MyInterceptor2 myInterceptor2) {
+ this.myInterceptor = myInterceptor;
+ this.myInterceptor2 = myInterceptor2;
+ }
+
+ @Override
+ public void addInterceptors(InterceptorRegistry registry) {
+ registry.addInterceptor(myInterceptor);
+ registry.addInterceptor(myInterceptor2);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/EsGpsInfo.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/EsGpsInfo.java
new file mode 100644
index 00000000..93b5fa56
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/EsGpsInfo.java
@@ -0,0 +1,52 @@
+package org.dromara.kafka.consumer.entity;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * description:
+ * gps定位信息(es表)
+ * @author chenle
+ * @date 2021-05-14 9:39
+ */
+@Data
+public class EsGpsInfo implements Serializable {
+
+ private static final long serialVersionUID = 7455495841680488351L;
+ /**
+ * 唯一码(外部系统)合肥版本不需要 21位id,
+ * 到时候上传省厅的时候 需要在kafka发送端处理,生成一个省厅需要的21位id
+ */
+ 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;
+
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/EsGpsInfoVO.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/EsGpsInfoVO.java
new file mode 100644
index 00000000..2252a1e7
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/EsGpsInfoVO.java
@@ -0,0 +1,41 @@
+package org.dromara.kafka.consumer.entity;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2022-04-16 14:59
+ */
+@Data
+public class EsGpsInfoVO implements Serializable {
+ /**
+ * 设备串号,设备唯一值
+ */
+ private String deviceCode;
+ private String latitude;
+ private String longitude;
+ //方向
+ private String direction;
+ //高程
+ private String height;
+ //精度
+ private String speed;
+
+ private String gpsTime;
+
+ private String zzjgdm;
+
+ private String zzjgmc;
+
+ private String policeNo;
+
+ private String policeName;
+
+ private String carNum;
+
+ private Integer online;
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicCarGps.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicCarGps.java
new file mode 100644
index 00000000..a24812a4
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicCarGps.java
@@ -0,0 +1,24 @@
+package org.dromara.kafka.consumer.entity;
+
+import lombok.Data;
+
+/**
+ * description:
+ * 公车kafka原始数据
+ * @author chenle
+ * @date 2021-11-01 18:02
+ */
+@Data
+public class TopicCarGps {
+ private String ID;
+ private String MSG_CAR_ID;
+ private String MSG_DIRECTION;
+ private String MSG_DIRECTION_STR;
+ //时间戳 1600091231000#0
+ private String MSG_GPS_TIME;
+ private String MSG_KM;
+ private String MSG_LAT;
+ private String MSG_LON;
+ private String MSG_PHONE;
+ private String MSG_SPEED;
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicGpsRealTime.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicGpsRealTime.java
new file mode 100644
index 00000000..92bcc264
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicGpsRealTime.java
@@ -0,0 +1,18 @@
+package org.dromara.kafka.consumer.entity;
+
+import lombok.Data;
+
+/**
+ * description:
+ * pdt手台kafka原始数据
+ * @author chenle
+ * @date 2021-11-01 18:06
+ */
+@Data
+public class TopicGpsRealTime {
+ private String GPSID;
+ //标准日期格式 2021-11-01 18:06:01
+ private String REALTIME;
+ private String X;
+ private String Y;
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicZFJLY.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicZFJLY.java
new file mode 100644
index 00000000..bda0d941
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/entity/TopicZFJLY.java
@@ -0,0 +1,100 @@
+package org.dromara.kafka.consumer.entity;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-12-28 15:21
+ */
+public class TopicZFJLY {
+ private String PlatformID;
+ private String EventId;//事件ID
+ private String Puid; //设备ID
+ private String Latitude;
+ private String Longtide;
+ private String Bearing;//方向
+ private String Speed;//速度
+ private String Altitude; //海拔
+ private String Status;//GPS推送状态
+ private String Time; //时间戳(UTC时间)
+
+ public String getPlatformID() {
+ return PlatformID;
+ }
+
+ public void setPlatformID(String platformID) {
+ PlatformID = platformID;
+ }
+
+ public String getEventId() {
+ return EventId;
+ }
+
+ public void setEventId(String eventId) {
+ EventId = eventId;
+ }
+
+ public String getPuid() {
+ return Puid;
+ }
+
+ public void setPuid(String puid) {
+ Puid = puid;
+ }
+
+ public String getLatitude() {
+ return Latitude;
+ }
+
+ public void setLatitude(String latitude) {
+ Latitude = latitude;
+ }
+
+ public String getLongtide() {
+ return Longtide;
+ }
+
+ public void setLongtide(String longtide) {
+ Longtide = longtide;
+ }
+
+ public String getBearing() {
+ return Bearing;
+ }
+
+ public void setBearing(String bearing) {
+ Bearing = bearing;
+ }
+
+ public String getSpeed() {
+ return Speed;
+ }
+
+ public void setSpeed(String speed) {
+ Speed = speed;
+ }
+
+ public String getAltitude() {
+ return Altitude;
+ }
+
+ public void setAltitude(String altitude) {
+ Altitude = altitude;
+ }
+
+ public String getStatus() {
+ return Status;
+ }
+
+ public void setStatus(String status) {
+ Status = status;
+ }
+
+ public String getTime() {
+ return Time;
+ }
+
+ public void setTime(String time) {
+ Time = time;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/filters/MyFilter.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/filters/MyFilter.java
new file mode 100644
index 00000000..fcae2d78
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/filters/MyFilter.java
@@ -0,0 +1,30 @@
+package org.dromara.kafka.consumer.filters;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.servlet.*;
+import javax.servlet.annotation.WebFilter;
+import javax.servlet.http.HttpServletRequest;
+import java.io.IOException;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-08 15:40
+ */
+@WebFilter(filterName="MyFilter",urlPatterns = "/*")
+public class MyFilter implements Filter {
+
+ private Logger logger = LoggerFactory.getLogger(MyFilter.class);
+
+ @Override
+ public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
+ HttpServletRequest request = (HttpServletRequest) servletRequest;
+ String queryString = request.getQueryString();
+// logger.error("pre,queryString={}",queryString);
+ filterChain.doFilter(servletRequest,servletResponse);
+// logger.error("queryString={}",queryString);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/ConsumerWorker.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/ConsumerWorker.java
new file mode 100644
index 00000000..37634b12
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/ConsumerWorker.java
@@ -0,0 +1,234 @@
+package org.dromara.kafka.consumer.handler;
+
+import cn.hutool.core.bean.BeanUtil;
+import cn.hutool.core.bean.copier.CopyOptions;
+import cn.hutool.core.convert.ConvertException;
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.json.JSONObject;
+import cn.hutool.json.JSONUtil;
+import com.alibaba.fastjson.JSON;
+import com.ruansee.response.ApiResponse;
+import org.apache.commons.lang.StringUtils;
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.apache.kafka.clients.consumer.ConsumerRecord;
+import org.dromara.common.core.domain.R;
+import org.dromara.data2es.api.RemoteDataToEsService;
+import org.dromara.data2es.api.domain.RemoteGpsInfo;
+import org.dromara.kafka.consumer.entity.EsGpsInfo;
+import org.dromara.kafka.consumer.entity.EsGpsInfoVO;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+import java.util.concurrent.LinkedBlockingDeque;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-06 16:44
+ */
+public class ConsumerWorker implements Runnable {
+ private ConsumerRecord record;
+ private Logger logger = LoggerFactory.getLogger(ConsumerWorker.class);
+
+ public static LinkedBlockingDeque linkedBlockingDeque = new LinkedBlockingDeque<>(5000);
+
+ private String cityCode ;
+
+ ConsumerWorker(ConsumerRecord record, String cityCode) {
+ this.record = record;
+ this.cityCode = cityCode;
+ }
+
+ @Override
+ public void run() {
+ //其他地市使用的方法,这里使用了一个巧妙的方法,我们开发的地市都是传4位,这种其他地市的cityCode传大于4位,然后截取
+ if(cityCode.length() > 4){
+ cityCode = cityCode.substring(0,4);
+ normalRequest();
+ }else {
+ //六安、安庆等地市的方法,这些地市都是我们自己公司开发的东西。
+ luanrequest();
+// luanrequestBatch();
+ }
+ }
+
+ /*
+ * 废弃方法
+ * */
+ private void luanrequestBatch() {
+ Object value = record.value();
+ String topic = record.topic();
+ List list = new ArrayList<>();
+ logger.info("offset={},topic={},value={}", record.offset(), topic,value);
+ List jsonObjects = JSON.parseArray((String) value, JSONObject.class);
+ for (JSONObject jsonObject : jsonObjects) {
+ EsGpsInfo esGpsInfo;
+ /*try {
+ jsonObject = JSONUtil.parseObj(((String) value));
+ }catch (ConvertException e){
+ logger.info("jsonObject=null:error={}",e.getMessage());
+ return;
+ }*/
+ try {
+ esGpsInfo = JSONUtil.toBean(jsonObject, EsGpsInfo.class);
+ }catch (ConvertException e){
+ logger.info("EsGpsInfo=null:error={}",e.getMessage());
+ return;
+ }
+
+ if(Objects.isNull(esGpsInfo)){
+ logger.info("esGpsInfo=null no error");
+ return;
+ }
+ String deviceCode = esGpsInfo.getDeviceCode();
+ if(StringUtils.isEmpty(deviceCode) || deviceCode.length() > 100){
+ logger.info("deviceCode:{} is null or is too long ",deviceCode);
+ return;
+ }
+ String latitude = esGpsInfo.getLat();
+ if(StringUtils.isEmpty(latitude) || "0.0".equals(latitude)){
+ logger.info("latitude:{} is null or is zero ",latitude);
+ return;
+ }
+ String longitude = esGpsInfo.getLng();
+ if(StringUtils.isEmpty(longitude) || "0.0".equals(longitude)){
+ logger.info("longitude:{} is null or is zero ",longitude);
+ return;
+ }
+ esGpsInfo.setInfoSource(cityCode);
+
+ esGpsInfo.setGpsTime(new Date(Long.valueOf(jsonObject.getStr("gpsTime"))));
+ list.add(esGpsInfo);
+ }
+// dataToEsService.saveGpsInfoBatch(list);
+ }
+
+ private void luanrequest() {
+ Object value = record.value();
+ String topic = record.topic();
+
+ logger.info("offset={},topic={},value={}", record.offset(), topic,value);
+ RemoteGpsInfo esGpsInfo;
+ JSONObject jsonObject;
+ try {
+ jsonObject = JSONUtil.parseObj(((String) value));
+ }catch (ConvertException e){
+ logger.info("jsonObject=null:error={}",e.getMessage());
+ return;
+ }
+ try {
+ esGpsInfo = JSONUtil.toBean(jsonObject, RemoteGpsInfo.class);
+ }catch (ConvertException e){
+ logger.info("EsGpsInfo=null:error={}",e.getMessage());
+ return;
+ }
+
+ if(Objects.isNull(esGpsInfo)){
+ logger.info("esGpsInfo=null no error");
+ return;
+ }
+ String deviceCode = esGpsInfo.getDeviceCode();
+ if(StringUtils.isEmpty(deviceCode) || deviceCode.length() > 100){
+ logger.info("deviceCode:{} is null or is too long ",deviceCode);
+ return;
+ }
+ String latitude = esGpsInfo.getLat();
+ if(StringUtils.isEmpty(latitude) || "0.0".equals(latitude)){
+ logger.info("latitude:{} is null or is zero ",latitude);
+ return;
+ }
+ String longitude = esGpsInfo.getLng();
+ if(StringUtils.isEmpty(longitude) || "0.0".equals(longitude)){
+ logger.info("longitude:{} is null or is zero ",longitude);
+ return;
+ }
+ esGpsInfo.setInfoSource(cityCode);
+ try {
+ esGpsInfo.setGpsTime(new Date(Long.valueOf(jsonObject.getStr("gpsTime"))));
+ }catch (Exception e){
+ logger.error("error_msg={}",e.getMessage());
+ }
+ logger.info("esGpsInfo={}",esGpsInfo);
+ boolean offer = linkedBlockingDeque.offer(esGpsInfo);
+ R response = R.ok(offer);
+ if(Objects.isNull(response)){
+ logger.info("response == null");
+ }
+ logger.info("code={},msg={}",response.getCode(),response.getMsg());
+ if(200 == response.getCode()){
+ logger.info("topic={},data2es={},gpsTime={}",topic,"success",esGpsInfo.getGpsTime());
+ }else{
+ logger.info("topic={},data2es={}",topic,response.getMsg());
+ }
+ }
+
+
+
+ /**
+ * 通用的请求(一般地市采用这个方法)
+ */
+ private void normalRequest() {
+ Object value = record.value();
+ String topic = record.topic();
+
+ logger.info("offset={},topic={},value={}", record.offset(), topic,value);
+
+ RemoteGpsInfo esGpsInfo = new RemoteGpsInfo();
+ EsGpsInfoVO esGpsInfoVO;
+ try {
+ esGpsInfoVO = JSONUtil.toBean(((String) value), EsGpsInfoVO.class);
+ }catch (ConvertException e){
+ logger.info("esGpsInfoVO=null:error={}",e.getMessage());
+ return;
+ }
+ if(Objects.isNull(esGpsInfoVO)){
+ logger.info("esGpsInfoVO=null no error");
+ return;
+ }
+
+
+ try {
+ DateTime parse = DateUtil.parse(esGpsInfoVO.getGpsTime(), "yyyy-MM-dd HH:mm:ss");
+ }catch (Exception e){
+ logger.info("gpsTime:{} format error", esGpsInfoVO.getGpsTime());
+ return;
+ }
+
+ String deviceCode = esGpsInfoVO.getDeviceCode();
+ if(StringUtils.isEmpty(deviceCode) || deviceCode.length() > 100){
+ logger.info("deviceCode:{} is null or is too long ",deviceCode);
+ return;
+ }
+ String latitude = esGpsInfoVO.getLatitude();
+ if(StringUtils.isEmpty(latitude) || "0.0".equals(latitude)){
+ logger.info("latitude:{} is null or is zero ",latitude);
+ return;
+ }
+ String longitude = esGpsInfoVO.getLongitude();
+ if(StringUtils.isEmpty(longitude) || "0.0".equals(longitude)){
+ logger.info("longitude:{} is null or is zero ",longitude);
+ return;
+ }
+ BeanUtil.copyProperties(esGpsInfoVO,esGpsInfo,new CopyOptions());
+ esGpsInfo.setLat(latitude);
+ esGpsInfo.setLng(esGpsInfoVO.getLongitude());
+ esGpsInfo.setOrientation(esGpsInfoVO.getDirection());
+ esGpsInfo.setInfoSource(cityCode);
+
+ boolean offer = linkedBlockingDeque.offer(esGpsInfo);
+ R response = R.ok(offer);
+ if(200 == response.getCode()){
+ logger.info("topic={},data2es={}",topic,"success");
+ }else{
+ logger.error("topic={},data2es={}",topic,"fail");
+ }
+ }
+
+
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/DataInsertBatchHandler.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/DataInsertBatchHandler.java
new file mode 100644
index 00000000..cc798e00
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/DataInsertBatchHandler.java
@@ -0,0 +1,57 @@
+package org.dromara.kafka.consumer.handler;
+
+import cn.hutool.core.collection.CollectionUtil;
+import com.google.common.collect.Queues;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.dromara.data2es.api.RemoteDataToEsService;
+import org.dromara.data2es.api.domain.RemoteGpsInfo;
+import org.dromara.kafka.consumer.entity.EsGpsInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.CommandLineRunner;
+import org.springframework.context.annotation.Configuration;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.LinkedBlockingDeque;
+import java.util.concurrent.TimeUnit;
+
+/**
+ * description:
+ * 获取blockQueue 然后发送到batch中
+ * @author chenle
+ * @date 2023-04-03 10:29
+ */
+@Configuration
+@Slf4j
+public class DataInsertBatchHandler implements CommandLineRunner {
+
+ @DubboReference
+ private RemoteDataToEsService gpsService;
+
+ @Override
+ public void run(String... args) throws Exception {
+ ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
+ LinkedBlockingDeque linkedBlockingDeque = ConsumerWorker.linkedBlockingDeque;
+ singleThreadExecutor.execute(new Runnable() {
+ @Override
+ public void run() {
+ while (true) {
+ try {
+ List list = new ArrayList<>();
+ Queues.drain(linkedBlockingDeque, list, 200, 5, TimeUnit.SECONDS);
+ log.info("batch size={}", list.size());
+ if(CollectionUtil.isNotEmpty(list)) {
+ gpsService.saveDataBatch(list);
+ }
+ } catch (Exception e) {
+ log.error("缓存队列批量消费异常:{}", e.getMessage());
+ }
+ }
+ }
+ });
+ }
+
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/KafkaConsumerRunnable.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/KafkaConsumerRunnable.java
new file mode 100644
index 00000000..6d21ea5f
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/KafkaConsumerRunnable.java
@@ -0,0 +1,98 @@
+package org.dromara.kafka.consumer.handler;
+
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.apache.kafka.clients.consumer.ConsumerRecord;
+import org.apache.kafka.clients.consumer.ConsumerRecords;
+import org.apache.kafka.clients.consumer.KafkaConsumer;
+import org.apache.kafka.common.PartitionInfo;
+import org.apache.kafka.common.TopicPartition;
+import org.dromara.data2es.api.RemoteDataToEsService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory;
+import org.springframework.kafka.config.KafkaListenerContainerFactory;
+import org.springframework.kafka.core.DefaultKafkaConsumerFactory;
+import org.springframework.kafka.listener.ContainerProperties;
+import org.springframework.kafka.listener.MessageListener;
+
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ThreadPoolExecutor;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-06 16:39
+ */
+public class KafkaConsumerRunnable implements Runnable {
+
+ private Map props;
+ private ThreadPoolExecutor taskExecutor;
+
+ private String cityCode;
+ private Logger logger = LoggerFactory.getLogger(KafkaConsumerRunnable.class);
+
+ public KafkaConsumerRunnable(Map props, ThreadPoolExecutor taskExecutor,
+ String cityCode) {
+ this.props = props;
+ this.taskExecutor = taskExecutor;
+ this.cityCode = cityCode;
+ }
+
+ private DefaultKafkaConsumerFactory buildConsumerFactory(){
+ return new DefaultKafkaConsumerFactory(props);
+ }
+
+ private ContainerProperties containerProperties(String[] topic, MessageListener messageListener) {
+ ContainerProperties containerProperties = new ContainerProperties(topic);
+ containerProperties.setMessageListener(messageListener);
+ return containerProperties;
+ }
+
+ private KafkaListenerContainerFactory buildListenerFactory(){
+ ConcurrentKafkaListenerContainerFactory factory = new ConcurrentKafkaListenerContainerFactory();
+ factory.setConsumerFactory(buildConsumerFactory());
+ factory.setConcurrency(4);
+ factory.setBatchListener(true);
+
+ factory.getContainerProperties().setPollTimeout(3000);
+ return factory;
+ }
+
+
+
+
+
+
+ @Override
+ public void run() {
+ KafkaConsumer consumer = new KafkaConsumer<>(props);
+
+ List topics = (List) props.get("topics");
+ consumer.subscribe(topics);
+ consumer.poll(0); // 令订阅生效
+
+ List topicPartitions = new ArrayList<>();
+ Map> stringListMap = consumer.listTopics();
+ for (Object topic : topics) {
+ String topic1 = (String) topic;
+ List partitionInfos = stringListMap.get(topic1);
+ for (PartitionInfo partitionInfo : partitionInfos) {
+ TopicPartition partition = new TopicPartition(topic1, partitionInfo.partition());
+ topicPartitions.add(partition);
+ }
+ }
+ consumer.seekToEnd(topicPartitions); // 如果传Collections.emptyList()表示移动所有订阅topic分区offset到最末端
+
+ while (true) {
+ ConsumerRecords records = consumer.poll(Duration.ofMillis(100));
+ for (ConsumerRecord record : records) {
+ taskExecutor.submit(new ConsumerWorker(record, cityCode));
+ }
+
+ }
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/KafkaSecurityUtil.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/KafkaSecurityUtil.java
new file mode 100644
index 00000000..cf4a3238
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/KafkaSecurityUtil.java
@@ -0,0 +1,108 @@
+package org.dromara.kafka.consumer.handler;
+
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import org.dromara.kafka.consumer.entity.EsGpsInfo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-10-28 14:48
+ */
+public class KafkaSecurityUtil {
+
+
+
+
+ static Logger logger = LoggerFactory.getLogger(KafkaSecurityUtil.class);
+
+ public static void main(String[] args) {
+ EsGpsInfo esGpsInfo = new EsGpsInfo();
+ String realtime = "2021/11/04 12:00:11";
+ DateTime dateTime = DateUtil.parse(realtime);
+ esGpsInfo.setGpsTime(dateTime.toJdkDate());
+ logger.info("esGpsInfo:{},deviceType={},gpsTime={}",esGpsInfo.toString(),
+ esGpsInfo.getDeviceType(),dateTime.toJdkDate().toString());
+ }
+ /**
+ * 用户自己申请的机机账号keytab文件名称
+ */
+ private static final String USER_KEYTAB_FILE = "user.keytab";
+
+ /**
+ * 用户自己申请的机机账号名称
+ */
+ private static final String USER_PRINCIPAL = "aqdsj_ruansi@HADOOP.COM";
+
+ public static void securityPrepare() throws IOException
+ {
+ logger.error("进入了---securityPrepare");
+ //String filePath = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator;
+ //String krbFile = filePath + "krb5.conf";
+ //ClassPathResource classPathResource = new ClassPathResource("krb5.conf");
+ //String krbFile = classPathResource.getAbsolutePath();
+ String krbFile = "/gpsstore/krb5.conf";
+// String userKeyTableFile = filePath + USER_KEYTAB_FILE;
+ //ClassPathResource classPathResource1 = new ClassPathResource(USER_KEYTAB_FILE);
+ String userKeyTableFile = "/gpsstore/user.keytab";
+
+ //windows路径下分隔符替换
+ userKeyTableFile = userKeyTableFile.replace("\\", "\\\\");
+ krbFile = krbFile.replace("\\", "\\\\");
+
+ LoginUtil.setKrb5Config(krbFile);
+ LoginUtil.setZookeeperServerPrincipal("zookeeper/hadoop.hadoop.com");
+ logger.error("userKeyTableFile路径---{}",userKeyTableFile);
+ LoginUtil.setJaasFile(USER_PRINCIPAL, userKeyTableFile);
+ }
+
+ public static Boolean isSecurityModel()
+ {
+ Boolean isSecurity = false;
+ //String krbFilePath = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "kafkaSecurityMode";
+ //ClassPathResource classPathResource = new ClassPathResource("kafkaSecurityMode");
+ InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("kafkaSecurityMode");
+
+ /*File file = classPathResource.getFile();
+
+ if(!file.exists()){
+ return isSecurity;
+ }*/
+
+ Properties securityProps = new Properties();
+
+
+ try
+ {
+ securityProps.load(inputStream);
+ if ("yes".equalsIgnoreCase(securityProps.getProperty("kafka.client.security.mode")))
+ {
+ isSecurity = true;
+ }
+ }
+ catch (Exception e)
+ {
+ logger.info("The Exception occured : {}.", e);
+ }
+
+ return isSecurity;
+ }
+
+ /*
+ * 判断文件是否存在
+ */
+ private static boolean isFileExists(String fileName)
+ {
+ File file = new File(fileName);
+
+ return file.exists();
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/LoginUtil.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/LoginUtil.java
new file mode 100644
index 00000000..8fa4b0bf
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/LoginUtil.java
@@ -0,0 +1,215 @@
+package org.dromara.kafka.consumer.handler;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-10-28 15:40
+ */
+public class LoginUtil
+{
+
+ public enum Module
+ {
+ STORM("StormClient"), KAFKA("KafkaClient"), ZOOKEEPER("Client");
+
+ private String name;
+
+ private Module(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+ }
+
+ /**
+ * line operator string
+ */
+ private static final String LINE_SEPARATOR = System.getProperty("line.separator");
+
+ /**
+ * jaas file postfix
+ */
+ private static final String JAAS_POSTFIX = ".jaas.conf";
+
+ /**
+ * is IBM jdk or not
+ */
+ private static final boolean IS_IBM_JDK = System.getProperty("java.vendor").contains("IBM");
+
+ /**
+ * IBM jdk login module
+ */
+ private static final String IBM_LOGIN_MODULE = "com.ibm.security.auth.module.Krb5LoginModule required";
+
+ /**
+ * oracle jdk login module
+ */
+ private static final String SUN_LOGIN_MODULE = "com.sun.security.auth.module.Krb5LoginModule required";
+
+ /**
+ * Zookeeper quorum principal.
+ */
+ public static final String ZOOKEEPER_AUTH_PRINCIPAL = "zookeeper.server.principal";
+
+ /**
+ * java security krb5 file path
+ */
+ public static final String JAVA_SECURITY_KRB5_CONF = "java.security.krb5.conf";
+
+ /**
+ * java security login file path
+ */
+ public static final String JAVA_SECURITY_LOGIN_CONF = "java.security.auth.login.config";
+
+ /**
+ * 设置jaas.conf文件
+ *
+ * @param principal
+ * @param keytabPath
+ * @throws IOException
+ */
+ public static void setJaasFile(String principal, String keytabPath)
+ throws IOException
+ {
+ String jaasPath =
+ new File(System.getProperty("java.io.tmpdir")) + File.separator + System.getProperty("user.name")
+ + JAAS_POSTFIX;
+
+ // windows路径下分隔符替换
+ jaasPath = jaasPath.replace("\\", "\\\\");
+ // 删除jaas文件
+ deleteJaasFile(jaasPath);
+ writeJaasFile(jaasPath, principal, keytabPath);
+ System.setProperty(JAVA_SECURITY_LOGIN_CONF, jaasPath);
+ }
+
+ /**
+ * 设置zookeeper服务端principal
+ *
+ * @param zkServerPrincipal
+ * @throws IOException
+ */
+ public static void setZookeeperServerPrincipal(String zkServerPrincipal)
+ throws IOException
+ {
+ System.setProperty(ZOOKEEPER_AUTH_PRINCIPAL, zkServerPrincipal);
+ String ret = System.getProperty(ZOOKEEPER_AUTH_PRINCIPAL);
+ if (ret == null)
+ {
+ throw new IOException(ZOOKEEPER_AUTH_PRINCIPAL + " is null.");
+ }
+ if (!ret.equals(zkServerPrincipal))
+ {
+ throw new IOException(ZOOKEEPER_AUTH_PRINCIPAL + " is " + ret + " is not " + zkServerPrincipal + ".");
+ }
+ }
+
+ /**
+ * 设置krb5文件
+ *
+ * @param krb5ConfFile
+ * @throws IOException
+ */
+ public static void setKrb5Config(String krb5ConfFile)
+ throws IOException
+ {
+ System.setProperty(JAVA_SECURITY_KRB5_CONF, krb5ConfFile);
+ String ret = System.getProperty(JAVA_SECURITY_KRB5_CONF);
+ if (ret == null)
+ {
+ throw new IOException(JAVA_SECURITY_KRB5_CONF + " is null.");
+ }
+ if (!ret.equals(krb5ConfFile))
+ {
+ throw new IOException(JAVA_SECURITY_KRB5_CONF + " is " + ret + " is not " + krb5ConfFile + ".");
+ }
+ }
+
+ /**
+ * 写入jaas文件
+ *
+ * @throws IOException
+ * 写文件异常
+ */
+ private static void writeJaasFile(String jaasPath, String principal, String keytabPath)
+ throws IOException
+ {
+ FileWriter writer = new FileWriter(new File(jaasPath));
+ try
+ {
+ writer.write(getJaasConfContext(principal, keytabPath));
+ writer.flush();
+ }
+ catch (IOException e)
+ {
+ throw new IOException("Failed to create jaas.conf File");
+ }
+ finally
+ {
+ writer.close();
+ }
+ }
+
+ private static void deleteJaasFile(String jaasPath)
+ throws IOException
+ {
+ File jaasFile = new File(jaasPath);
+ if (jaasFile.exists())
+ {
+ if (!jaasFile.delete())
+ {
+ throw new IOException("Failed to delete exists jaas file.");
+ }
+ }
+ }
+
+ private static String getJaasConfContext(String principal, String keytabPath)
+ {
+ Module[] allModule = Module.values();
+ StringBuilder builder = new StringBuilder();
+ for (Module modlue : allModule)
+ {
+ builder.append(getModuleContext(principal, keytabPath, modlue));
+ }
+ return builder.toString();
+ }
+
+ private static String getModuleContext(String userPrincipal, String keyTabPath, Module module)
+ {
+ StringBuilder builder = new StringBuilder();
+ if (IS_IBM_JDK)
+ {
+ builder.append(module.getName()).append(" {").append(LINE_SEPARATOR);
+ builder.append(IBM_LOGIN_MODULE).append(LINE_SEPARATOR);
+ builder.append("credsType=both").append(LINE_SEPARATOR);
+ builder.append("principal=\"" + userPrincipal + "\"").append(LINE_SEPARATOR);
+ builder.append("useKeytab=\"" + keyTabPath + "\"").append(LINE_SEPARATOR);
+ builder.append("debug=true;").append(LINE_SEPARATOR);
+ builder.append("};").append(LINE_SEPARATOR);
+ }
+ else
+ {
+ builder.append(module.getName()).append(" {").append(LINE_SEPARATOR);
+ builder.append(SUN_LOGIN_MODULE).append(LINE_SEPARATOR);
+ builder.append("useKeyTab=true").append(LINE_SEPARATOR);
+ builder.append("keyTab=\"" + keyTabPath + "\"").append(LINE_SEPARATOR);
+ builder.append("principal=\"" + userPrincipal + "\"").append(LINE_SEPARATOR);
+ builder.append("useTicketCache=false").append(LINE_SEPARATOR);
+ builder.append("storeKey=true").append(LINE_SEPARATOR);
+ builder.append("debug=true;").append(LINE_SEPARATOR);
+ builder.append("};").append(LINE_SEPARATOR);
+ }
+
+ return builder.toString();
+ }
+}
+
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/RealConsumer.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/RealConsumer.java
new file mode 100644
index 00000000..29307c6f
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/handler/RealConsumer.java
@@ -0,0 +1,130 @@
+package org.dromara.kafka.consumer.handler;
+
+
+import org.apache.kafka.clients.consumer.ConsumerConfig;
+import org.apache.kafka.common.serialization.StringDeserializer;
+import org.dromara.kafka.consumer.config.KafkaPropertiesConfig;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.CommandLineRunner;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
+import org.springframework.stereotype.Component;
+import org.springframework.util.CollectionUtils;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.ThreadPoolExecutor;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-06 11:15
+ */
+@Component
+public class RealConsumer implements CommandLineRunner {
+
+ private String kafkaServers;
+
+ private String groupId;
+
+ private String topics;
+
+ private String cityCode = "3400";
+
+
+
+ @Autowired
+ KafkaPropertiesConfig kafkaPropertiesConfig;
+
+ @Autowired
+ ThreadPoolExecutor dtpExecutor2;
+
+
+ private Logger logger = LoggerFactory.getLogger(RealConsumer.class);
+
+ @Override
+ public void run(String... args) throws Exception {
+ kafkaServers = "127.0.0.1:9092";
+ topics = "topic.send.2,topic.send.3,topic.send.4,topic.send.5,topic.send.8";
+ groupId = "group_ruansi_xuancheng";
+ cityCode = "3418";
+ if(args.length > 0){
+ /*kafkaServers = args[0];
+ topics = args[1];
+ groupId = args[2];
+ cityCode = args[3];*/
+
+ }
+ ExecutorService executorService = Executors.newSingleThreadExecutor();
+ Map kafkaProp = getKafkaProp();
+
+
+ if (KafkaSecurityUtil.isSecurityModel())
+ {
+ try
+ {
+ logger.info("Securitymode start.");
+
+ //!!注意,安全认证时,需要用户手动修改为自己申请的机机账号
+ //认证方式 SASL_PLAINTEXT 或者 PLAINTEXT
+ kafkaProp.put("security.protocol","SASL_PLAINTEXT");
+ //服务名
+ kafkaProp.put("sasl.kerberos.service.name","kafka");
+ //域名
+ kafkaProp.put("kerberos.domain.name","hadoop.hadoop.com");
+ KafkaSecurityUtil.securityPrepare();
+ }
+ catch (IOException e)
+ {
+ logger.error("Security prepare failure.");
+ logger.error("The IOException occured.", e);
+ return;
+ }
+ logger.info("Security prepare success.");
+ }
+
+ KafkaConsumerRunnable runnable = new KafkaConsumerRunnable(kafkaProp,dtpExecutor2,cityCode);
+ executorService.execute(runnable);
+ }
+
+
+
+ /**
+ * 获取kafka配置
+ * @return
+ */
+ private Map getKafkaProp() {
+// Properties map = new Properties();
+ Map map = new HashMap<>();
+ map.put("bootstrap.servers",kafkaServers);
+ map.put("group.id",groupId);
+ map.put("enable.auto.commit", "true");
+ map.put("auto.commit.interval.ms", "1000");
+ map.put("session.timeout.ms", "30000");
+ map.put("key.deserializer", StringDeserializer.class);
+ map.put("value.deserializer", StringDeserializer.class);
+ map.put(ConsumerConfig.MAX_POLL_RECORDS_CONFIG,5);
+// map.put(ConsumerConfig.MAX_POLL_INTERVAL_MS_CONFIG,1000 * 5);
+// map.put("ack.mode", "manual_immediate");
+
+// //认证方式 SASL_PLAINTEXT 或者 PLAINTEXT
+// map.put("security.protocol","SASL_PLAINTEXT");
+// //服务名
+// map.put("sasl.kerberos.service.name","kafka");
+// //域名
+// map.put("kerberos.domain.name","hadoop.hadoop.com");
+ String[] split = topics.split(",");
+ List list = CollectionUtils.arrayToList(split);
+ map.put("topics", list);
+ return map;
+ }
+
+
+
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/interceptors/MyInterceptor.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/interceptors/MyInterceptor.java
new file mode 100644
index 00000000..bcae27a2
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/interceptors/MyInterceptor.java
@@ -0,0 +1,39 @@
+package org.dromara.kafka.consumer.interceptors;
+
+import lombok.RequiredArgsConstructor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.HandlerInterceptor;
+import org.springframework.web.servlet.ModelAndView;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-08 16:09
+ */
+@Configuration
+public class MyInterceptor implements HandlerInterceptor {
+
+ private Logger logger = LoggerFactory.getLogger(MyInterceptor.class);
+
+ @Override
+ public boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) throws Exception {
+ return HandlerInterceptor.super.preHandle(request, response, handler);
+ }
+
+ @Override
+ public void postHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
+ HandlerInterceptor.super.postHandle(request, response, handler, modelAndView);
+ }
+
+ @Override
+ public void afterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, Exception ex) throws Exception {
+ HandlerInterceptor.super.afterCompletion(request, response, handler, ex);
+ }
+
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/interceptors/MyInterceptor2.java b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/interceptors/MyInterceptor2.java
new file mode 100644
index 00000000..48a98e0a
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/java/org/dromara/kafka/consumer/interceptors/MyInterceptor2.java
@@ -0,0 +1,36 @@
+package org.dromara.kafka.consumer.interceptors;
+
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.HandlerInterceptor;
+import org.springframework.web.servlet.ModelAndView;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-09-08 16:09
+ */
+@Configuration
+public class MyInterceptor2 implements HandlerInterceptor {
+
+ private Logger logger = LoggerFactory.getLogger(MyInterceptor2.class);
+
+ @Override
+ public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
+ return HandlerInterceptor.super.preHandle(request, response, handler);
+ }
+
+ @Override
+ public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
+ HandlerInterceptor.super.postHandle(request, response, handler, modelAndView);
+ }
+
+ @Override
+ public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
+ HandlerInterceptor.super.afterCompletion(request, response, handler, ex);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/resources/application.yml b/stwzhj-modules/stwzhj-consumer/src/main/resources/application.yml
new file mode 100644
index 00000000..760a3a62
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/resources/application.yml
@@ -0,0 +1,32 @@
+# Tomcat
+server:
+ port: 9214
+
+# Spring
+spring:
+ application:
+ # 应用名称
+ name: stwzhj-consumer
+ profiles:
+ # 环境配置
+ active: @profiles.active@
+
+--- # nacos 配置
+spring:
+ cloud:
+ nacos:
+ # nacos 服务地址
+ server-addr: @nacos.server@
+ username: @nacos.username@
+ password: @nacos.password@
+ discovery:
+ # 注册组
+ group: @nacos.discovery.group@
+ namespace: ${spring.profiles.active}
+ config:
+ # 配置组
+ group: @nacos.config.group@
+ namespace: ${spring.profiles.active}
+ config:
+ import:
+ - optional:nacos:application-common.yml
diff --git a/stwzhj-modules/stwzhj-consumer/src/main/resources/banner.txt b/stwzhj-modules/stwzhj-consumer/src/main/resources/banner.txt
new file mode 100644
index 00000000..fbd45f53
--- /dev/null
+++ b/stwzhj-modules/stwzhj-consumer/src/main/resources/banner.txt
@@ -0,0 +1,10 @@
+Spring Boot Version: ${spring-boot.version}
+Spring Application Name: ${spring.application.name}
+ _ _
+ (_) | |
+ _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
+| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
+| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
+|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
+ __/ | __/ |
+ |___/ |___/
\ No newline at end of file
diff --git a/ruoyi-modules/ruoyi-workflow/src/main/resources/logback-plus.xml b/stwzhj-modules/stwzhj-consumer/src/main/resources/logback-plus.xml
similarity index 100%
rename from ruoyi-modules/ruoyi-workflow/src/main/resources/logback-plus.xml
rename to stwzhj-modules/stwzhj-consumer/src/main/resources/logback-plus.xml
diff --git a/stwzhj-modules/stwzhj-data2es/pom.xml b/stwzhj-modules/stwzhj-data2es/pom.xml
new file mode 100644
index 00000000..3b749d9d
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/pom.xml
@@ -0,0 +1,177 @@
+
+
+
+ org.dromara
+ stwzhj-modules
+ ${revision}
+
+ 4.0.0
+
+ stwzhj-data2es
+
+
+ stwzhj-data2es位置汇聚数据处理
+
+
+
+
+
+ org.dromara
+ stwzhj-common-nacos
+
+
+
+ org.dromara
+ stwzhj-common-sentinel
+
+
+
+
+ org.dromara
+ stwzhj-common-log
+
+
+
+ org.dromara
+ stwzhj-common-dict
+
+
+
+ org.dromara
+ stwzhj-common-doc
+
+
+
+ org.dromara
+ stwzhj-common-web
+
+
+
+ org.dromara
+ stwzhj-common-mybatis
+
+
+
+ org.dromara
+ stwzhj-common-dubbo
+
+
+
+ org.dromara
+ stwzhj-common-seata
+
+
+
+ org.dromara
+ stwzhj-common-idempotent
+
+
+
+ org.dromara
+ stwzhj-common-tenant
+
+
+
+ org.dromara
+ stwzhj-common-security
+
+
+
+ org.dromara
+ stwzhj-common-translation
+
+
+
+ org.dromara
+ stwzhj-common-sensitive
+
+
+
+ org.dromara
+ stwzhj-common-encrypt
+
+
+
+ org.dromara
+ stwzhj-common-redis
+
+
+
+
+ org.dromara
+ stwzhj-api-system
+
+
+
+ org.dromara
+ stwzhj-api-resource
+
+
+
+ org.dromara
+ stwzhj-api-data2es
+
+
+
+
+ org.elasticsearch
+ elasticsearch
+ 7.14.0
+
+
+ log4j-api
+ org.apache.logging.log4j
+
+
+
+
+ org.elasticsearch.client
+ elasticsearch-rest-client
+ 7.14.0
+
+
+ org.elasticsearch.client
+ elasticsearch-rest-high-level-client
+ 7.14.0
+
+
+ org.elasticsearch
+ elasticsearch
+
+
+ elasticsearch-rest-client
+ org.elasticsearch.client
+
+
+
+
+
+
+
+ org.springframework.kafka
+ spring-kafka
+
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot.version}
+
+
+
+ repackage
+
+
+
+
+
+
+
+
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/HjData2esApplication.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/HjData2esApplication.java
new file mode 100644
index 00000000..aa57683e
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/HjData2esApplication.java
@@ -0,0 +1,22 @@
+package org.dromara.data2es;
+
+
+import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+@EnableDubbo
+@EnableScheduling
+@SpringBootApplication
+public class HjData2esApplication {
+
+ public static void main(String[] args) {
+ SpringApplication application = new SpringApplication(HjData2esApplication.class);
+ application.setApplicationStartup(new BufferingApplicationStartup(2048));
+ application.run(args);
+ System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ ");
+ }
+
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/ElasticsearchConfig.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/ElasticsearchConfig.java
new file mode 100644
index 00000000..a41e0289
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/ElasticsearchConfig.java
@@ -0,0 +1,92 @@
+package org.dromara.data2es.config;
+
+import lombok.Data;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.http.HttpHost;
+import org.apache.http.auth.AuthScope;
+import org.apache.http.auth.UsernamePasswordCredentials;
+import org.apache.http.client.CredentialsProvider;
+import org.apache.http.impl.client.BasicCredentialsProvider;
+import org.elasticsearch.client.RestClient;
+import org.elasticsearch.client.RestClientBuilder;
+import org.elasticsearch.client.RestHighLevelClient;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * restHighLevelClient 客户端配置类
+ */
+@Slf4j
+@Data
+@Configuration
+@ConfigurationProperties(prefix = "elasticsearch")
+public class ElasticsearchConfig {
+
+ // es host ip 地址(集群)
+ private String hosts;
+ // es 用户名
+ private String userName;
+ // es 密码
+ private String password;
+ // es 请求方式
+ private String scheme;
+ // es 集群名称
+ private String clusterName;
+ // es 连接超时时间
+ private int connectTimeOut;
+ // es socket 连接超时时间
+ private int socketTimeOut;
+ // es 请求超时时间
+ private int connectionRequestTimeOut;
+ // es 最大连接数
+ private int maxConnectNum;
+ // es 每个路由的最大连接数
+ private int maxConnectNumPerRoute;
+
+ /**
+ * 如果@Bean没有指定bean的名称,那么这个bean的名称就是方法名
+ */
+ @Bean(name = "restHighLevelClient")
+ public RestHighLevelClient restHighLevelClient() {
+ RestHighLevelClient restHighLevelClient = null;
+ try {
+ // 集群,拆分地址
+ List hostLists = new ArrayList<>();
+ String[] hostList = hosts.split(",");
+ for (String addr : hostList) {
+ String host = addr.split(":")[0];
+ String port = addr.split(":")[1];
+ hostLists.add(new HttpHost(host, Integer.parseInt(port), scheme));
+ }
+ // 转换成 HttpHost 数组
+ HttpHost[] httpHost = hostLists.toArray(new HttpHost[]{});
+ // 构建连接对象
+ RestClientBuilder builder = RestClient.builder(httpHost);
+ // 设置用户名、密码
+ CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
+// credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(userName, password));
+ // 连接延时配置
+ builder.setRequestConfigCallback(requestConfigBuilder -> {
+ requestConfigBuilder.setConnectTimeout(connectTimeOut);
+ requestConfigBuilder.setSocketTimeout(socketTimeOut);
+ requestConfigBuilder.setConnectionRequestTimeout(connectionRequestTimeOut);
+ return requestConfigBuilder;
+ });
+ // 连接数配置
+ builder.setHttpClientConfigCallback(httpClientBuilder -> {
+ httpClientBuilder.setMaxConnTotal(maxConnectNum);
+ httpClientBuilder.setMaxConnPerRoute(maxConnectNumPerRoute);
+ httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);
+ return httpClientBuilder;
+ });
+ restHighLevelClient = new RestHighLevelClient(builder);
+ } catch (NumberFormatException e) {
+ log.error("ES 连接池初始化异常");
+ }
+ return restHighLevelClient;
+ }
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/KafkaConfig.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/KafkaConfig.java
new file mode 100644
index 00000000..d2e119c6
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/KafkaConfig.java
@@ -0,0 +1,190 @@
+package org.dromara.data2es.config;
+
+import org.apache.kafka.clients.admin.NewTopic;
+import org.apache.kafka.clients.producer.KafkaProducer;
+import org.dromara.data2es.producer.NewProducer;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.kafka.core.KafkaAdmin;
+import org.springframework.stereotype.Component;
+
+import java.io.IOException;
+import java.util.Properties;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-11-03 14:15
+ */
+//@Component
+public class KafkaConfig {
+
+ private Logger logger = LoggerFactory.getLogger(KafkaConfig.class);
+
+// private String kafkaServers = "140.168.2.31:21007,140.168.2.32:21007,140.168.2.33:21007";
+// private String kafkaServers = "53.208.61.105:6667,53.208.61.106:6667,53.208.61.107:6667";//六安GA网
+// private String kafkaServers = "34.72.62.93:9092";//六安视频网
+ private String kafkaServers = "127.0.0.1:9092";//本地
+// private String kafkaServers = "eurekahost1:9090,eurekahost2:9090,eurekahost3:9090";//省厅
+
+ private String groupId = "ruansiProducer";
+
+
+ private static final Logger LOG = LoggerFactory.getLogger(NewProducer.class);
+
+
+ // Broker地址列表
+ private final String bootstrapServers = "bootstrap.servers";
+
+ // 客户端ID
+ private final String clientId = "client.id";
+
+ // Key序列化类
+ private final String keySerializer = "key.serializer";
+
+ // Value序列化类
+ private final String valueSerializer = "value.serializer";
+
+ // 协议类型:当前支持配置为SASL_PLAINTEXT或者PLAINTEXT
+ private final String securityProtocol = "security.protocol";
+
+ // 服务名
+ private final String saslKerberosServiceName = "sasl.kerberos.service.name";
+
+ // 域名
+ private final String kerberosDomainName = "kerberos.domain.name";
+
+ //默认发送20条消息
+ private final int messageNumToSend = 100;
+
+ /**
+ * 用户自己申请的机机账号keytab文件名称
+ */
+ private static final String USER_KEYTAB_FILE = "请修改为真实keytab文件名";
+
+ /**
+ * 用户自己申请的机机账号名称
+ */
+ private static final String USER_PRINCIPAL = "请修改为真实用户名称";
+
+ /**
+ * 新Producer 构造函数
+ * @param
+ * @param
+ */
+
+ @Bean(name = "myKafkaProducer")
+ public KafkaProducer newProducer() {
+ Properties props = new Properties();
+
+ if (KafkaSecurityUtil.isSecurityModel())
+ {
+ try
+ {
+ logger.info("Securitymode start.");
+ //!!注意,安全认证时,需要用户手动修改为自己申请的机机账号
+ KafkaSecurityUtil.securityPrepare();
+ props.put(securityProtocol, "SASL_PLAINTEXT");
+ // 服务名
+ props.put(saslKerberosServiceName, "kafka");
+ // 域名
+ props.put(kerberosDomainName, "hadoop.hadoop.com");
+ }
+ catch (IOException e)
+ {
+ logger.error("Security prepare failure.");
+ logger.error("The IOException occured.", e);
+ return null;
+ }
+ logger.info("Security prepare success.");
+ }else{
+ props.put(securityProtocol, "PLAINTEXT");
+ }
+
+
+
+ // Broker地址列表
+ props.put(bootstrapServers,kafkaServers);
+ // 客户端ID
+// props.put(clientId, "ruansiProducer");
+ // Key序列化类
+ props.put(keySerializer,
+ "org.apache.kafka.common.serialization.IntegerSerializer");
+ // Value序列化类
+ props.put(valueSerializer,
+ "org.apache.kafka.common.serialization.StringSerializer");
+ //批量发送信息配置
+ props.put("batch.size", 16384);
+ props.put("linger.ms", 1);
+ props.put("buffer.memory", 33554432);
+ // 协议类型:当前支持配置为SASL_PLAINTEXT或者PLAINTEXT
+ //props.put(securityProtocol, "SASL_PLAINTEXT");
+// // 服务名
+// props.put(saslKerberosServiceName, "kafka");
+// // 域名
+// props.put(kerberosDomainName, "hadoop.hadoop.com");
+ //设置自定义的分区策略类,默认不传key,是粘性分区,尽量往一个分区中发消息。如果key不为null,则默认是按照key的hashcode与 partition的取余来决定哪个partition
+ //props.put("partitioner.class","com.kafka.myparitioner.CidPartitioner");
+ KafkaProducer producer = new KafkaProducer<>(props);
+// KafkaProducer producer = new KafkaProducer<>(props);
+
+ return producer;
+ }
+
+ @Bean
+ public KafkaAdmin admin(KafkaProperties properties){
+ KafkaAdmin admin = new KafkaAdmin(properties.buildAdminProperties());
+ admin.setFatalIfBrokerNotAvailable(true);
+ return admin;
+ }
+ @Bean
+ public NewTopic topic5() {
+ return new NewTopic("topic.send.5", 1, (short) 1);
+ }
+ @Bean
+ public NewTopic topic1() {
+ return new NewTopic("topic.send.1", 1, (short) 1);
+ }
+ @Bean
+ public NewTopic topic2() {
+ return new NewTopic("topic.send.2", 1, (short) 1);
+ }
+ @Bean
+ public NewTopic topic3() {
+ return new NewTopic("topic.send.3", 1, (short) 1);
+ }
+ @Bean
+ public NewTopic topic4() {
+ return new NewTopic("topic.send.4", 1, (short) 1);
+ }
+ @Bean
+ public NewTopic topic6() {
+ return new NewTopic("topic.send.6", 1, (short) 1);
+ }
+
+ @Bean
+ public NewTopic topic_zfjly() {
+ return new NewTopic("topic_gps_zfjly", 1, (short) 1);
+ }
+
+
+ @Bean
+ public NewTopic topic_gps_car() {
+ return new NewTopic("topic_gps_car", 1, (short) 1);
+ }
+
+ @Bean
+ public NewTopic topic_zfjly2() {
+ return new NewTopic("topic_gps_zfjly2", 3, (short) 1);
+ }
+
+
+ @Bean
+ public NewTopic topic_gps_car2() {
+ return new NewTopic("topic_gps_car2", 3, (short) 1);
+ }
+
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/KafkaSecurityUtil.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/KafkaSecurityUtil.java
new file mode 100644
index 00000000..3b6409a4
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/KafkaSecurityUtil.java
@@ -0,0 +1,93 @@
+package org.dromara.data2es.config;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-10-28 14:48
+ */
+public class KafkaSecurityUtil {
+
+ static Logger logger = LoggerFactory.getLogger(KafkaSecurityUtil.class);
+ /**
+ * 用户自己申请的机机账号keytab文件名称
+ */
+ private static final String USER_KEYTAB_FILE = "user.keytab";
+
+ /**
+ * 用户自己申请的机机账号名称
+ */
+ private static final String USER_PRINCIPAL = "aqdsj_ruansi@HADOOP.COM";
+
+ public static void securityPrepare() throws IOException
+ {
+ //logger.error("进入了---securityPrepare");
+ //String filePath = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator;
+ //String krbFile = filePath + "krb5.conf";
+ //ClassPathResource classPathResource = new ClassPathResource("krb5.conf");
+ //String krbFile = classPathResource.getAbsolutePath();
+ String krbFile = "/gpsstore/krb5.conf";
+// String userKeyTableFile = filePath + USER_KEYTAB_FILE;
+ //ClassPathResource classPathResource1 = new ClassPathResource(USER_KEYTAB_FILE);
+ String userKeyTableFile = "/gpsstore/user.keytab";
+
+ //windows路径下分隔符替换
+ userKeyTableFile = userKeyTableFile.replace("\\", "\\\\");
+ krbFile = krbFile.replace("\\", "\\\\");
+
+ LoginUtil.setKrb5Config(krbFile);
+ LoginUtil.setZookeeperServerPrincipal("zookeeper/hadoop.hadoop.com");
+ //logger.error("userKeyTableFile路径---{}",userKeyTableFile);
+ LoginUtil.setJaasFile(USER_PRINCIPAL, userKeyTableFile);
+ }
+
+ public static Boolean isSecurityModel()
+ {
+ Boolean isSecurity = false;
+ //String krbFilePath = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "kafkaSecurityMode";
+ //ClassPathResource classPathResource = new ClassPathResource("kafkaSecurityMode");
+ InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("kafkaSecurityMode");
+
+ /*File file = classPathResource.getFile();
+
+ if(!file.exists()){
+ return isSecurity;
+ }*/
+
+ Properties securityProps = new Properties();
+
+
+ try
+ {
+ securityProps.load(inputStream);
+ if ("yes".equalsIgnoreCase(securityProps.getProperty("kafka.client.security.mode")))
+ {
+ isSecurity = true;
+ }
+ }
+ catch (Exception e)
+ {
+ logger.info("The Exception occured : {}.", e);
+ }
+
+ return isSecurity;
+ }
+
+ /*
+ * 判断文件是否存在
+ */
+ private static boolean isFileExists(String fileName)
+ {
+ File file = new File(fileName);
+
+ return file.exists();
+ }
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/LoginUtil.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/LoginUtil.java
new file mode 100644
index 00000000..2b5f2aac
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/LoginUtil.java
@@ -0,0 +1,177 @@
+package org.dromara.data2es.config;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * description:
+ *
+ * @author chenle
+ * @date 2021-11-01 14:30
+ */
+public class LoginUtil {
+ private static final Log LOG = LogFactory.getLog(LoginUtil.class);
+ private static final String LINE_SEPARATOR = System.getProperty("line.separator");
+ private static final String ES = "es.";
+ private static final String JAAS_POSTFIX = ".jaas.conf";
+ private static final String IBM_LOGIN_MODULE = "com.ibm.security.auth.module.Krb5LoginModule required";
+ private static final String SUN_LOGIN_MODULE = "com.sun.security.auth.module.Krb5LoginModule required";
+ private static final String JAVA_SECURITY_LOGIN_CONF_KEY = "java.security.auth.login.config";
+ private static final String JAVA_SECURITY_KRB5_CONF_KEY = "java.security.krb5.conf";
+ private static final boolean IS_IBM_JDK = System.getProperty("java.vendor").contains("IBM");
+ private static final String ZOOKEEPER_AUTH_PRINCIPAL = "zookeeper.server.principal";
+ private static boolean WriteFlag = false;
+
+ public LoginUtil() {
+ }
+
+ static void setKrb5Config(String krb5ConfFile) throws IOException {
+ System.setProperty("java.security.krb5.conf", krb5ConfFile);
+ String ret = System.getProperty("java.security.krb5.conf");
+ if (ret == null) {
+ LOG.error("java.security.krb5.conf is null.");
+ throw new IOException("java.security.krb5.conf is null.");
+ } else if (!ret.equals(krb5ConfFile)) {
+ LOG.error("java.security.krb5.conf is " + ret + " is not " + krb5ConfFile + ".");
+ throw new IOException("java.security.krb5.conf is " + ret + " is not " + krb5ConfFile + ".");
+ }
+ }
+
+
+
+ static synchronized void setJaasFile(String principal, String keytabPath) throws IOException {
+ //String filePath = keytabPath.substring(0, keytabPath.lastIndexOf(File.separator));
+// String jaasPath = filePath + File.separator + "es." + System.getProperty("user.name") + ".jaas.conf";
+// jaasPath = jaasPath.replace("\\", "\\\\");
+
+ String jaasPath =
+ new File(System.getProperty("java.io.tmpdir")) + File.separator + System.getProperty("user.name")
+ + JAAS_POSTFIX;
+
+ keytabPath = keytabPath.replace("\\", "\\\\");
+ LOG.info("jaasPath is {} " + jaasPath);
+ LOG.info("keytabPath is " + keytabPath);
+ if ((new File(jaasPath)).exists()) {
+ if (!WriteFlag) {
+ deleteJaasFile(jaasPath);
+ writeJaasFile(jaasPath, principal, keytabPath);
+ System.setProperty("java.security.auth.login.config", jaasPath);
+ WriteFlag = true;
+ }
+ } else {
+ writeJaasFile(jaasPath, principal, keytabPath);
+ System.setProperty("java.security.auth.login.config", jaasPath);
+ WriteFlag = true;
+ }
+
+ }
+
+ private static void writeJaasFile(String jaasPath, String principal, String keytabPath) throws IOException {
+ try {
+ FileWriter writer = new FileWriter(new File(jaasPath));
+
+ try {
+ writer.write(getJaasConfContext(principal, keytabPath));
+ writer.flush();
+ } catch (Throwable var7) {
+ try {
+ writer.close();
+ } catch (Throwable var6) {
+ var7.addSuppressed(var6);
+ }
+
+ throw var7;
+ }
+
+ writer.close();
+ } catch (IOException var8) {
+ throw new IOException("Failed to create jaas.conf File");
+ }
+ }
+
+ private static void deleteJaasFile(String jaasPath) throws IOException {
+ File jaasFile = new File(jaasPath);
+ if (jaasFile.exists() && !jaasFile.delete()) {
+ throw new IOException("Failed to delete exists jaas file.");
+ }
+ }
+
+ private static String getJaasConfContext(String principal, String keytabPath) {
+ Module[] allModule = Module.values();
+ StringBuilder builder = new StringBuilder();
+ Module[] var4 = allModule;
+ int var5 = allModule.length;
+
+ for(int var6 = 0; var6 < var5; ++var6) {
+ Module modlue = var4[var6];
+ builder.append(getModuleContext(principal, keytabPath, modlue));
+ }
+
+ return builder.toString();
+ }
+
+ private static String getModuleContext(String userPrincipal, String keyTabPath, Module module) {
+ StringBuilder builder = new StringBuilder();
+ if (IS_IBM_JDK) {
+ builder.append(module.getName()).append(" {").append(LINE_SEPARATOR);
+ builder.append("com.ibm.security.auth.module.Krb5LoginModule required").append(LINE_SEPARATOR);
+ builder.append("credsType=both").append(LINE_SEPARATOR);
+ builder.append("principal=\"").append(userPrincipal).append("\"").append(LINE_SEPARATOR);
+ builder.append("useKeytab=\"").append(keyTabPath).append("\"").append(LINE_SEPARATOR);
+ builder.append("debug=true;").append(LINE_SEPARATOR);
+ builder.append("};").append(LINE_SEPARATOR);
+ } else {
+ builder.append(module.getName()).append(" {").append(LINE_SEPARATOR);
+ builder.append("com.sun.security.auth.module.Krb5LoginModule required").append(LINE_SEPARATOR);
+ builder.append("useKeyTab=true").append(LINE_SEPARATOR);
+ builder.append("keyTab=\"").append(keyTabPath).append("\"").append(LINE_SEPARATOR);
+ builder.append("principal=\"").append(userPrincipal).append("\"").append(LINE_SEPARATOR);
+ builder.append("useTicketCache=false").append(LINE_SEPARATOR);
+ builder.append("storeKey=true").append(LINE_SEPARATOR);
+ builder.append("debug=true;").append(LINE_SEPARATOR);
+ builder.append("};").append(LINE_SEPARATOR);
+ }
+
+ return builder.toString();
+ }
+
+
+ /**
+ * 设置zookeeper服务端principal
+ *
+ * @param zkServerPrincipal
+ * @throws IOException
+ */
+ public static void setZookeeperServerPrincipal(String zkServerPrincipal)
+ throws IOException
+ {
+ System.setProperty(ZOOKEEPER_AUTH_PRINCIPAL, zkServerPrincipal);
+ String ret = System.getProperty(ZOOKEEPER_AUTH_PRINCIPAL);
+ if (ret == null)
+ {
+ throw new IOException(ZOOKEEPER_AUTH_PRINCIPAL + " is null.");
+ }
+ if (!ret.equals(zkServerPrincipal))
+ {
+ throw new IOException(ZOOKEEPER_AUTH_PRINCIPAL + " is " + ret + " is not " + zkServerPrincipal + ".");
+ }
+ }
+
+ public static enum Module {
+ Elasticsearch("EsClient");
+
+ private String name;
+
+ private Module(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+ }
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/RedisListenerConfig.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/RedisListenerConfig.java
new file mode 100644
index 00000000..586af34e
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/config/RedisListenerConfig.java
@@ -0,0 +1,24 @@
+package org.dromara.data2es.config;
+
+import org.dromara.data2es.handler.RedisExpireListener;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.connection.RedisConnectionFactory;
+import org.springframework.data.redis.listener.KeyExpirationEventMessageListener;
+import org.springframework.data.redis.listener.RedisMessageListenerContainer;
+
+@Configuration
+public class RedisListenerConfig {
+
+ @Bean
+ RedisMessageListenerContainer listenerContainer(RedisConnectionFactory connectionFactory) {
+ RedisMessageListenerContainer listenerContainer = new RedisMessageListenerContainer();
+ listenerContainer.setConnectionFactory(connectionFactory);
+ return listenerContainer;
+ }
+
+ @Bean
+ KeyExpirationEventMessageListener redisKeyExpirationListener(RedisMessageListenerContainer listenerContainer) {
+ return new RedisExpireListener(listenerContainer);
+ }
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/controller/DataToEsController.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/controller/DataToEsController.java
new file mode 100644
index 00000000..e0f666a2
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/controller/DataToEsController.java
@@ -0,0 +1,107 @@
+package org.dromara.data2es.controller;
+
+import org.apache.commons.lang.StringUtils;
+import org.dromara.common.core.domain.R;
+import org.dromara.common.web.core.BaseController;
+import org.dromara.data2es.domain.EsGpsInfo;
+import org.dromara.data2es.domain.EsGpsInfoVO2;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.lang.reflect.InvocationTargetException;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.LinkedBlockingDeque;
+
+@RequestMapping("/gps")
+@RestController
+public class DataToEsController extends BaseController {
+
+ public static LinkedBlockingDeque linkedBlockingDeque = new LinkedBlockingDeque<>(5000);
+
+ @Autowired
+ private ServletWebServerApplicationContext webServerAppCtxt;
+
+
+ @RequestMapping("/saveGpsInfo")
+ public R saveGpsInfo(@RequestBody EsGpsInfoVO2 esGpsInfo ){
+ R apiResponse = new R<>();
+ try {
+ if(StringUtils.isBlank(esGpsInfo.getInfoSource())){
+ apiResponse.setCode(500);
+ apiResponse.setMsg("infoSource为空");
+ return apiResponse;
+ }
+ boolean offer = linkedBlockingDeque.offer(esGpsInfo);
+ apiResponse = R.ok(offer);
+ } catch (Exception e) {
+ e.printStackTrace();
+ R.fail("参数解析失败");
+ }
+ return apiResponse;
+ }
+
+
+ @RequestMapping("/saveGpsInfoBatch")
+ public R saveGpsInfoBatch(@RequestBody EsGpsInfoVO2 esGpsInfo ){
+ R apiResponse = null;
+ //add() IllegalStateException if this deque is full
+ //put() 队列满了,等待空间插入
+ //offer() 队列满了,返回false
+
+ try {
+ linkedBlockingDeque.offer(esGpsInfo);
+ //apiResponse = gpsService.saveDataBatch(esGpsInfo);
+ } catch (Exception e) {
+ e.printStackTrace();
+ R.fail("参数解析失败");
+ }
+ return apiResponse;
+ }
+
+ @RequestMapping("/getPort")
+ public R getPort(){
+ int port = webServerAppCtxt.getWebServer().getPort();
+ return R.ok(port);
+ }
+
+ @RequestMapping("/getQueueSize")
+ public R getQueueSize(){
+ int size = linkedBlockingDeque.size();
+ return R.ok(size);
+ }
+
+
+// @Scheduled(cron = "0/10 * * * * ?")
+ public void produceGps() throws InvocationTargetException, IllegalAccessException, ExecutionException, InterruptedException {
+ int a = 11000;
+ int b = 22000;
+
+
+ for (long i = 20; i < 100; i++) {
+ EsGpsInfoVO2 esGpsInfo = new EsGpsInfoVO2();
+
+ HashMap map = new HashMap<>();
+ esGpsInfo.setDeviceCode("34153800001320000101");
+ esGpsInfo.setDeviceType("05");
+ esGpsInfo.setInfoSource("3401");
+ esGpsInfo.setGpsTime(new Date());
+
+ esGpsInfo.setLat("31.1" + (a + i));
+ esGpsInfo.setLng("117.2" + (b + i));
+ esGpsInfo.setZzjgdm("340100000000");
+ esGpsInfo.setZzjgmc("合肥市公安局");
+ esGpsInfo.setCarNum("霍邱看守所01");
+ saveGpsInfo(esGpsInfo);
+ //gpsService.saveData(map);
+
+ }
+ }
+
+
+}
diff --git a/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/controller/DeviceInfoController.java b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/controller/DeviceInfoController.java
new file mode 100644
index 00000000..58ac27b8
--- /dev/null
+++ b/stwzhj-modules/stwzhj-data2es/src/main/java/org/dromara/data2es/controller/DeviceInfoController.java
@@ -0,0 +1,68 @@
+package org.dromara.data2es.controller;
+
+import cn.hutool.core.bean.BeanUtil;
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.dromara.common.core.domain.R;
+import org.dromara.common.web.core.BaseController;
+import org.dromara.data2es.exception.MyBusinessException;
+import org.dromara.system.api.RemoteDataScopeService;
+import org.dromara.system.api.RemoteDeviceService;
+import org.dromara.system.api.domain.bo.RemoteDeviceBo;
+import org.springframework.context.annotation.Bean;
+import org.springframework.util.CollectionUtils;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+
+@RequestMapping("device")
+@RestController
+public class DeviceInfoController extends BaseController {
+
+ @DubboReference
+ private RemoteDeviceService deviceService;
+
+
+
+ @RequestMapping("saveDeviceV2")
+ public R saveDeviceV2(@RequestBody Map params){
+ if(CollectionUtils.isEmpty(params)){
+ return R.fail("参数为空");
+ }
+ Object dataList = params.get("dataList");
+ if(Objects.isNull(dataList)){
+ return R.fail("参数 [dataList] 为空");
+ }
+ List