diff --git a/qms-server/Dockerfile b/qms-server/Dockerfile
index d2fdbb70..55b4344b 100644
--- a/qms-server/Dockerfile
+++ b/qms-server/Dockerfile
@@ -1,13 +1,14 @@
-FROM openjdk:17-jre-slim
+FROM 172.16.46.66:10043/base-service/report-base:x86_64-ubuntu_22-jre21-2.0.0
+RUN mkdir -p /appdata/server
+WORKDIR /appdata/server
+## 将后端项目的 Jar 文件,复制到镜像中
+COPY ./target/qms-server.jar app.jar
-# 设置应用目录
-WORKDIR /app
-
-# 复制应用文件
-COPY target/qms-server.jar /app/qms-server.jar
+## 设置 TZ 时区
+ENV TZ=Asia/Shanghai
# 暴露端口
EXPOSE 48205
-# 运行应用
-ENTRYPOINT ["java", "-jar", "/app/qms-server.jar"]
+## 启动后端项目
+ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
diff --git a/qms-server/pom.xml b/qms-server/pom.xml
index 71a48b06..95fb05e2 100644
--- a/qms-server/pom.xml
+++ b/qms-server/pom.xml
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
cn.iocoder.cloud
- yudao
+ dsc-qms
${revision}
4.0.0
@@ -27,32 +27,7 @@
cn.iocoder.cloud
- yudao-module-jy-business-server
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-jy-manage-server
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-jy-resource-server
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-jy-office-server
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-jy-report-server
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-jy-iot-server
+ yudao-module-qms-server
${revision}
diff --git a/qms-server/src/main/java/cn/iocoder/yudao/qms/controller/qms/QmsController.java b/qms-server/src/main/java/cn/iocoder/yudao/qms/controller/qms/QmsController.java
index 52334163..1d44c2ca 100644
--- a/qms-server/src/main/java/cn/iocoder/yudao/qms/controller/qms/QmsController.java
+++ b/qms-server/src/main/java/cn/iocoder/yudao/qms/controller/qms/QmsController.java
@@ -1,12 +1,13 @@
package cn.iocoder.yudao.qms.controller.qms;
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
/**
diff --git a/qms-server/src/main/resources/application-dev.yml b/qms-server/src/main/resources/application-dev.yml
index 30abeecd..499327f8 100644
--- a/qms-server/src/main/resources/application-dev.yml
+++ b/qms-server/src/main/resources/application-dev.yml
@@ -37,12 +37,12 @@ spring:
primary: master
datasource:
master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
+ url: jdbc:dm://172.16.46.247:1050?schema=ZGTY-QMS-DEV
username: SYSDBA
password: pgbsci6ddJ6Sqj@e
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
+ url: jdbc:dm://172.16.46.247:1050?schema=ZGTY-QMS-DEV
username: SYSDBA
password: pgbsci6ddJ6Sqj@e
diff --git a/qms-server/src/main/resources/application-local.yml b/qms-server/src/main/resources/application-local.yml
index 99a2921c..562fc9b5 100644
--- a/qms-server/src/main/resources/application-local.yml
+++ b/qms-server/src/main/resources/application-local.yml
@@ -39,12 +39,12 @@ spring:
primary: master
datasource:
master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
+ url: jdbc:dm://172.16.46.247:1050?schema=ZGTY-QMS-DEV
username: SYSDBA
password: pgbsci6ddJ6Sqj@e
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
+ url: jdbc:dm://172.16.46.247:1050?schema=ZGTY-QMS-DEV
username: SYSDBA
password: pgbsci6ddJ6Sqj@e
diff --git a/qms-server/src/main/resources/application.yml b/qms-server/src/main/resources/application.yml
index 1e00bcc4..a5ee3674 100644
--- a/qms-server/src/main/resources/application.yml
+++ b/qms-server/src/main/resources/application.yml
@@ -1,7 +1,6 @@
spring:
application:
name: qms-server
-
profiles:
active: ${env.name}
#统一nacos配置,使用 profile 管理
@@ -22,6 +21,7 @@ spring:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
+
config:
import:
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
@@ -104,7 +104,7 @@ xxl:
yudao:
info:
version: 1.0.0
- base-package: cn.iocoder.yudao.module
+ base-package: cn.iocoder.yudao
web:
admin-ui:
url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
diff --git a/yudao-module-jy-business/yudao-module-jy-business-api/pom.xml b/yudao-module-jy-business/yudao-module-jy-business-api/pom.xml
deleted file mode 100644
index f3e8cef7..00000000
--- a/yudao-module-jy-business/yudao-module-jy-business-api/pom.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- yudao-module-jy-business
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- yudao-module-jy-business-api
- jar
-
- ${project.artifactId}
-
- 暴露给其它模块调用
-
-
-
-
- cn.iocoder.cloud
- yudao-common
-
-
-
- org.springdoc
- springdoc-openapi-starter-webmvc-api
- provided
-
-
-
-
- org.springframework.boot
- spring-boot-starter-validation
- true
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- true
-
-
-
-
diff --git a/yudao-module-jy-business/yudao-module-jy-business-api/src/main/java/cn/iocoder/yudao/module/jybusiness/enums/ErrorCodeConstants.java b/yudao-module-jy-business/yudao-module-jy-business-api/src/main/java/cn/iocoder/yudao/module/jybusiness/enums/ErrorCodeConstants.java
deleted file mode 100644
index 11c856e7..00000000
--- a/yudao-module-jy-business/yudao-module-jy-business-api/src/main/java/cn/iocoder/yudao/module/jybusiness/enums/ErrorCodeConstants.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package cn.iocoder.yudao.module.jybusiness.enums;
-
-import cn.iocoder.yudao.framework.common.exception.ErrorCode;
-
-/**
- * jy-business 错误码枚举类
- *
- * jy-business 系统,使用 1-xxx-xxx-xxx 段
- *
- * @author ZT
- */
-public interface ErrorCodeConstants {
-
- // ========== 示例模块 1-001-000-000 ==========
- ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
-
-}
diff --git a/yudao-module-jy-business/yudao-module-jy-business-server/pom.xml b/yudao-module-jy-business/yudao-module-jy-business-server/pom.xml
deleted file mode 100644
index cabac2de..00000000
--- a/yudao-module-jy-business/yudao-module-jy-business-server/pom.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
- yudao-module-jy-business
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- jar
-
- yudao-module-jy-business-server
-
- ${project.artifactId}
-
- JyBusiness 模块。
-
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-env
-
-
-
-
- cn.iocoder.cloud
- yudao-module-system-api
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-infra-api
- ${revision}
-
-
-
- cn.iocoder.cloud
- yudao-module-jy-business-api
- ${revision}
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-data-permission
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-tenant
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-web
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-security
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mybatis
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-redis
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-rpc
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-job
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mq
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-test
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-excel
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-monitor
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-business
- ${revision}
-
-
-
-
-
- ${project.artifactId}
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
- repackage
-
-
-
-
-
-
-
-
diff --git a/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/JyBusinessServerApplication.java b/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/JyBusinessServerApplication.java
deleted file mode 100644
index e4ff5ee3..00000000
--- a/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/JyBusinessServerApplication.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package cn.iocoder.yudao.module.jybusiness;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * JyBusiness 模块的启动类
- *
- * @author ZT
- */
-@SpringBootApplication
-public class JyBusinessServerApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(JyBusinessServerApplication.class, args);
- }
-
-}
diff --git a/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/controller/admin/jybusiness/JyBusinessController.java b/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/controller/admin/jybusiness/JyBusinessController.java
deleted file mode 100644
index 31bf8f50..00000000
--- a/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/controller/admin/jybusiness/JyBusinessController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package cn.iocoder.yudao.module.jybusiness.controller.admin.jybusiness;
-
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
-
-/**
- * JyBusiness 控制器
- *
- * @author ZT
- */
-@Tag(name = "管理后台 - JyBusiness")
-@RestController
-@RequestMapping("/admin/jy-business/jy-business")
-public class JyBusinessController {
-
- @GetMapping("/hello")
- @Operation(summary = "Hello JyBusiness")
- public CommonResult hello() {
- return success("Hello, JyBusiness!");
- }
-
-}
diff --git a/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/framework/security/config/SecurityConfiguration.java b/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/framework/security/config/SecurityConfiguration.java
deleted file mode 100644
index c59f8159..00000000
--- a/yudao-module-jy-business/yudao-module-jy-business-server/src/main/java/cn/iocoder/yudao/module/jybusiness/framework/security/config/SecurityConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package cn.iocoder.yudao.module.jybusiness.framework.security.config;
-
-import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
-import cn.iocoder.yudao.module.infra.enums.ApiConstants;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer;
-
-
-/**
- * JyBusiness 模块的 Security 配置
- *
- * @author ZT
- */
-@Configuration(proxyBeanMethods = false)
-public class SecurityConfiguration {
-
- @Bean
- public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
- return new AuthorizeRequestsCustomizer() {
-
- @Override
- public void customize(AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry registry) {
- // Swagger 接口文档
- registry.requestMatchers("/v3/api-docs/**").permitAll()
- .requestMatchers("/webjars/**").permitAll()
- .requestMatchers("/swagger-ui").permitAll()
- .requestMatchers("/swagger-ui/**").permitAll();
- // Druid 监控
- registry.requestMatchers("/druid/**").permitAll();
- // Spring Boot Actuator 的安全配置
- registry.requestMatchers("/actuator").permitAll()
- .requestMatchers("/actuator/**").permitAll();
- // RPC 服务的安全配置
- registry.requestMatchers(ApiConstants.PREFIX + "/**").permitAll();
- }
-
- };
- }
-
-}
diff --git a/yudao-module-jy-iot/pom.xml b/yudao-module-jy-iot/pom.xml
deleted file mode 100644
index 929c173c..00000000
--- a/yudao-module-jy-iot/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- yudao
- cn.iocoder.cloud
- ${revision}
-
-
- yudao-module-jy-iot-api
- yudao-module-jy-iot-server
-
- 4.0.0
-
- yudao-module-jy-iot
- pom
-
- ${project.artifactId}
-
- JyIot 模块。
-
-
-
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-api/src/main/java/cn/iocoder/yudao/module/jyiot/enums/ErrorCodeConstants.java b/yudao-module-jy-iot/yudao-module-jy-iot-api/src/main/java/cn/iocoder/yudao/module/jyiot/enums/ErrorCodeConstants.java
deleted file mode 100644
index 33de6210..00000000
--- a/yudao-module-jy-iot/yudao-module-jy-iot-api/src/main/java/cn/iocoder/yudao/module/jyiot/enums/ErrorCodeConstants.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package cn.iocoder.yudao.module.jyiot.enums;
-
-import cn.iocoder.yudao.framework.common.exception.ErrorCode;
-
-/**
- * jy-iot 错误码枚举类
- *
- * jy-iot 系统,使用 1-xxx-xxx-xxx 段
- *
- * @author ZT
- */
-public interface ErrorCodeConstants {
-
- // ========== 示例模块 1-001-000-000 ==========
- ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
-
-}
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-server/pom.xml b/yudao-module-jy-iot/yudao-module-jy-iot-server/pom.xml
deleted file mode 100644
index f002282d..00000000
--- a/yudao-module-jy-iot/yudao-module-jy-iot-server/pom.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
- yudao-module-jy-iot
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- jar
-
- yudao-module-jy-iot-server
-
- ${project.artifactId}
-
- JyIot 模块。
-
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-env
-
-
-
-
- cn.iocoder.cloud
- yudao-module-system-api
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-infra-api
- ${revision}
-
-
-
- cn.iocoder.cloud
- yudao-module-jy-iot-api
- ${revision}
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-data-permission
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-tenant
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-web
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-security
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mybatis
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-redis
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-rpc
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-job
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mq
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-test
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-excel
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-monitor
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-business
- ${revision}
-
-
-
-
-
- ${project.artifactId}
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
- repackage
-
-
-
-
-
-
-
-
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/java/cn/iocoder/yudao/module/jyiot/controller/admin/jyiot/JyIotController.java b/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/java/cn/iocoder/yudao/module/jyiot/controller/admin/jyiot/JyIotController.java
deleted file mode 100644
index 44d96694..00000000
--- a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/java/cn/iocoder/yudao/module/jyiot/controller/admin/jyiot/JyIotController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package cn.iocoder.yudao.module.jyiot.controller.admin.jyiot;
-
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
-
-/**
- * JyIot 控制器
- *
- * @author ZT
- */
-@Tag(name = "管理后台 - JyIot")
-@RestController
-@RequestMapping("/admin/jy-iot/jy-iot")
-public class JyIotController {
-
- @GetMapping("/hello")
- @Operation(summary = "Hello JyIot")
- public CommonResult hello() {
- return success("Hello, JyIot!");
- }
-
-}
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application-dev.yml b/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application-dev.yml
deleted file mode 100644
index 30abeecd..00000000
--- a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application-dev.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- exclude:
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 5 # 初始连接数
- min-idle: 10 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-
-justauth:
- enabled: true
- type:
- DINGTALK: # 钉钉
- client-id: dingvrnreaje3yqvzhxg
- client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
- ignore-check-redirect-uri: true
- WECHAT_ENTERPRISE: # 企业微信
- client-id: wwd411c69a39ad2e54
- client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
- agent-id: 1000004
- ignore-check-redirect-uri: true
- # noinspection SpringBootApplicationYaml
- WECHAT_MINI_PROGRAM: # 微信小程序
- client-id: ${dollar}{wx.miniapp.appid}
- client-secret: ${dollar}{wx.miniapp.secret}
- ignore-check-redirect-uri: true
- ignore-check-state: true # 微信小程序,不会使用到 state,所以不进行校验
- WECHAT_MP: # 微信公众号
- client-id: ${dollar}{wx.mp.app-id}
- client-secret: ${dollar}{wx.mp.secret}
- ignore-check-redirect-uri: true
- cache:
- type: REDIS
- prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
- timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
-
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application-local.yml b/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application-local.yml
deleted file mode 100644
index 7aab50c1..00000000
--- a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application-local.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- # noinspection SpringBootApplicationYaml
- exclude:
- - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 1 # 初始连接数
- min-idle: 1 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- level:
- # 配置自己写的 MyBatis Mapper 打印日志
- cn.iocoder.yudao.module.jyiot.dal.mysql: debug
- org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR
-
-mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-
-
-# 芋道配置项,设置当前项目所有自定义的配置
-yudao:
- env: # 多环境的配置项
- tag: ${HOSTNAME}
- security:
- mock-enable: true
- access-log: # 访问日志的配置项
- enable: true
-
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application.yml b/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application.yml
deleted file mode 100644
index 608e36ad..00000000
--- a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/resources/application.yml
+++ /dev/null
@@ -1,123 +0,0 @@
-spring:
- application:
- name: jy-iot-server
-
- profiles:
- active: ${env.name}
- #统一nacos配置,使用 profile 管理
- cloud:
- nacos:
- server-addr: ${config.server-addr} # Nacos 服务器地址
- username: ${config.username} # Nacos 账号
- password: ${config.password} # Nacos 密码
- discovery: # 【配置中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- metadata:
- version: 1.0.0 # 服务实例的版本号,可用于灰度发布
- config: # 【注册中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- main:
- allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
- allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
-
- config:
- import:
- - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
-
- # Servlet 配置
- servlet:
- # 文件上传相关配置项
- multipart:
- max-file-size: 16MB # 单个文件大小
- max-request-size: 32MB # 设置总上传的文件大小
-
- # Jackson 配置项
- jackson:
- serialization:
- write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
- write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
- write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
- fail-on-empty-beans: false # 允许序列化无属性的 Bean
- time-zone: Asia/Shanghai
-
- # Cache 配置项
- cache:
- type: REDIS
- redis:
- time-to-live: 1h # 设置过期时间为 1 小时
-
-server:
- port: 48124
-
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-springdoc:
- api-docs:
- enabled: true # 1. 是否开启 Swagger 接文档的元数据
- path: /v3/api-docs
- swagger-ui:
- enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面
- path: /swagger-ui.html
- default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
-
-knife4j:
- enable: true # 2.2 是否开启 Swagger 文档的 Knife4j UI 界面
- setting:
- language: zh_cn
-
-# MyBatis Plus 的配置项
-mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
- global-config:
- db-config:
- id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
- # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
- # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
- # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
- logic-delete-value: 1 # 逻辑已删除值(默认为 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- banner: false # 关闭控制台的 Banner 打印
- type-aliases-package: cn.iocoder.yudao.module.*.dal.dataobject
- encryptor:
- password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
-
-mybatis-plus-join:
- banner: false # 关闭控制台的 Banner 打印
-
-# VO 转换(数据翻译)相关
-easy-trans:
- is-enable-global: false # 启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口
-
-xxl:
- job:
- executor:
- appname: ${spring.application.name} # 执行器 AppName
- logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
- accessToken: default_token # 执行器通讯TOKEN
-
-yudao:
- info:
- version: 1.0.0
- base-package: cn.iocoder.yudao.module.jyiot
- web:
- admin-ui:
- url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
- xss:
- enable: false
- exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
- - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
- swagger:
- title: 管理后台
- description: 提供管理员管理的所有功能
- version: ${yudao.info.version}
- tenant: # 多租户相关配置项
- enable: true
-
-debug: false
diff --git a/yudao-module-jy-manage/pom.xml b/yudao-module-jy-manage/pom.xml
deleted file mode 100644
index 6af9666c..00000000
--- a/yudao-module-jy-manage/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- yudao
- cn.iocoder.cloud
- ${revision}
-
-
- yudao-module-jy-manage-api
- yudao-module-jy-manage-server
-
- 4.0.0
-
- yudao-module-jy-manage
- pom
-
- ${project.artifactId}
-
- JyManage 模块。
-
-
-
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-api/pom.xml b/yudao-module-jy-manage/yudao-module-jy-manage-api/pom.xml
deleted file mode 100644
index 672a9f49..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-api/pom.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- yudao-module-jy-manage
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- yudao-module-jy-manage-api
- jar
-
- ${project.artifactId}
-
- 暴露给其它模块调用
-
-
-
-
- cn.iocoder.cloud
- yudao-common
-
-
-
- org.springdoc
- springdoc-openapi-starter-webmvc-api
- provided
-
-
-
-
- org.springframework.boot
- spring-boot-starter-validation
- true
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- true
-
-
-
-
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-api/src/main/java/cn/iocoder/yudao/module/jymanage/enums/ErrorCodeConstants.java b/yudao-module-jy-manage/yudao-module-jy-manage-api/src/main/java/cn/iocoder/yudao/module/jymanage/enums/ErrorCodeConstants.java
deleted file mode 100644
index c67e135b..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-api/src/main/java/cn/iocoder/yudao/module/jymanage/enums/ErrorCodeConstants.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package cn.iocoder.yudao.module.jymanage.enums;
-
-import cn.iocoder.yudao.framework.common.exception.ErrorCode;
-
-/**
- * jy-manage 错误码枚举类
- *
- * jy-manage 系统,使用 1-xxx-xxx-xxx 段
- *
- * @author ZT
- */
-public interface ErrorCodeConstants {
-
- // ========== 示例模块 1-001-000-000 ==========
- ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
-
-}
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/JyManageServerApplication.java b/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/JyManageServerApplication.java
deleted file mode 100644
index 326c7246..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/JyManageServerApplication.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package cn.iocoder.yudao.module.jymanage;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * JyManage 模块的启动类
- *
- * @author ZT
- */
-@SpringBootApplication
-public class JyManageServerApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(JyManageServerApplication.class, args);
- }
-
-}
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/controller/admin/jymanage/JyManageController.java b/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/controller/admin/jymanage/JyManageController.java
deleted file mode 100644
index 7e3af11f..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/controller/admin/jymanage/JyManageController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package cn.iocoder.yudao.module.jymanage.controller.admin.jymanage;
-
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
-
-/**
- * JyManage 控制器
- *
- * @author ZT
- */
-@Tag(name = "管理后台 - JyManage")
-@RestController
-@RequestMapping("/admin/jy-manage/jy-manage")
-public class JyManageController {
-
- @GetMapping("/hello")
- @Operation(summary = "Hello JyManage")
- public CommonResult hello() {
- return success("Hello, JyManage!");
- }
-
-}
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/framework/security/config/SecurityConfiguration.java b/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/framework/security/config/SecurityConfiguration.java
deleted file mode 100644
index 8d223502..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/java/cn/iocoder/yudao/module/jymanage/framework/security/config/SecurityConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package cn.iocoder.yudao.module.jymanage.framework.security.config;
-
-import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
-import cn.iocoder.yudao.module.infra.enums.ApiConstants;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer;
-
-
-/**
- * JyManage 模块的 Security 配置
- *
- * @author ZT
- */
-@Configuration(proxyBeanMethods = false)
-public class SecurityConfiguration {
-
- @Bean
- public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
- return new AuthorizeRequestsCustomizer() {
-
- @Override
- public void customize(AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry registry) {
- // Swagger 接口文档
- registry.requestMatchers("/v3/api-docs/**").permitAll()
- .requestMatchers("/webjars/**").permitAll()
- .requestMatchers("/swagger-ui").permitAll()
- .requestMatchers("/swagger-ui/**").permitAll();
- // Druid 监控
- registry.requestMatchers("/druid/**").permitAll();
- // Spring Boot Actuator 的安全配置
- registry.requestMatchers("/actuator").permitAll()
- .requestMatchers("/actuator/**").permitAll();
- // RPC 服务的安全配置
- registry.requestMatchers(ApiConstants.PREFIX + "/**").permitAll();
- }
-
- };
- }
-
-}
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application-dev.yml b/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application-dev.yml
deleted file mode 100644
index 30abeecd..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application-dev.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- exclude:
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 5 # 初始连接数
- min-idle: 10 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-
-justauth:
- enabled: true
- type:
- DINGTALK: # 钉钉
- client-id: dingvrnreaje3yqvzhxg
- client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
- ignore-check-redirect-uri: true
- WECHAT_ENTERPRISE: # 企业微信
- client-id: wwd411c69a39ad2e54
- client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
- agent-id: 1000004
- ignore-check-redirect-uri: true
- # noinspection SpringBootApplicationYaml
- WECHAT_MINI_PROGRAM: # 微信小程序
- client-id: ${dollar}{wx.miniapp.appid}
- client-secret: ${dollar}{wx.miniapp.secret}
- ignore-check-redirect-uri: true
- ignore-check-state: true # 微信小程序,不会使用到 state,所以不进行校验
- WECHAT_MP: # 微信公众号
- client-id: ${dollar}{wx.mp.app-id}
- client-secret: ${dollar}{wx.mp.secret}
- ignore-check-redirect-uri: true
- cache:
- type: REDIS
- prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
- timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
-
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application-local.yml b/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application-local.yml
deleted file mode 100644
index 6d1d3b62..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application-local.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- # noinspection SpringBootApplicationYaml
- exclude:
- - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 1 # 初始连接数
- min-idle: 1 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- level:
- # 配置自己写的 MyBatis Mapper 打印日志
- cn.iocoder.yudao.module.jymanage.dal.mysql: debug
- org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR
-
-mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-
-
-# 芋道配置项,设置当前项目所有自定义的配置
-yudao:
- env: # 多环境的配置项
- tag: ${HOSTNAME}
- security:
- mock-enable: true
- access-log: # 访问日志的配置项
- enable: true
-
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application.yml b/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application.yml
deleted file mode 100644
index e7041b65..00000000
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/src/main/resources/application.yml
+++ /dev/null
@@ -1,123 +0,0 @@
-spring:
- application:
- name: jy-manage-server
-
- profiles:
- active: ${env.name}
- #统一nacos配置,使用 profile 管理
- cloud:
- nacos:
- server-addr: ${config.server-addr} # Nacos 服务器地址
- username: ${config.username} # Nacos 账号
- password: ${config.password} # Nacos 密码
- discovery: # 【配置中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- metadata:
- version: 1.0.0 # 服务实例的版本号,可用于灰度发布
- config: # 【注册中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- main:
- allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
- allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
-
- config:
- import:
- - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
-
- # Servlet 配置
- servlet:
- # 文件上传相关配置项
- multipart:
- max-file-size: 16MB # 单个文件大小
- max-request-size: 32MB # 设置总上传的文件大小
-
- # Jackson 配置项
- jackson:
- serialization:
- write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
- write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
- write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
- fail-on-empty-beans: false # 允许序列化无属性的 Bean
- time-zone: Asia/Shanghai
-
- # Cache 配置项
- cache:
- type: REDIS
- redis:
- time-to-live: 1h # 设置过期时间为 1 小时
-
-server:
- port: 48120
-
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-springdoc:
- api-docs:
- enabled: true # 1. 是否开启 Swagger 接文档的元数据
- path: /v3/api-docs
- swagger-ui:
- enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面
- path: /swagger-ui.html
- default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
-
-knife4j:
- enable: true # 2.2 是否开启 Swagger 文档的 Knife4j UI 界面
- setting:
- language: zh_cn
-
-# MyBatis Plus 的配置项
-mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
- global-config:
- db-config:
- id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
- # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
- # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
- # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
- logic-delete-value: 1 # 逻辑已删除值(默认为 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- banner: false # 关闭控制台的 Banner 打印
- type-aliases-package: cn.iocoder.yudao.module.*.dal.dataobject
- encryptor:
- password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
-
-mybatis-plus-join:
- banner: false # 关闭控制台的 Banner 打印
-
-# VO 转换(数据翻译)相关
-easy-trans:
- is-enable-global: false # 启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口
-
-xxl:
- job:
- executor:
- appname: ${spring.application.name} # 执行器 AppName
- logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
- accessToken: default_token # 执行器通讯TOKEN
-
-yudao:
- info:
- version: 1.0.0
- base-package: cn.iocoder.yudao.module.jymanage
- web:
- admin-ui:
- url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
- xss:
- enable: false
- exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
- - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
- swagger:
- title: 管理后台
- description: 提供管理员管理的所有功能
- version: ${yudao.info.version}
- tenant: # 多租户相关配置项
- enable: true
-
-debug: false
diff --git a/yudao-module-jy-office/pom.xml b/yudao-module-jy-office/pom.xml
deleted file mode 100644
index 81d6cdaf..00000000
--- a/yudao-module-jy-office/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- yudao
- cn.iocoder.cloud
- ${revision}
-
-
- yudao-module-jy-office-api
- yudao-module-jy-office-server
-
- 4.0.0
-
- yudao-module-jy-office
- pom
-
- ${project.artifactId}
-
- JyOffice 模块。
-
-
-
diff --git a/yudao-module-jy-office/yudao-module-jy-office-api/pom.xml b/yudao-module-jy-office/yudao-module-jy-office-api/pom.xml
deleted file mode 100644
index 6387ecd7..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-api/pom.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- yudao-module-jy-office
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- yudao-module-jy-office-api
- jar
-
- ${project.artifactId}
-
- 暴露给其它模块调用
-
-
-
-
- cn.iocoder.cloud
- yudao-common
-
-
-
- org.springdoc
- springdoc-openapi-starter-webmvc-api
- provided
-
-
-
-
- org.springframework.boot
- spring-boot-starter-validation
- true
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- true
-
-
-
-
diff --git a/yudao-module-jy-office/yudao-module-jy-office-api/src/main/java/cn/iocoder/yudao/module/jyoffice/enums/ErrorCodeConstants.java b/yudao-module-jy-office/yudao-module-jy-office-api/src/main/java/cn/iocoder/yudao/module/jyoffice/enums/ErrorCodeConstants.java
deleted file mode 100644
index 71ab6ffd..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-api/src/main/java/cn/iocoder/yudao/module/jyoffice/enums/ErrorCodeConstants.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package cn.iocoder.yudao.module.jyoffice.enums;
-
-import cn.iocoder.yudao.framework.common.exception.ErrorCode;
-
-/**
- * jy-office 错误码枚举类
- *
- * jy-office 系统,使用 1-xxx-xxx-xxx 段
- *
- * @author ZT
- */
-public interface ErrorCodeConstants {
-
- // ========== 示例模块 1-001-000-000 ==========
- ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
-
-}
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/pom.xml b/yudao-module-jy-office/yudao-module-jy-office-server/pom.xml
deleted file mode 100644
index 99b7dd27..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/pom.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
- yudao-module-jy-office
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- jar
-
- yudao-module-jy-office-server
-
- ${project.artifactId}
-
- JyOffice 模块。
-
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-env
-
-
-
-
- cn.iocoder.cloud
- yudao-module-system-api
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-infra-api
- ${revision}
-
-
-
- cn.iocoder.cloud
- yudao-module-jy-office-api
- ${revision}
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-data-permission
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-tenant
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-web
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-security
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mybatis
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-redis
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-rpc
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-job
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mq
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-test
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-excel
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-monitor
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-business
- ${revision}
-
-
-
-
-
- ${project.artifactId}
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
- repackage
-
-
-
-
-
-
-
-
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/JyOfficeServerApplication.java b/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/JyOfficeServerApplication.java
deleted file mode 100644
index 60e4ad3f..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/JyOfficeServerApplication.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package cn.iocoder.yudao.module.jyoffice;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * JyOffice 模块的启动类
- *
- * @author ZT
- */
-@SpringBootApplication
-public class JyOfficeServerApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(JyOfficeServerApplication.class, args);
- }
-
-}
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/controller/admin/jyoffice/JyOfficeController.java b/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/controller/admin/jyoffice/JyOfficeController.java
deleted file mode 100644
index e5cd166c..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/controller/admin/jyoffice/JyOfficeController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package cn.iocoder.yudao.module.jyoffice.controller.admin.jyoffice;
-
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
-
-/**
- * JyOffice 控制器
- *
- * @author ZT
- */
-@Tag(name = "管理后台 - JyOffice")
-@RestController
-@RequestMapping("/admin/jy-office/jy-office")
-public class JyOfficeController {
-
- @GetMapping("/hello")
- @Operation(summary = "Hello JyOffice")
- public CommonResult hello() {
- return success("Hello, JyOffice!");
- }
-
-}
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/framework/security/config/SecurityConfiguration.java b/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/framework/security/config/SecurityConfiguration.java
deleted file mode 100644
index 5ba2aab7..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/java/cn/iocoder/yudao/module/jyoffice/framework/security/config/SecurityConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package cn.iocoder.yudao.module.jyoffice.framework.security.config;
-
-import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
-import cn.iocoder.yudao.module.infra.enums.ApiConstants;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer;
-
-
-/**
- * JyOffice 模块的 Security 配置
- *
- * @author ZT
- */
-@Configuration(proxyBeanMethods = false)
-public class SecurityConfiguration {
-
- @Bean
- public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
- return new AuthorizeRequestsCustomizer() {
-
- @Override
- public void customize(AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry registry) {
- // Swagger 接口文档
- registry.requestMatchers("/v3/api-docs/**").permitAll()
- .requestMatchers("/webjars/**").permitAll()
- .requestMatchers("/swagger-ui").permitAll()
- .requestMatchers("/swagger-ui/**").permitAll();
- // Druid 监控
- registry.requestMatchers("/druid/**").permitAll();
- // Spring Boot Actuator 的安全配置
- registry.requestMatchers("/actuator").permitAll()
- .requestMatchers("/actuator/**").permitAll();
- // RPC 服务的安全配置
- registry.requestMatchers(ApiConstants.PREFIX + "/**").permitAll();
- }
-
- };
- }
-
-}
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application-dev.yml b/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application-dev.yml
deleted file mode 100644
index 30abeecd..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application-dev.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- exclude:
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 5 # 初始连接数
- min-idle: 10 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-
-justauth:
- enabled: true
- type:
- DINGTALK: # 钉钉
- client-id: dingvrnreaje3yqvzhxg
- client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
- ignore-check-redirect-uri: true
- WECHAT_ENTERPRISE: # 企业微信
- client-id: wwd411c69a39ad2e54
- client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
- agent-id: 1000004
- ignore-check-redirect-uri: true
- # noinspection SpringBootApplicationYaml
- WECHAT_MINI_PROGRAM: # 微信小程序
- client-id: ${dollar}{wx.miniapp.appid}
- client-secret: ${dollar}{wx.miniapp.secret}
- ignore-check-redirect-uri: true
- ignore-check-state: true # 微信小程序,不会使用到 state,所以不进行校验
- WECHAT_MP: # 微信公众号
- client-id: ${dollar}{wx.mp.app-id}
- client-secret: ${dollar}{wx.mp.secret}
- ignore-check-redirect-uri: true
- cache:
- type: REDIS
- prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
- timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
-
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application-local.yml b/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application-local.yml
deleted file mode 100644
index c706b0c8..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application-local.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- # noinspection SpringBootApplicationYaml
- exclude:
- - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 1 # 初始连接数
- min-idle: 1 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- level:
- # 配置自己写的 MyBatis Mapper 打印日志
- cn.iocoder.yudao.module.jyoffice.dal.mysql: debug
- org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR
-
-mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-
-
-# 芋道配置项,设置当前项目所有自定义的配置
-yudao:
- env: # 多环境的配置项
- tag: ${HOSTNAME}
- security:
- mock-enable: true
- access-log: # 访问日志的配置项
- enable: true
-
diff --git a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application.yml b/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application.yml
deleted file mode 100644
index 9223dee6..00000000
--- a/yudao-module-jy-office/yudao-module-jy-office-server/src/main/resources/application.yml
+++ /dev/null
@@ -1,123 +0,0 @@
-spring:
- application:
- name: jy-office-server
-
- profiles:
- active: ${env.name}
- #统一nacos配置,使用 profile 管理
- cloud:
- nacos:
- server-addr: ${config.server-addr} # Nacos 服务器地址
- username: ${config.username} # Nacos 账号
- password: ${config.password} # Nacos 密码
- discovery: # 【配置中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- metadata:
- version: 1.0.0 # 服务实例的版本号,可用于灰度发布
- config: # 【注册中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- main:
- allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
- allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
-
- config:
- import:
- - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
-
- # Servlet 配置
- servlet:
- # 文件上传相关配置项
- multipart:
- max-file-size: 16MB # 单个文件大小
- max-request-size: 32MB # 设置总上传的文件大小
-
- # Jackson 配置项
- jackson:
- serialization:
- write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
- write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
- write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
- fail-on-empty-beans: false # 允许序列化无属性的 Bean
- time-zone: Asia/Shanghai
-
- # Cache 配置项
- cache:
- type: REDIS
- redis:
- time-to-live: 1h # 设置过期时间为 1 小时
-
-server:
- port: 48122
-
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-springdoc:
- api-docs:
- enabled: true # 1. 是否开启 Swagger 接文档的元数据
- path: /v3/api-docs
- swagger-ui:
- enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面
- path: /swagger-ui.html
- default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
-
-knife4j:
- enable: true # 2.2 是否开启 Swagger 文档的 Knife4j UI 界面
- setting:
- language: zh_cn
-
-# MyBatis Plus 的配置项
-mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
- global-config:
- db-config:
- id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
- # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
- # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
- # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
- logic-delete-value: 1 # 逻辑已删除值(默认为 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- banner: false # 关闭控制台的 Banner 打印
- type-aliases-package: cn.iocoder.yudao.module.*.dal.dataobject
- encryptor:
- password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
-
-mybatis-plus-join:
- banner: false # 关闭控制台的 Banner 打印
-
-# VO 转换(数据翻译)相关
-easy-trans:
- is-enable-global: false # 启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口
-
-xxl:
- job:
- executor:
- appname: ${spring.application.name} # 执行器 AppName
- logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
- accessToken: default_token # 执行器通讯TOKEN
-
-yudao:
- info:
- version: 1.0.0
- base-package: cn.iocoder.yudao.module.jyoffice
- web:
- admin-ui:
- url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
- xss:
- enable: false
- exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
- - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
- swagger:
- title: 管理后台
- description: 提供管理员管理的所有功能
- version: ${yudao.info.version}
- tenant: # 多租户相关配置项
- enable: true
-
-debug: false
diff --git a/yudao-module-jy-report/pom.xml b/yudao-module-jy-report/pom.xml
deleted file mode 100644
index b110d682..00000000
--- a/yudao-module-jy-report/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- yudao
- cn.iocoder.cloud
- ${revision}
-
-
- yudao-module-jy-report-api
- yudao-module-jy-report-server
-
- 4.0.0
-
- yudao-module-jy-report
- pom
-
- ${project.artifactId}
-
- JyReport 模块。
-
-
-
diff --git a/yudao-module-jy-report/yudao-module-jy-report-api/pom.xml b/yudao-module-jy-report/yudao-module-jy-report-api/pom.xml
deleted file mode 100644
index 52e1ffd7..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-api/pom.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- yudao-module-jy-report
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- yudao-module-jy-report-api
- jar
-
- ${project.artifactId}
-
- 暴露给其它模块调用
-
-
-
-
- cn.iocoder.cloud
- yudao-common
-
-
-
- org.springdoc
- springdoc-openapi-starter-webmvc-api
- provided
-
-
-
-
- org.springframework.boot
- spring-boot-starter-validation
- true
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- true
-
-
-
-
diff --git a/yudao-module-jy-report/yudao-module-jy-report-api/src/main/java/cn/iocoder/yudao/module/jyreport/enums/ErrorCodeConstants.java b/yudao-module-jy-report/yudao-module-jy-report-api/src/main/java/cn/iocoder/yudao/module/jyreport/enums/ErrorCodeConstants.java
deleted file mode 100644
index b38f3788..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-api/src/main/java/cn/iocoder/yudao/module/jyreport/enums/ErrorCodeConstants.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package cn.iocoder.yudao.module.jyreport.enums;
-
-import cn.iocoder.yudao.framework.common.exception.ErrorCode;
-
-/**
- * jy-report 错误码枚举类
- *
- * jy-report 系统,使用 1-xxx-xxx-xxx 段
- *
- * @author ZT
- */
-public interface ErrorCodeConstants {
-
- // ========== 示例模块 1-001-000-000 ==========
- ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
-
-}
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/pom.xml b/yudao-module-jy-report/yudao-module-jy-report-server/pom.xml
deleted file mode 100644
index a69da220..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/pom.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
- yudao-module-jy-report
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- jar
-
- yudao-module-jy-report-server
-
- ${project.artifactId}
-
- JyReport 模块。
-
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-env
-
-
-
-
- cn.iocoder.cloud
- yudao-module-system-api
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-infra-api
- ${revision}
-
-
-
- cn.iocoder.cloud
- yudao-module-jy-report-api
- ${revision}
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-data-permission
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-tenant
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-web
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-security
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mybatis
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-redis
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-rpc
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-job
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mq
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-test
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-excel
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-monitor
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-business
- ${revision}
-
-
-
-
-
- ${project.artifactId}
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
- repackage
-
-
-
-
-
-
-
-
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/JyReportServerApplication.java b/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/JyReportServerApplication.java
deleted file mode 100644
index b4f25616..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/JyReportServerApplication.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package cn.iocoder.yudao.module.jyreport;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * JyReport 模块的启动类
- *
- * @author ZT
- */
-@SpringBootApplication
-public class JyReportServerApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(JyReportServerApplication.class, args);
- }
-
-}
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/controller/admin/jyreport/JyReportController.java b/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/controller/admin/jyreport/JyReportController.java
deleted file mode 100644
index a3520eff..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/controller/admin/jyreport/JyReportController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package cn.iocoder.yudao.module.jyreport.controller.admin.jyreport;
-
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
-
-/**
- * JyReport 控制器
- *
- * @author ZT
- */
-@Tag(name = "管理后台 - JyReport")
-@RestController
-@RequestMapping("/admin/jy-report/jy-report")
-public class JyReportController {
-
- @GetMapping("/hello")
- @Operation(summary = "Hello JyReport")
- public CommonResult hello() {
- return success("Hello, JyReport!");
- }
-
-}
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/framework/security/config/SecurityConfiguration.java b/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/framework/security/config/SecurityConfiguration.java
deleted file mode 100644
index a293df71..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/java/cn/iocoder/yudao/module/jyreport/framework/security/config/SecurityConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package cn.iocoder.yudao.module.jyreport.framework.security.config;
-
-import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
-import cn.iocoder.yudao.module.infra.enums.ApiConstants;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer;
-
-
-/**
- * JyReport 模块的 Security 配置
- *
- * @author ZT
- */
-@Configuration(proxyBeanMethods = false)
-public class SecurityConfiguration {
-
- @Bean
- public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
- return new AuthorizeRequestsCustomizer() {
-
- @Override
- public void customize(AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry registry) {
- // Swagger 接口文档
- registry.requestMatchers("/v3/api-docs/**").permitAll()
- .requestMatchers("/webjars/**").permitAll()
- .requestMatchers("/swagger-ui").permitAll()
- .requestMatchers("/swagger-ui/**").permitAll();
- // Druid 监控
- registry.requestMatchers("/druid/**").permitAll();
- // Spring Boot Actuator 的安全配置
- registry.requestMatchers("/actuator").permitAll()
- .requestMatchers("/actuator/**").permitAll();
- // RPC 服务的安全配置
- registry.requestMatchers(ApiConstants.PREFIX + "/**").permitAll();
- }
-
- };
- }
-
-}
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application-dev.yml b/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application-dev.yml
deleted file mode 100644
index 30abeecd..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application-dev.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- exclude:
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 5 # 初始连接数
- min-idle: 10 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-
-justauth:
- enabled: true
- type:
- DINGTALK: # 钉钉
- client-id: dingvrnreaje3yqvzhxg
- client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
- ignore-check-redirect-uri: true
- WECHAT_ENTERPRISE: # 企业微信
- client-id: wwd411c69a39ad2e54
- client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
- agent-id: 1000004
- ignore-check-redirect-uri: true
- # noinspection SpringBootApplicationYaml
- WECHAT_MINI_PROGRAM: # 微信小程序
- client-id: ${dollar}{wx.miniapp.appid}
- client-secret: ${dollar}{wx.miniapp.secret}
- ignore-check-redirect-uri: true
- ignore-check-state: true # 微信小程序,不会使用到 state,所以不进行校验
- WECHAT_MP: # 微信公众号
- client-id: ${dollar}{wx.mp.app-id}
- client-secret: ${dollar}{wx.mp.secret}
- ignore-check-redirect-uri: true
- cache:
- type: REDIS
- prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
- timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
-
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application-local.yml b/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application-local.yml
deleted file mode 100644
index 0e77e594..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application-local.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- # noinspection SpringBootApplicationYaml
- exclude:
- - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 1 # 初始连接数
- min-idle: 1 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- level:
- # 配置自己写的 MyBatis Mapper 打印日志
- cn.iocoder.yudao.module.jyreport.dal.mysql: debug
- org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR
-
-mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-
-
-# 芋道配置项,设置当前项目所有自定义的配置
-yudao:
- env: # 多环境的配置项
- tag: ${HOSTNAME}
- security:
- mock-enable: true
- access-log: # 访问日志的配置项
- enable: true
-
diff --git a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application.yml b/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application.yml
deleted file mode 100644
index 3774471d..00000000
--- a/yudao-module-jy-report/yudao-module-jy-report-server/src/main/resources/application.yml
+++ /dev/null
@@ -1,123 +0,0 @@
-spring:
- application:
- name: jy-report-server
-
- profiles:
- active: ${env.name}
- #统一nacos配置,使用 profile 管理
- cloud:
- nacos:
- server-addr: ${config.server-addr} # Nacos 服务器地址
- username: ${config.username} # Nacos 账号
- password: ${config.password} # Nacos 密码
- discovery: # 【配置中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- metadata:
- version: 1.0.0 # 服务实例的版本号,可用于灰度发布
- config: # 【注册中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- main:
- allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
- allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
-
- config:
- import:
- - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
-
- # Servlet 配置
- servlet:
- # 文件上传相关配置项
- multipart:
- max-file-size: 16MB # 单个文件大小
- max-request-size: 32MB # 设置总上传的文件大小
-
- # Jackson 配置项
- jackson:
- serialization:
- write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
- write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
- write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
- fail-on-empty-beans: false # 允许序列化无属性的 Bean
- time-zone: Asia/Shanghai
-
- # Cache 配置项
- cache:
- type: REDIS
- redis:
- time-to-live: 1h # 设置过期时间为 1 小时
-
-server:
- port: 48123
-
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-springdoc:
- api-docs:
- enabled: true # 1. 是否开启 Swagger 接文档的元数据
- path: /v3/api-docs
- swagger-ui:
- enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面
- path: /swagger-ui.html
- default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
-
-knife4j:
- enable: true # 2.2 是否开启 Swagger 文档的 Knife4j UI 界面
- setting:
- language: zh_cn
-
-# MyBatis Plus 的配置项
-mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
- global-config:
- db-config:
- id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
- # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
- # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
- # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
- logic-delete-value: 1 # 逻辑已删除值(默认为 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- banner: false # 关闭控制台的 Banner 打印
- type-aliases-package: cn.iocoder.yudao.module.*.dal.dataobject
- encryptor:
- password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
-
-mybatis-plus-join:
- banner: false # 关闭控制台的 Banner 打印
-
-# VO 转换(数据翻译)相关
-easy-trans:
- is-enable-global: false # 启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口
-
-xxl:
- job:
- executor:
- appname: ${spring.application.name} # 执行器 AppName
- logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
- accessToken: default_token # 执行器通讯TOKEN
-
-yudao:
- info:
- version: 1.0.0
- base-package: cn.iocoder.yudao.module.jyreport
- web:
- admin-ui:
- url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
- xss:
- enable: false
- exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
- - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
- swagger:
- title: 管理后台
- description: 提供管理员管理的所有功能
- version: ${yudao.info.version}
- tenant: # 多租户相关配置项
- enable: true
-
-debug: false
diff --git a/yudao-module-jy-resource/pom.xml b/yudao-module-jy-resource/pom.xml
deleted file mode 100644
index ae0c1186..00000000
--- a/yudao-module-jy-resource/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- yudao
- cn.iocoder.cloud
- ${revision}
-
-
- yudao-module-jy-resource-api
- yudao-module-jy-resource-server
-
- 4.0.0
-
- yudao-module-jy-resource
- pom
-
- ${project.artifactId}
-
- JyResource 模块。
-
-
-
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-api/pom.xml b/yudao-module-jy-resource/yudao-module-jy-resource-api/pom.xml
deleted file mode 100644
index 631b02a2..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-api/pom.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- yudao-module-jy-resource
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- yudao-module-jy-resource-api
- jar
-
- ${project.artifactId}
-
- 暴露给其它模块调用
-
-
-
-
- cn.iocoder.cloud
- yudao-common
-
-
-
- org.springdoc
- springdoc-openapi-starter-webmvc-api
- provided
-
-
-
-
- org.springframework.boot
- spring-boot-starter-validation
- true
-
-
-
-
- org.springframework.cloud
- spring-cloud-starter-openfeign
- true
-
-
-
-
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-api/src/main/java/cn/iocoder/yudao/module/jyresource/enums/ErrorCodeConstants.java b/yudao-module-jy-resource/yudao-module-jy-resource-api/src/main/java/cn/iocoder/yudao/module/jyresource/enums/ErrorCodeConstants.java
deleted file mode 100644
index 6018684a..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-api/src/main/java/cn/iocoder/yudao/module/jyresource/enums/ErrorCodeConstants.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package cn.iocoder.yudao.module.jyresource.enums;
-
-import cn.iocoder.yudao.framework.common.exception.ErrorCode;
-
-/**
- * jy-resource 错误码枚举类
- *
- * jy-resource 系统,使用 1-xxx-xxx-xxx 段
- *
- * @author ZT
- */
-public interface ErrorCodeConstants {
-
- // ========== 示例模块 1-001-000-000 ==========
- ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
-
-}
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/pom.xml b/yudao-module-jy-resource/yudao-module-jy-resource-server/pom.xml
deleted file mode 100644
index 3846cdf1..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/pom.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
- yudao-module-jy-resource
- cn.iocoder.cloud
- ${revision}
-
- 4.0.0
- jar
-
- yudao-module-jy-resource-server
-
- ${project.artifactId}
-
- JyResource 模块。
-
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-env
-
-
-
-
- cn.iocoder.cloud
- yudao-module-system-api
- ${revision}
-
-
- cn.iocoder.cloud
- yudao-module-infra-api
- ${revision}
-
-
-
- cn.iocoder.cloud
- yudao-module-jy-resource-api
- ${revision}
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-data-permission
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-tenant
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-web
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-security
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mybatis
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-redis
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-rpc
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-discovery
-
-
-
-
- com.alibaba.cloud
- spring-cloud-starter-alibaba-nacos-config
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-job
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-mq
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-test
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-excel
-
-
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-monitor
-
-
- cn.iocoder.cloud
- yudao-spring-boot-starter-biz-business
- ${revision}
-
-
-
-
-
- ${project.artifactId}
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
- repackage
-
-
-
-
-
-
-
-
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/JyResourceServerApplication.java b/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/JyResourceServerApplication.java
deleted file mode 100644
index 1fae6310..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/JyResourceServerApplication.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package cn.iocoder.yudao.module.jyresource;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * JyResource 模块的启动类
- *
- * @author ZT
- */
-@SpringBootApplication
-public class JyResourceServerApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(JyResourceServerApplication.class, args);
- }
-
-}
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/controller/admin/jyresource/JyResourceController.java b/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/controller/admin/jyresource/JyResourceController.java
deleted file mode 100644
index 4923655f..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/controller/admin/jyresource/JyResourceController.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package cn.iocoder.yudao.module.jyresource.controller.admin.jyresource;
-
-import cn.iocoder.yudao.framework.common.pojo.CommonResult;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
-
-/**
- * JyResource 控制器
- *
- * @author ZT
- */
-@Tag(name = "管理后台 - JyResource")
-@RestController
-@RequestMapping("/admin/jy-resource/jy-resource")
-public class JyResourceController {
-
- @GetMapping("/hello")
- @Operation(summary = "Hello JyResource")
- public CommonResult hello() {
- return success("Hello, JyResource!");
- }
-
-}
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/framework/security/config/SecurityConfiguration.java b/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/framework/security/config/SecurityConfiguration.java
deleted file mode 100644
index a65b054e..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/java/cn/iocoder/yudao/module/jyresource/framework/security/config/SecurityConfiguration.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package cn.iocoder.yudao.module.jyresource.framework.security.config;
-
-import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
-import cn.iocoder.yudao.module.infra.enums.ApiConstants;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer;
-
-
-/**
- * JyResource 模块的 Security 配置
- *
- * @author ZT
- */
-@Configuration(proxyBeanMethods = false)
-public class SecurityConfiguration {
-
- @Bean
- public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
- return new AuthorizeRequestsCustomizer() {
-
- @Override
- public void customize(AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry registry) {
- // Swagger 接口文档
- registry.requestMatchers("/v3/api-docs/**").permitAll()
- .requestMatchers("/webjars/**").permitAll()
- .requestMatchers("/swagger-ui").permitAll()
- .requestMatchers("/swagger-ui/**").permitAll();
- // Druid 监控
- registry.requestMatchers("/druid/**").permitAll();
- // Spring Boot Actuator 的安全配置
- registry.requestMatchers("/actuator").permitAll()
- .requestMatchers("/actuator/**").permitAll();
- // RPC 服务的安全配置
- registry.requestMatchers(ApiConstants.PREFIX + "/**").permitAll();
- }
-
- };
- }
-
-}
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application-dev.yml b/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application-dev.yml
deleted file mode 100644
index 30abeecd..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application-dev.yml
+++ /dev/null
@@ -1,107 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- exclude:
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 5 # 初始连接数
- min-idle: 10 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-
-justauth:
- enabled: true
- type:
- DINGTALK: # 钉钉
- client-id: dingvrnreaje3yqvzhxg
- client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
- ignore-check-redirect-uri: true
- WECHAT_ENTERPRISE: # 企业微信
- client-id: wwd411c69a39ad2e54
- client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
- agent-id: 1000004
- ignore-check-redirect-uri: true
- # noinspection SpringBootApplicationYaml
- WECHAT_MINI_PROGRAM: # 微信小程序
- client-id: ${dollar}{wx.miniapp.appid}
- client-secret: ${dollar}{wx.miniapp.secret}
- ignore-check-redirect-uri: true
- ignore-check-state: true # 微信小程序,不会使用到 state,所以不进行校验
- WECHAT_MP: # 微信公众号
- client-id: ${dollar}{wx.mp.app-id}
- client-secret: ${dollar}{wx.mp.secret}
- ignore-check-redirect-uri: true
- cache:
- type: REDIS
- prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
- timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
-
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application-local.yml b/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application-local.yml
deleted file mode 100644
index 34bdf4e7..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application-local.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-spring:
- # 数据源配置项
- autoconfigure:
- # noinspection SpringBootApplicationYaml
- exclude:
- - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
- datasource:
- druid: # Druid 【监控】相关的全局配置
- web-stat-filter:
- enabled: true
- stat-view-servlet:
- enabled: true
- allow: # 设置白名单,不填则允许所有访问
- url-pattern: /druid/*
- login-username: # 控制台管理用户名和密码
- login-password:
- filter:
- stat:
- enabled: true
- log-slow-sql: true # 慢 SQL 记录
- slow-sql-millis: 100
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- dynamic: # 多数据源配置
- druid: # Druid 【连接池】相关的全局配置
- initial-size: 1 # 初始连接数
- min-idle: 1 # 最小连接池数量
- max-active: 20 # 最大连接池数量
- max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
- time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
- min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
- max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
- validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- primary: master
- datasource:
- master:
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
- slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
- lazy: true # 开启懒加载,保证启动速度
- url: jdbc:dm://172.16.46.247:1050?schema=RUOYI-VUE-PRO
- username: SYSDBA
- password: pgbsci6ddJ6Sqj@e
-
- # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
- data:
- redis:
- host: 172.16.46.63 # 地址
- port: 30379 # 端口
- database: 0 # 数据库索引
-# password: 123456 # 密码,建议生产环境开启
-
-xxl:
- job:
- admin:
- addresses: http://172.16.46.63:30082/xxl-job-admin # 调度中心部署跟地址
-
-# Lock4j 配置项
-lock4j:
- acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
- expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
-
-# Actuator 监控端点的配置项
-management:
- endpoints:
- web:
- base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
- exposure:
- include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
-
-# 日志文件配置
-logging:
- level:
- # 配置自己写的 MyBatis Mapper 打印日志
- cn.iocoder.yudao.module.jyresource.dal.mysql: debug
- org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR
-
-mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-
-
-# 芋道配置项,设置当前项目所有自定义的配置
-yudao:
- env: # 多环境的配置项
- tag: ${HOSTNAME}
- security:
- mock-enable: true
- access-log: # 访问日志的配置项
- enable: true
-
diff --git a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application.yml b/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application.yml
deleted file mode 100644
index 2b86ddd8..00000000
--- a/yudao-module-jy-resource/yudao-module-jy-resource-server/src/main/resources/application.yml
+++ /dev/null
@@ -1,123 +0,0 @@
-spring:
- application:
- name: jy-resource-server
-
- profiles:
- active: ${env.name}
- #统一nacos配置,使用 profile 管理
- cloud:
- nacos:
- server-addr: ${config.server-addr} # Nacos 服务器地址
- username: ${config.username} # Nacos 账号
- password: ${config.password} # Nacos 密码
- discovery: # 【配置中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- metadata:
- version: 1.0.0 # 服务实例的版本号,可用于灰度发布
- config: # 【注册中心】配置项
- namespace: ${config.namespace} # 命名空间。这里使用 maven Profile 资源过滤进行动态替换
- group: ${config.group} # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
- main:
- allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
- allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
-
- config:
- import:
- - optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
-
- # Servlet 配置
- servlet:
- # 文件上传相关配置项
- multipart:
- max-file-size: 16MB # 单个文件大小
- max-request-size: 32MB # 设置总上传的文件大小
-
- # Jackson 配置项
- jackson:
- serialization:
- write-dates-as-timestamps: true # 设置 LocalDateTime 的格式,使用时间戳
- write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
- write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
- fail-on-empty-beans: false # 允许序列化无属性的 Bean
- time-zone: Asia/Shanghai
-
- # Cache 配置项
- cache:
- type: REDIS
- redis:
- time-to-live: 1h # 设置过期时间为 1 小时
-
-server:
- port: 48121
-
-logging:
- file:
- name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
-
-springdoc:
- api-docs:
- enabled: true # 1. 是否开启 Swagger 接文档的元数据
- path: /v3/api-docs
- swagger-ui:
- enabled: true # 2.1 是否开启 Swagger 文档的官方 UI 界面
- path: /swagger-ui.html
- default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
-
-knife4j:
- enable: true # 2.2 是否开启 Swagger 文档的 Knife4j UI 界面
- setting:
- language: zh_cn
-
-# MyBatis Plus 的配置项
-mybatis-plus:
- configuration:
- map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
- global-config:
- db-config:
- id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
- # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
- # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
- # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
- logic-delete-value: 1 # 逻辑已删除值(默认为 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- banner: false # 关闭控制台的 Banner 打印
- type-aliases-package: cn.iocoder.yudao.module.*.dal.dataobject
- encryptor:
- password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
-
-mybatis-plus-join:
- banner: false # 关闭控制台的 Banner 打印
-
-# VO 转换(数据翻译)相关
-easy-trans:
- is-enable-global: false # 启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口
-
-xxl:
- job:
- executor:
- appname: ${spring.application.name} # 执行器 AppName
- logpath: ${user.home}/logs/xxl-job/${spring.application.name} # 执行器运行日志文件存储磁盘路径
- accessToken: default_token # 执行器通讯TOKEN
-
-yudao:
- info:
- version: 1.0.0
- base-package: cn.iocoder.yudao.module.jyresource
- web:
- admin-ui:
- url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
- xss:
- enable: false
- exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系
- - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
- - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
- swagger:
- title: 管理后台
- description: 提供管理员管理的所有功能
- version: ${yudao.info.version}
- tenant: # 多租户相关配置项
- enable: true
-
-debug: false
diff --git a/yudao-module-jy-business/pom.xml b/yudao-module-qms/pom.xml
similarity index 74%
rename from yudao-module-jy-business/pom.xml
rename to yudao-module-qms/pom.xml
index f36cddf9..93741ed3 100644
--- a/yudao-module-jy-business/pom.xml
+++ b/yudao-module-qms/pom.xml
@@ -3,17 +3,17 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- yudao
+ dsc-qms
cn.iocoder.cloud
${revision}
- yudao-module-jy-business-api
- yudao-module-jy-business-server
+ yudao-module-qms-api
+ yudao-module-qms-server
4.0.0
- yudao-module-jy-business
+ yudao-module-qms
pom
${project.artifactId}
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-api/pom.xml b/yudao-module-qms/yudao-module-qms-api/pom.xml
similarity index 93%
rename from yudao-module-jy-iot/yudao-module-jy-iot-api/pom.xml
rename to yudao-module-qms/yudao-module-qms-api/pom.xml
index c5fd8373..83f3b135 100644
--- a/yudao-module-jy-iot/yudao-module-jy-iot-api/pom.xml
+++ b/yudao-module-qms/yudao-module-qms-api/pom.xml
@@ -3,12 +3,12 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- yudao-module-jy-iot
+ yudao-module-qms
cn.iocoder.cloud
${revision}
4.0.0
- yudao-module-jy-iot-api
+ yudao-module-qms-api
jar
${project.artifactId}
diff --git a/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApi.java b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApi.java
new file mode 100644
index 00000000..cfb36a00
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApi.java
@@ -0,0 +1,24 @@
+package cn.iocoder.yudao.module.qms.api.task;
+
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.module.qms.api.task.dto.QmsBpmDTO;
+import cn.iocoder.yudao.module.qms.enums.ApiConstants;
+import com.alibaba.fastjson.JSONObject;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.validation.Valid;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+@FeignClient(name = ApiConstants.NAME, fallbackFactory = QmsApiFallback.class)
+@Tag(name = "RPC 服务 - 检验检测")
+public interface QmsApi {
+
+ String PREFIX = ApiConstants.PREFIX + "/process-instance";
+
+ @PostMapping(PREFIX + "/updateQmdDataByWf")
+ @Operation(summary = "流程节点触发业务数据改变")
+ CommonResult bpmCallback(@Valid @RequestBody QmsBpmDTO reqDTO);
+
+}
diff --git a/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApiFallback.java b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApiFallback.java
new file mode 100644
index 00000000..3448bbf1
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApiFallback.java
@@ -0,0 +1,18 @@
+package cn.iocoder.yudao.module.qms.api.task;
+
+import lombok.Setter;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.cloud.openfeign.FallbackFactory;
+import org.springframework.stereotype.Component;
+
+@Slf4j
+@Component
+public class QmsApiFallback implements FallbackFactory {
+
+ @Setter private Throwable cause;
+ @Override
+ public QmsApi create(Throwable cause) {
+ log.error("QMS微服务接口调用失败:{}", cause.getMessage());
+ return null;
+ }
+}
diff --git a/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/dto/QmsBpmDTO.java b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/dto/QmsBpmDTO.java
new file mode 100644
index 00000000..b2feb9ec
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/api/task/dto/QmsBpmDTO.java
@@ -0,0 +1,35 @@
+package cn.iocoder.yudao.module.qms.api.task.dto;
+
+import com.alibaba.fastjson.JSONObject;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotEmpty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Schema(description = "RPC 服务 - 流程回调 Request DTO")
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+public class QmsBpmDTO {
+ @Schema(description = "流程实例ID", requiredMode = Schema.RequiredMode.REQUIRED)
+ @NotEmpty(message = "流程实例ID不能为空")
+ private String processInstanceId;
+
+ @Schema(description = "业务的唯一标识")
+ private String businessKey;
+
+ @Schema(description = "传入数据", requiredMode = Schema.RequiredMode.REQUIRED)
+ private JSONObject variables;
+
+ @Schema(description = "状态")
+ private String state;
+
+ /* variables,传入业务类型
+ {
+ "beanName": "dataFormService"
+
+ }
+ * */
+
+}
diff --git a/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/ApiConstants.java b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/ApiConstants.java
new file mode 100644
index 00000000..b787f48d
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/ApiConstants.java
@@ -0,0 +1,23 @@
+package cn.iocoder.yudao.module.qms.enums;
+
+import cn.iocoder.yudao.framework.common.enums.RpcConstants;
+
+/**
+ * API 相关的枚举
+ *
+ * @author ZT
+ */
+public class ApiConstants {
+
+ /**
+ * 服务名
+ *
+ * 注意,需要保证和 spring.application.name 保持一致
+ */
+ public static final String NAME = "qms-server";
+
+ public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/qms";
+
+ public static final String VERSION = "1.0.0";
+
+}
diff --git a/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/ErrorCodeConstants.java b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/ErrorCodeConstants.java
new file mode 100644
index 00000000..72ead676
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/ErrorCodeConstants.java
@@ -0,0 +1,105 @@
+package cn.iocoder.yudao.module.qms.enums;
+
+import cn.iocoder.yudao.framework.common.exception.ErrorCode;
+
+/**
+ * ErrorCodeConstants
+ * 错误码枚举类
+ * qms 系统,使用 1_200_000_000 段
+ */
+public interface ErrorCodeConstants {
+ /**
+ * 可用号段: 1_032_000_000 ~1_033_000_000
+ * */
+
+ /*==============================公共错误 1_032_000_000 ~1_033_000_999 ===============================*/
+ Integer ERROR_CODE_MODULE_QMS_BPM = 1_032_000_010;
+ ErrorCode MISS_PARAMETER = new ErrorCode(1_032_000_000, "缺少参数");
+ ErrorCode SQL_INJECTION_EXCEPTION = new ErrorCode(1_032_000_001, "表名不合法,存在SQL注入风险,联系管理员处理");
+
+
+ /*==============================common 公共模块 1_032_001_000 ~ 1_032_049_999 ===============================*/
+ Integer ERROR_CODE_MODULE_COMMON = 1_032_001_000;
+ ErrorCode DATA_COLLECTION_NOT_EXISTS = new ErrorCode(1_032_001_000, "数据集不存在");
+ ErrorCode DATA_COLLECTION_CLASSIFY_DUPLICATE = new ErrorCode(1_032_001_000, "分类名称重复,请重新输入");
+ ErrorCode DATA_COLLECTION_CLASSIFY_PARENT_ERROR = new ErrorCode(1_032_001_000, "上级分类不能设置为当前分类及其的后代分类");
+ ErrorCode DATA_COLLECTION_FIELD_NOT_EXISTS = new ErrorCode(1_032_001_000, "数据集字段不存在");
+ ErrorCode DATA_COLLECTION_EMPTY_WF_KEY = new ErrorCode(1_032_001_000, "数据集未配置流程key!");
+ ErrorCode DATA_FORM_NOT_EXISTS = new ErrorCode(1_032_001_000, "通用数据不存在");
+ ErrorCode DATA_FORM_EMPTY_COLLECTION_ID = new ErrorCode(1_032_001_000, "未指定数据集ID");
+ ErrorCode DICTIONARY_BUSINESS_NOT_EXISTS = new ErrorCode(1_032_001_000, "业务参数字典不存在");
+ ErrorCode DICTIONARY_BUSINESS_DATA_MORE_THAN_ONE = new ErrorCode(1_032_001_000, "业务参数字典[数据]key重名,请联系管理员处理!");
+ ErrorCode DICTIONARY_BUSINESS_CATEGORY_MORE_THAN_ONE = new ErrorCode(1_032_001_000, "业务参数字典[分类]key重名,请联系管理员处理!");
+ ErrorCode DICTIONARY_BUSINESS_CLASSIFY_DUPLICATE = new ErrorCode(1_032_001_000, "分类名称重复,请重新输入");
+
+ /*==============================config 配置模块 1_032_050_000 ~ 1_032_099_999 ===============================*/
+ ErrorCode CONFIG_REPORT_TEMPLATE_NOT_EXISTS = new ErrorCode(1_032_050_000, "报表模版配置不存在");
+ ErrorCode CONFIG_ASSAY_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测方法配置不存在");
+ ErrorCode CONFIG_ASSAY_METHOD_PROJECT_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测方法分析项目配置不存在");
+ ErrorCode CONFIG_REPORT_FIELD_NOT_EXISTS = new ErrorCode(1_032_050_000, "报表字段配置不存在");
+ ErrorCode CONFIG_STANDARD_SAMPLE_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "标准样类型配置不存在");
+ ErrorCode CONFIG_STANDARD_SAMPLE_PROJECT_NOT_EXISTS = new ErrorCode(1_032_050_000, "标准样检测项目配置不存在");
+ ErrorCode CONFIG_SUB_SAMPLE_PARENT_NOT_EXISTS = new ErrorCode(1_032_050_000, "分样配置不存在");
+ ErrorCode CONFIG_SUB_SAMPLE_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "子样与检测方法配置不存在");
+ ErrorCode CONFIG_SUB_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "子样配置不存在");
+ ErrorCode CONFIG_SAMPLE_REPORT_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品报表关系不存在");
+ ErrorCode CONFIG_SAMPLE_FLOW_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品流程配置不存在");
+ ErrorCode CONFIG_REPORT_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "报表类型配置不存在");
+ ErrorCode CONFIG_PROJECT_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测项目配置不存在");
+ ErrorCode CONFIG_ENTRUST_SOURCE_NOT_EXISTS = new ErrorCode(1_032_050_000, "检验委托来源配置不存在");
+ ErrorCode CONFIG_DOCUMENT_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "报告类型配置不存在");
+ ErrorCode CONFIG_BASE_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "主样配置不存在");
+ ErrorCode CONFIG_ASSAY_METHOD_PROJECT_PARAMETER_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测方法分析项目参数配置不存在");
+ ErrorCode CONFIG_WAREHOUSE_LOCATION_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品库位信息不存在");
+ ErrorCode CONFIG_SIMPLE_FLOW_RULE_NOT_EXISTS = new ErrorCode(1_032_050_000, "LiteFlow规则配置不存在");
+ ErrorCode CONFIG_SIMPLE_FLOW_CODE_NOT_EXISTS = new ErrorCode(1_032_050_000, "LiteFlow脚本配置不存在");
+
+ ErrorCode BASE_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品大类管理不存在");
+ ErrorCode MATERIAL_ASSAY_STANDARD_DETAIL_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测标准明细不存在");
+ ErrorCode MATERIAL_ASSAY_STANDARD_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测标准不存在");
+ ErrorCode MATERIAL_ASSAY_STANDARD_METHOD_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测标准方法不存在");
+ ErrorCode CONFIG_SAMPLE_HANDOVER_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品交接配置不存在");
+
+ //dictionary
+ ErrorCode DICTIONARY_SAMPLE_FLOW_NODE_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品流程节点字典不存在");
+ ErrorCode DICTIONARY_PARAMETER_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测参数字典不存在");
+ ErrorCode DICTIONARY_PROJECT_NOT_EXISTS = new ErrorCode(1_032_050_000, "检测项目字典不存在");
+ ErrorCode DICTIONARY_SAMPLE_TYPE_NOT_EXISTS = new ErrorCode(1_032_050_000, "样品类型字典不存在");
+
+ /*=================================bus 检验业务 1_032_100_000 ~ 1_032_149_999==================================*/
+ ErrorCode BUSINESS_SAMPLE_ENTRUST_REGISTRATION_NOT_EXISTS = new ErrorCode(1_032_100_000, "委检登记业务不存在");
+ ErrorCode BUSINESS_SAMPLE_ENTRUST_DETAIL_NOT_EXISTS = new ErrorCode(1_032_100_000, "委检登记样品明细不存在");
+ ErrorCode BUSINESS_SAMPLE_ENTRUST_PROJECT_NOT_EXISTS = new ErrorCode(1_032_100_000, "委检样品检测项目业务不存在");
+
+ ErrorCode BUSINESS_BASE_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_100_000, "主样业务不存在");
+ ErrorCode BUSINESS_SUB_PARENT_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_100_000, "分样业务不存在");
+ ErrorCode BUSINESS_SUB_SAMPLE_NOT_EXISTS = new ErrorCode(1_032_100_000, "子样业务不存在");
+ ErrorCode BUSINESS_HANDOVER_RECORD_SUB_NOT_EXISTS = new ErrorCode(1_032_100_000, "子样交接记录业务不存在");
+ ErrorCode BUSINESS_SAMPLE_ASSAY_RESULT_NOT_EXISTS = new ErrorCode(1_032_100_000, "委检登记来样品位不存在");
+ ErrorCode BUSINESS_ASSAY_TASK_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "子样检测任务业务不存在");
+ ErrorCode BUSINESS_ASSAY_PROJECT_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "检测项目数据业务不存在");
+ ErrorCode BUSINESS_ASSAY_PARAMETER_DATA_NOT_EXISTS = new ErrorCode(1_032_100_000, "检测参数数据业务不存在");
+ ErrorCode BUSINESS_SUB_SAMPLE_ASSESSMENT_NOT_EXISTS = new ErrorCode(1_032_100_000, "子样判定数据业务不存在");
+ ErrorCode BUSINESS_SAMPLE_HANDOVER_NOT_EXISTS = new ErrorCode(1_032_100_000, "样品交接单业务不存在");
+ ErrorCode BUSINESS_SAMPLE_HANDOVER_DETAIL_NOT_EXISTS = new ErrorCode(1_032_100_000, "样品交接明细不存在");
+ ErrorCode BUSINESS_ASSAY_TASK_NOT_EXISTS = new ErrorCode(1_032_100_000, "检测任务分配业务不存在");
+ ErrorCode BUSINESS_ASSAY_TASK_DETAIL_NOT_EXISTS = new ErrorCode(1_032_100_000, "检测任务分配明细不存在");
+
+
+ /*=================================resource 资源管理 1_032_150_000 ~ 1_032_199_999 ==================================*/
+ ErrorCode DEVICE_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备_设备信息不存在");
+ ErrorCode DEVICE_PRODUCT_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备_设备大类不存在");
+ ErrorCode MATERIAL_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材不存在");
+ ErrorCode MATERIAL_PRODUCT_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材大类不存在");
+
+
+ /*================================= tx 1_032_200_000 ~ 1_032_249_999 ==================================*/
+
+
+
+
+ /*================================= office 办公 1_032_250_000 ~ 1_032_299_999 ==================================*/
+
+
+ /*================================= dzj 大质检 1_032_300_000 ~ 1_032_349_999 ==================================*/
+}
diff --git a/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/QmsBpmConstant.java b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/QmsBpmConstant.java
new file mode 100644
index 00000000..7b936b6f
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-api/src/main/java/cn/iocoder/yudao/module/qms/enums/QmsBpmConstant.java
@@ -0,0 +1,102 @@
+package cn.iocoder.yudao.module.qms.enums;
+
+public class QmsBpmConstant {
+
+ /**
+ * 流程回调时使用的beanName Key
+ * */
+ public static final String BPM_CALLBACK_BEAN_NAME = "bpmCallbackBean";
+
+ /**
+ * 流程回调时使用的beanName Key
+ * */
+// public static final String BPM_CALLBACK_BEAN_NAME = "bpmCallbackBean";
+
+
+ /**========================以下代码从bmp模块复制,详见 BpmnVariableConstants类 ===================**/
+ /**
+ * 流程实例的变量 - 状态
+ *
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_STATUS = "PROCESS_STATUS";
+ /**
+ * 流程实例的变量 - 理由
+ *
+ * 例如说:审批不通过的理由(目前审核通过暂时不会记录)
+ *
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_REASON = "PROCESS_REASON";
+ /**
+ * 流程实例的变量 - 发起用户选择的审批人 Map
+ *
+ * ProcessInstance#getProcessVariables()
+ * BpmTaskCandidateStrategyEnum#START_USER_SELECT
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_START_USER_SELECT_ASSIGNEES = "PROCESS_START_USER_SELECT_ASSIGNEES";
+ /**
+ * 流程实例的变量 - 审批人选择的审批人 Map
+ *
+ * ProcessInstance#getProcessVariables()
+ * BpmTaskCandidateStrategyEnum#APPROVE_USER_SELECT
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_APPROVE_USER_SELECT_ASSIGNEES = "PROCESS_APPROVE_USER_SELECT_ASSIGNEES";
+ /**
+ * 流程实例的变量 - 发起用户 ID
+ *
+ * ProcessInstance#getProcessVariables()
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_START_USER_ID = "PROCESS_START_USER_ID";
+ /**
+ * 流程实例的变量 - 用于判断流程实例变量节点是否驳回. 格式 RETURN_FLAG_{节点 id}
+ *
+ * 目的是:驳回到发起节点时,因为审批人与发起人相同,所以被自动通过。但是,此时还是希望不要自动通过
+ *
+ * ProcessInstance#getProcessVariables()
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_RETURN_FLAG = "RETURN_FLAG_%s";
+ /**
+ * 流程实例的变量 - 是否跳过表达式
+ *
+ * ProcessInstance#getProcessVariables()
+ * Flowable/Activiti之SkipExpression 完成自动审批
+ */
+ public static final String PROCESS_INSTANCE_SKIP_EXPRESSION_ENABLED = "_FLOWABLE_SKIP_EXPRESSION_ENABLED";
+
+ /**
+ * 流程实例的变量 - 用于判断流程是否需要跳过发起人节点
+ *
+ * ProcessInstance#getProcessVariables()
+ */
+ public static final String PROCESS_INSTANCE_VARIABLE_SKIP_START_USER_NODE = "PROCESS_SKIP_START_USER_NODE";
+
+ /**
+ * 流程实例的变量 - 流程开始时间
+ *
+ * 【非存储变量】用于部分需要 format 的场景,例如说:流程实例的自定义标题
+ */
+ public static final String PROCESS_START_TIME = "PROCESS_START_TIME";
+ /**
+ * 流程实例的变量 - 流程定义名称
+ */
+ public static final String PROCESS_DEFINITION_NAME = "PROCESS_DEFINITION_NAME";
+
+ /**
+ * 任务的变量 - 状态
+ *
+ * org.flowable.task.api.Task#getTaskLocalVariables()
+ */
+ public static final String TASK_VARIABLE_STATUS = "TASK_STATUS";
+ /**
+ * 任务的变量 - 理由
+ *
+ * 例如说:审批通过、不通过的理由
+ *
+ * org.flowable.task.api.Task#getTaskLocalVariables()
+ */
+ public static final String TASK_VARIABLE_REASON = "TASK_REASON";
+ /**
+ * 任务变量 - 签名图片 URL
+ */
+ public static final String TASK_SIGN_PIC_URL = "TASK_SIGN_PIC_URL";
+
+}
diff --git a/yudao-module-jy-manage/yudao-module-jy-manage-server/pom.xml b/yudao-module-qms/yudao-module-qms-server/pom.xml
similarity index 54%
rename from yudao-module-jy-manage/yudao-module-jy-manage-server/pom.xml
rename to yudao-module-qms/yudao-module-qms-server/pom.xml
index b9dbd1fd..12ef488e 100644
--- a/yudao-module-jy-manage/yudao-module-jy-manage-server/pom.xml
+++ b/yudao-module-qms/yudao-module-qms-server/pom.xml
@@ -3,20 +3,22 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- yudao-module-jy-manage
+ yudao-module-qms
cn.iocoder.cloud
${revision}
4.0.0
jar
- yudao-module-jy-manage-server
+ yudao-module-qms-server
${project.artifactId}
- JyManage 模块。
+ QMS模块。
-
+
+ 3.8.3.v20230112-RELEASE
+
@@ -38,7 +40,7 @@
cn.iocoder.cloud
- yudao-module-jy-manage-api
+ yudao-module-qms-api
${revision}
@@ -116,6 +118,60 @@
yudao-spring-boot-starter-excel
+
+ org.apache.commons
+ commons-text
+ 1.14.0
+
+
+
+
+ cn.rubylong
+ gridreport
+ 20240506.RELEASE
+
+
+
+
+ com.yomahub
+ liteflow-spring-boot-starter
+ 2.15.0
+
+
+ com.yomahub
+ liteflow-script-javax-pro
+ 2.15.0
+
+
+ com.yomahub
+ liteflow-script-groovy
+ 2.15.0
+
+
+ com.yomahub
+ liteflow-script-qlexpress
+ 2.15.0
+
+
+ com.yomahub
+ liteflow-script-graaljs
+ 2.15.0
+
+
+
+
+ org.apache.pdfbox
+ pdfbox
+ 2.0.33
+
+
+
+
+ e-iceblue
+ spire.pdf.free
+ 9.13.0
+
+
cn.iocoder.cloud
@@ -126,26 +182,45 @@
yudao-spring-boot-starter-biz-business
${revision}
+
+ cn.iocoder.cloud
+ yudao-module-bpm-api
+ ${revision}
+
+
+
+
+
+
+
+
+
+
+ zzjc-release
+ Release Repository
+ https://mvn.will-way.cn/repository/zzjc-releases/
+
+
+
${project.artifactId}
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
- ${spring.boot.version}
-
-
-
- repackage
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/java/cn/iocoder/yudao/module/jyiot/JyIotServerApplication.java b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/QmsServerApplication.java
similarity index 52%
rename from yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/java/cn/iocoder/yudao/module/jyiot/JyIotServerApplication.java
rename to yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/QmsServerApplication.java
index 1be35810..4c6280fc 100644
--- a/yudao-module-jy-iot/yudao-module-jy-iot-server/src/main/java/cn/iocoder/yudao/module/jyiot/JyIotServerApplication.java
+++ b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/QmsServerApplication.java
@@ -1,18 +1,16 @@
-package cn.iocoder.yudao.module.jyiot;
+package cn.iocoder.yudao.module.qms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
- * JyIot 模块的启动类
- *
- * @author ZT
+ * 项目的启动类
*/
@SpringBootApplication
-public class JyIotServerApplication {
+public class QmsServerApplication {
public static void main(String[] args) {
- SpringApplication.run(JyIotServerApplication.class, args);
+ SpringApplication.run(QmsServerApplication.class, args);
}
}
diff --git a/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/api/task/BMPCallbackInterface.java b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/api/task/BMPCallbackInterface.java
new file mode 100644
index 00000000..2418c8ff
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/api/task/BMPCallbackInterface.java
@@ -0,0 +1,12 @@
+package cn.iocoder.yudao.module.qms.api.task;
+
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.module.qms.api.task.dto.QmsBpmDTO;
+import com.alibaba.fastjson.JSONObject;
+
+public interface BMPCallbackInterface {
+
+ CommonResult callback(QmsBpmDTO reqDTO);
+
+
+}
diff --git a/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApiImpl.java b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApiImpl.java
new file mode 100644
index 00000000..f53aaf34
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/api/task/QmsApiImpl.java
@@ -0,0 +1,24 @@
+package cn.iocoder.yudao.module.qms.api.task;
+
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.util.spring.SpringUtils;
+import cn.iocoder.yudao.module.qms.api.task.dto.QmsBpmDTO;
+import com.alibaba.fastjson.JSONObject;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RestController;
+
+import static cn.iocoder.yudao.module.qms.enums.QmsBpmConstant.BPM_CALLBACK_BEAN_NAME;
+
+
+@RestController
+@Validated
+public class QmsApiImpl implements QmsApi{
+
+ @Override
+ public CommonResult bpmCallback(QmsBpmDTO reqDTO) {
+ JSONObject variables = reqDTO.getVariables();
+ String beanName = variables.getString(BPM_CALLBACK_BEAN_NAME);
+ BMPCallbackInterface bean = SpringUtils.getBean(beanName);
+ return bean.callback(reqDTO);
+ }
+}
diff --git a/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayParameterDataController.java b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayParameterDataController.java
new file mode 100644
index 00000000..1bc50fa4
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayParameterDataController.java
@@ -0,0 +1,106 @@
+package cn.iocoder.yudao.module.qms.business.bus.controller.admin;
+
+import org.springframework.web.bind.annotation.*;
+import jakarta.annotation.Resource;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.security.access.prepost.PreAuthorize;
+import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Operation;
+
+import jakarta.validation.constraints.*;
+import jakarta.validation.*;
+import jakarta.servlet.http.*;
+import java.util.*;
+import java.io.IOException;
+
+import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.qms.business.bus.controller.vo.*;
+import cn.iocoder.yudao.module.qms.business.bus.dal.dataobject.BusinessAssayParameterDataDO;
+import cn.iocoder.yudao.module.qms.business.bus.service.BusinessAssayParameterDataService;
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
+
+@Tag(name = "管理后台 - 检测参数数据业务")
+@RestController
+@RequestMapping("/qms/business-assay-parameter-data")
+@Validated
+public class BusinessAssayParameterDataController implements BusinessControllerMarker {
+
+
+ @Resource
+ private BusinessAssayParameterDataService businessAssayParameterDataService;
+
+ @PostMapping("/create")
+ @Operation(summary = "创建检测参数数据业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:create')")
+ public CommonResult createBusinessAssayParameterData(@Valid @RequestBody BusinessAssayParameterDataSaveReqVO createReqVO) {
+ return success(businessAssayParameterDataService.createBusinessAssayParameterData(createReqVO));
+ }
+
+ @PutMapping("/update")
+ @Operation(summary = "更新检测参数数据业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:update')")
+ public CommonResult updateBusinessAssayParameterData(@Valid @RequestBody BusinessAssayParameterDataSaveReqVO updateReqVO) {
+ businessAssayParameterDataService.updateBusinessAssayParameterData(updateReqVO);
+ return success(true);
+ }
+
+ @DeleteMapping("/delete")
+ @Operation(summary = "删除检测参数数据业务")
+ @Parameter(name = "id", description = "编号", required = true)
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:delete')")
+ public CommonResult deleteBusinessAssayParameterData(@RequestParam("id") Long id) {
+ businessAssayParameterDataService.deleteBusinessAssayParameterData(id);
+ return success(true);
+ }
+
+ @DeleteMapping("/delete-list")
+ @Parameter(name = "ids", description = "编号", required = true)
+ @Operation(summary = "批量删除检测参数数据业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:delete')")
+ public CommonResult deleteBusinessAssayParameterDataList(@RequestBody BatchDeleteReqVO req) {
+ businessAssayParameterDataService.deleteBusinessAssayParameterDataListByIds(req.getIds());
+ return success(true);
+ }
+
+ @GetMapping("/get")
+ @Operation(summary = "获得检测参数数据业务")
+ @Parameter(name = "id", description = "编号", required = true, example = "1024")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:query')")
+ public CommonResult getBusinessAssayParameterData(@RequestParam("id") Long id) {
+ BusinessAssayParameterDataDO businessAssayParameterData = businessAssayParameterDataService.getBusinessAssayParameterData(id);
+ return success(BeanUtils.toBean(businessAssayParameterData, BusinessAssayParameterDataRespVO.class));
+ }
+
+ @GetMapping("/page")
+ @Operation(summary = "获得检测参数数据业务分页")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:query')")
+ public CommonResult> getBusinessAssayParameterDataPage(@Valid BusinessAssayParameterDataPageReqVO pageReqVO) {
+ PageResult pageResult = businessAssayParameterDataService.getBusinessAssayParameterDataPage(pageReqVO);
+ return success(BeanUtils.toBean(pageResult, BusinessAssayParameterDataRespVO.class));
+ }
+
+ @GetMapping("/export-excel")
+ @Operation(summary = "导出检测参数数据业务 Excel")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-parameter-data:export')")
+ @ApiAccessLog(operateType = EXPORT)
+ public void exportBusinessAssayParameterDataExcel(@Valid BusinessAssayParameterDataPageReqVO pageReqVO,
+ HttpServletResponse response) throws IOException {
+ pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
+ List list = businessAssayParameterDataService.getBusinessAssayParameterDataPage(pageReqVO).getList();
+ // 导出 Excel
+ ExcelUtils.write(response, "检测参数数据业务.xls", "数据", BusinessAssayParameterDataRespVO.class,
+ BeanUtils.toBean(list, BusinessAssayParameterDataRespVO.class));
+ }
+
+}
\ No newline at end of file
diff --git a/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayProjectDataController.java b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayProjectDataController.java
new file mode 100644
index 00000000..4a75bc9c
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayProjectDataController.java
@@ -0,0 +1,107 @@
+package cn.iocoder.yudao.module.qms.business.bus.controller.admin;
+
+import org.springframework.web.bind.annotation.*;
+import jakarta.annotation.Resource;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.security.access.prepost.PreAuthorize;
+import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Operation;
+
+import jakarta.validation.constraints.*;
+import jakarta.validation.*;
+import jakarta.servlet.http.*;
+import java.util.*;
+import java.io.IOException;
+
+import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.qms.business.bus.controller.vo.*;
+import cn.iocoder.yudao.module.qms.business.bus.dal.dataobject.BusinessAssayProjectDataDO;
+import cn.iocoder.yudao.module.qms.business.bus.service.BusinessAssayProjectDataService;
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
+
+
+@Tag(name = "管理后台 - 检测项目数据业务")
+@RestController
+@RequestMapping("/qms/business-assay-project-data")
+@Validated
+public class BusinessAssayProjectDataController implements BusinessControllerMarker {
+
+
+ @Resource
+ private BusinessAssayProjectDataService businessAssayProjectDataService;
+
+ @PostMapping("/create")
+ @Operation(summary = "创建检测项目数据业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:create')")
+ public CommonResult createBusinessAssayProjectData(@Valid @RequestBody BusinessAssayProjectDataSaveReqVO createReqVO) {
+ return success(businessAssayProjectDataService.createBusinessAssayProjectData(createReqVO));
+ }
+
+ @PutMapping("/update")
+ @Operation(summary = "更新检测项目数据业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:update')")
+ public CommonResult updateBusinessAssayProjectData(@Valid @RequestBody BusinessAssayProjectDataSaveReqVO updateReqVO) {
+ businessAssayProjectDataService.updateBusinessAssayProjectData(updateReqVO);
+ return success(true);
+ }
+
+ @DeleteMapping("/delete")
+ @Operation(summary = "删除检测项目数据业务")
+ @Parameter(name = "id", description = "编号", required = true)
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:delete')")
+ public CommonResult deleteBusinessAssayProjectData(@RequestParam("id") Long id) {
+ businessAssayProjectDataService.deleteBusinessAssayProjectData(id);
+ return success(true);
+ }
+
+ @DeleteMapping("/delete-list")
+ @Parameter(name = "ids", description = "编号", required = true)
+ @Operation(summary = "批量删除检测项目数据业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:delete')")
+ public CommonResult deleteBusinessAssayProjectDataList(@RequestBody BatchDeleteReqVO req) {
+ businessAssayProjectDataService.deleteBusinessAssayProjectDataListByIds(req.getIds());
+ return success(true);
+ }
+
+ @GetMapping("/get")
+ @Operation(summary = "获得检测项目数据业务")
+ @Parameter(name = "id", description = "编号", required = true, example = "1024")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:query')")
+ public CommonResult getBusinessAssayProjectData(@RequestParam("id") Long id) {
+ BusinessAssayProjectDataDO businessAssayProjectData = businessAssayProjectDataService.getBusinessAssayProjectData(id);
+ return success(BeanUtils.toBean(businessAssayProjectData, BusinessAssayProjectDataRespVO.class));
+ }
+
+ @GetMapping("/page")
+ @Operation(summary = "获得检测项目数据业务分页")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:query')")
+ public CommonResult> getBusinessAssayProjectDataPage(@Valid BusinessAssayProjectDataPageReqVO pageReqVO) {
+ PageResult pageResult = businessAssayProjectDataService.getBusinessAssayProjectDataPage(pageReqVO);
+ return success(BeanUtils.toBean(pageResult, BusinessAssayProjectDataRespVO.class));
+ }
+
+ @GetMapping("/export-excel")
+ @Operation(summary = "导出检测项目数据业务 Excel")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-project-data:export')")
+ @ApiAccessLog(operateType = EXPORT)
+ public void exportBusinessAssayProjectDataExcel(@Valid BusinessAssayProjectDataPageReqVO pageReqVO,
+ HttpServletResponse response) throws IOException {
+ pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
+ List list = businessAssayProjectDataService.getBusinessAssayProjectDataPage(pageReqVO).getList();
+ // 导出 Excel
+ ExcelUtils.write(response, "检测项目数据业务.xls", "数据", BusinessAssayProjectDataRespVO.class,
+ BeanUtils.toBean(list, BusinessAssayProjectDataRespVO.class));
+ }
+
+}
\ No newline at end of file
diff --git a/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayTaskDataController.java b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayTaskDataController.java
new file mode 100644
index 00000000..d54f309e
--- /dev/null
+++ b/yudao-module-qms/yudao-module-qms-server/src/main/java/cn/iocoder/yudao/module/qms/business/bus/controller/admin/BusinessAssayTaskDataController.java
@@ -0,0 +1,122 @@
+package cn.iocoder.yudao.module.qms.business.bus.controller.admin;
+
+import org.springframework.web.bind.annotation.*;
+import jakarta.annotation.Resource;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.security.access.prepost.PreAuthorize;
+import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Operation;
+
+import jakarta.validation.constraints.*;
+import jakarta.validation.*;
+import jakarta.servlet.http.*;
+import java.util.*;
+import java.io.IOException;
+
+import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.qms.business.bus.controller.vo.*;
+import cn.iocoder.yudao.module.qms.business.bus.dal.dataobject.BusinessAssayTaskDataDO;
+import cn.iocoder.yudao.module.qms.business.bus.service.BusinessAssayTaskDataService;
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
+
+@Tag(name = "管理后台 - 子样检测任务业务")
+@RestController
+@RequestMapping("/qms/business-assay-task-data")
+@Validated
+public class BusinessAssayTaskDataController implements BusinessControllerMarker {
+
+
+ @Resource
+ private BusinessAssayTaskDataService businessAssayTaskDataService;
+
+ @PostMapping("/create")
+ @Operation(summary = "创建子样检测任务业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-task-data:create')")
+ public CommonResult createBusinessAssayTaskData(@Valid @RequestBody BusinessAssayTaskDataSaveReqVO createReqVO) {
+ return success(businessAssayTaskDataService.createBusinessAssayTaskData(createReqVO));
+ }
+
+ @PutMapping("/update")
+ @Operation(summary = "更新子样检测任务业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-task-data:update')")
+ public CommonResult updateBusinessAssayTaskData(@Valid @RequestBody BusinessAssayTaskDataSaveReqVO updateReqVO) {
+ businessAssayTaskDataService.updateBusinessAssayTaskData(updateReqVO);
+ return success(true);
+ }
+
+ @DeleteMapping("/delete")
+ @Operation(summary = "删除子样检测任务业务")
+ @Parameter(name = "id", description = "编号", required = true)
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-task-data:delete')")
+ public CommonResult deleteBusinessAssayTaskData(@RequestParam("id") Long id) {
+ businessAssayTaskDataService.deleteBusinessAssayTaskData(id);
+ return success(true);
+ }
+
+ @DeleteMapping("/delete-list")
+ @Parameter(name = "ids", description = "编号", required = true)
+ @Operation(summary = "批量删除子样检测任务业务")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-task-data:delete')")
+ public CommonResult deleteBusinessAssayTaskDataList(@RequestBody BatchDeleteReqVO req) {
+ businessAssayTaskDataService.deleteBusinessAssayTaskDataListByIds(req.getIds());
+ return success(true);
+ }
+
+ @GetMapping("/get")
+ @Operation(summary = "获得子样检测任务业务")
+ @Parameter(name = "id", description = "编号", required = true, example = "1024")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-task-data:query')")
+ public CommonResult getBusinessAssayTaskData(@RequestParam("id") Long id) {
+ BusinessAssayTaskDataDO businessAssayTaskData = businessAssayTaskDataService.getBusinessAssayTaskData(id);
+ return success(BeanUtils.toBean(businessAssayTaskData, BusinessAssayTaskDataRespVO.class));
+ }
+
+ @GetMapping("/getUnAssayTaskGroupList")
+ @Operation(summary = "获得未指派的子样检测任务业务分组列表")
+ @PreAuthorize("@ss.hasPermission('qms:business-assay-task-data:query')")
+ public CommonResult> getUnAssayTaskGroupList() {
+ List