Compare commits

...

84 Commits

Author SHA1 Message Date
FCL
0072234893 Merge branch 'refs/heads/zt-test' into test
# Conflicts:
#	zt-module-infra/zt-module-infra-server/src/main/resources/application.yaml
2026-01-04 15:19:35 +08:00
ranke
0ad14fbe73 Merge branch 'test' into test-dsc
* test:
  新增根据流程实例ID获取抄送记录的接口,用于待办详情中展示
  [+]增加部门推动消息功能
  新增忽略公司以及部门数据权限的注解
2025-12-31 17:07:09 +08:00
ranke
7bd44ffca9 新增根据流程实例ID获取抄送记录的接口,用于待办详情中展示 2025-12-31 17:06:51 +08:00
maimaishu
3ad65780a6 Merge branch 'test' of http://172.16.46.63:30001/gitlab/base-version/ztcloud into test 2025-12-31 16:57:00 +08:00
maimaishu
3573217507 [+]增加部门推动消息功能 2025-12-31 16:55:20 +08:00
chenbowen
6ac7511019 新增忽略公司以及部门数据权限的注解 2025-12-30 18:38:07 +08:00
chenbowen
3970f6d43e Merge branch 'refs/heads/dev' into test 2025-12-30 18:29:32 +08:00
chenbowen
5d547acfea Merge remote-tracking branch 'refs/remotes/base-version/test' into dev 2025-12-30 18:28:57 +08:00
chenbowen
4579259973 1. 恢复发布私服库的指向 2025-12-30 18:27:47 +08:00
ranke
5f90e7e417 Merge branch 'test' into test-dsc
* test:
  新增根据流程管控按钮是否可用配置功能. http://172.16.46.63:31560/index.php?m=task&f=view&taskID=551
  1. 补全基准的菜单 sql 语句
2025-12-30 18:18:18 +08:00
ranke
b81e8c6df2 新增根据流程管控按钮是否可用配置功能. http://172.16.46.63:31560/index.php?m=task&f=view&taskID=551 2025-12-30 18:07:58 +08:00
chenbowen
179c22e409 1. 固定测试环境网关地址,避免被人覆盖 2025-12-30 10:32:30 +08:00
chenbowen
fac16d5e08 Merge branch 'dev' into test 2025-12-29 17:56:52 +08:00
hewencai
812e9727ae fix:添加seata达梦数据库兼容补丁 2025-12-29 16:16:06 +08:00
chenbowen
580d1d9047 1. 补全基准的菜单 sql 语句 2025-12-29 11:13:29 +08:00
wencai he
6bdcf8f371 Merge branch 'dev' into 'test'
Dev

See merge request jygk/dsc!17
2025-12-29 01:54:51 +00:00
hewencai
8e8acd6aaf fix:修复seata2.4版本下达梦数据库回滚异常问题,增加调试日志 2025-12-29 09:54:36 +08:00
hewencai
bca34ea437 Merge remote-tracking branch 'origin/dev' into dev 2025-12-29 09:53:18 +08:00
hewencai
8b469710ce fix:修复seata2.4版本下达梦数据库回滚异常问题,增加调试日志 2025-12-29 09:53:00 +08:00
chenbowen
c88fdad7ac Revert "1. 临时切换集群配合测试"
This reverts commit 26e5952252.
2025-12-27 13:12:22 +08:00
chenbowen
4d4912db5e Revert "1. 临时切换集群配合测试"
This reverts commit 3c3ac23008.
2025-12-27 13:12:22 +08:00
chenbowen
3c3ac23008 1. 临时切换集群配合测试 2025-12-27 12:48:56 +08:00
chenbowen
26e5952252 1. 临时切换集群配合测试 2025-12-27 12:26:27 +08:00
chenbowen
839e979904 Merge branch 'dev' into test 2025-12-25 18:19:58 +08:00
chenbowen
91b54cc9d1 1. 新增 seata 兼容模块打包 2025-12-25 18:19:46 +08:00
wencai he
c9f7495db1 Merge branch 'dev' into 'test'
Dev

See merge request jygk/dsc!16
2025-12-25 09:46:07 +00:00
hewencai
1d4380adc1 Merge remote-tracking branch 'origin/dev' into dev 2025-12-25 17:44:54 +08:00
hewencai
666008e3c6 fix:修复seata2.4版本下达梦数据库回滚异常问题 2025-12-25 17:44:34 +08:00
chenbowen
1316d09626 Merge branch 'dev' into test 2025-12-25 17:31:52 +08:00
chenbowen
1c2e8e1332 Merge remote-tracking branch 'base-version/main' into dev 2025-12-25 17:31:32 +08:00
chenbowen
e6fc24d3b1 1. 目前涉及到太多没有租户的场景,默认使用主租户兜底 2025-12-25 17:29:45 +08:00
chenbowen
d9ab32165f Merge branch 'dev' into test 2025-12-25 10:47:38 +08:00
chenbowen
b698706dad Merge remote-tracking branch 'base-version/main' into dev 2025-12-25 10:47:20 +08:00
chenbowen
09c726d51b 1. 避免无登录的操作无法记录日志的情况
2. 短信登录可以不传递租户信息
2025-12-25 10:46:45 +08:00
chenbowen
52f7a8f28b Merge branch 'dev' into test 2025-12-24 14:31:02 +08:00
chenbowen
ab3104cff7 Merge remote-tracking branch 'base-version/main' into dev 2025-12-24 14:30:39 +08:00
chenbowen
89a047d28b 1. 提升 infra 可以上传的附件大小 2025-12-24 14:30:03 +08:00
hewencai
3903b73905 Merge remote-tracking branch 'ztcloud/main' into main-ztcloud
# Conflicts:
#	zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/dept/DeptService.java
2025-12-24 11:15:23 +08:00
hewencai
8823e316a0 update:调整数据同步用户-部门,用户-岗位同步逻辑 2025-12-24 11:04:49 +08:00
hewencai
01847264d5 update:调整数据同步用户-部门,用户-岗位同步逻辑 2025-12-24 11:04:48 +08:00
hewencai
516198ab53 update:调整数据同步用户-部门,用户-岗位同步逻辑 2025-12-24 11:04:45 +08:00
hewencai
7f54e7f07d update:升级seata版本到2.4.0 2025-12-24 11:04:05 +08:00
hewencai
7ef5545dc0 update:调整数据同步用户-部门,用户-岗位同步顺序 2025-12-24 11:04:03 +08:00
hewencai
9b0e63a33e update:调整数据同步用户-部门,用户-岗位同步顺序 2025-12-24 11:04:01 +08:00
hewencai
2baede83e5 update:调整数据同步生产topic生成器 2025-12-24 11:03:59 +08:00
wencai he
25be319941 Merge branch 'dev' into 'test'
Dev

See merge request jygk/dsc!15
2025-12-24 02:42:20 +00:00
hewencai
bf27ebd5ba update:调整数据同步用户-部门,用户-岗位同步逻辑 2025-12-24 10:42:18 +08:00
hewencai
2dc0de96a3 update:调整数据同步用户-部门,用户-岗位同步逻辑 2025-12-24 10:41:51 +08:00
wencai he
0fdfce0626 Merge branch 'dev' into 'test'
Dev

See merge request jygk/dsc!14
2025-12-24 02:37:39 +00:00
hewencai
a411da6754 Merge remote-tracking branch 'origin/dev' into dev 2025-12-24 10:36:17 +08:00
hewencai
9485d94574 update:调整数据同步用户-部门,用户-岗位同步逻辑 2025-12-24 10:36:00 +08:00
chenbowen
433e2fb4de 1. 修改每日最大发送次数 2025-12-24 10:27:57 +08:00
chenbowen
b9c44ebf91 Merge branch 'dev' into test 2025-12-24 10:15:46 +08:00
chenbowen
f526dd54b9 Merge remote-tracking branch 'base-version/main' into dev 2025-12-24 10:15:27 +08:00
chenbowen
7e87465ef9 1. 修正有误的短信配置 2025-12-24 10:14:52 +08:00
chenbowen
2052479728 1. 临时新增短信平台的单独 topic 消费 2025-12-23 19:05:07 +08:00
hewencai
1ac2f1e2cc Merge remote-tracking branch 'origin/dev' into dev 2025-12-23 18:21:13 +08:00
hewencai
7661982447 update:升级seata版本到2.4.0 2025-12-23 18:20:42 +08:00
chenbowen
48660f75cf Merge branch 'dev' into test 2025-12-23 17:53:25 +08:00
chenbowen
5843e2eb7a Merge remote-tracking branch 'refs/remotes/base-version/main' into dev 2025-12-23 17:52:55 +08:00
chenbowen
82ea639cdd 1. 去掉凭证唯一约束 2025-12-23 16:36:35 +08:00
chenbowen
7b1991cc1c 1. 修复 get 请求时,转义后的字符串解析签名会存在问题 2025-12-23 16:36:06 +08:00
chenbowen
cda360572e Merge branch 'dev' into test 2025-12-23 13:02:04 +08:00
chenbowen
fe1cae483b Merge remote-tracking branch 'base-version/main' into dev 2025-12-23 13:01:48 +08:00
chenbowen
ca87ed3c52 1. 暂时简化掉所有的物流模块以及 erp 模块数据权限 2025-12-23 11:59:32 +08:00
chenbowen
3349d18103 Merge branch 'dev' into test
# Conflicts:
#	zt-framework/zt-spring-boot-starter-biz-business/src/main/java/com/zt/plat/framework/business/framework/BusinessDataPermissionEntityScanner.java
2025-12-23 11:46:51 +08:00
chenbowen
0ef6ac374b Merge remote-tracking branch 'base-version/main' into dev 2025-12-23 11:46:18 +08:00
chenbowen
79452c02f6 1. 优化数据权限问题 2025-12-23 11:44:37 +08:00
chenbowen
b361a07ce6 Merge branch 'dev' into test 2025-12-23 10:19:03 +08:00
chenbowen
815c595944 Merge remote-tracking branch 'base-version/main' into dev 2025-12-23 10:18:39 +08:00
chenbowen
9c0c4cca33 1. 升级版本 2025-12-23 10:17:15 +08:00
chenbowen
5a2ff28c6f 1. 新增 dept 类型的全局上下文权限 2025-12-22 19:32:04 +08:00
chenbowen
aaf5c38b05 1. 临时排除物流模块的数据权限 2025-12-22 17:30:25 +08:00
chenbowen
02208869f0 1. 移除二维码默认示例查询方式 2025-12-22 14:15:22 +08:00
chenbowen
2a16656b7d Merge branch 'dev' into test 2025-12-22 13:47:37 +08:00
chenbowen
2efa78ed74 Merge remote-tracking branch 'base-version/main' into dev 2025-12-22 13:47:15 +08:00
chenbowen
d688932f6d 1. 修复拆出的业务模块无法自动加载数据权限的bug 2025-12-22 13:43:56 +08:00
wencai he
f0b1ec7ca3 Merge branch 'dev' into 'test'
Dev

See merge request jygk/dsc!12
2025-12-22 03:05:45 +00:00
hewencai
0bdded447a update:调整数据同步用户-部门,用户-岗位同步顺序 2025-12-22 11:03:15 +08:00
hewencai
cea886c9b2 update:调整数据同步用户-部门,用户-岗位同步顺序 2025-12-22 09:51:05 +08:00
chenbowen
bdd22ed132 1. 去除部门编码为空时,默认使用 id 作为 code 进行映射的逻辑 2025-12-18 22:26:05 +08:00
chenbowen
494de02d65 1. 修复父子部门跨页场景下,无法正确生成层级代码的bug 2025-12-18 21:39:49 +08:00
chenbowen
a86b98b0f5 1. 新增 permissionApi 查询当前用户权限级别的方法 2025-12-18 20:26:27 +08:00
chenbowen
633772f8b1 1. 修正初始化 sql 简化内容 2025-12-18 14:46:12 +08:00
119 changed files with 4265 additions and 184 deletions

18
pom.xml
View File

@@ -32,7 +32,7 @@
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
<properties>
<revision>3.0.45</revision>
<revision>3.0.46</revision>
<!-- Maven 相关 -->
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
@@ -242,6 +242,19 @@
<config.version>1.0.0</config.version>
</properties>
</profile>
<profile>
<id>klw-dev</id>
<properties>
<env.name>dev</env.name>
<!--Nacos 配置-->
<config.server-addr>172.16.46.63:30848</config.server-addr>
<config.namespace>klw</config.namespace>
<config.group>DEFAULT_GROUP</config.group>
<config.username>nacos</config.username>
<config.password>P@ssword25</config.password>
<config.version>1.0.0</config.version>
</properties>
</profile>
<profile>
<id>env-prod</id>
<properties>
@@ -271,7 +284,8 @@
<profile>
<id>chenbowen</id>
<properties>
<env.name>local</env.name>
<!-- <env.name>local</env.name>-->
<env.name>dev</env.name>
<!-- <config.server-addr>localhost:8848</config.server-addr>-->
<config.server-addr>172.16.46.63:30848</config.server-addr>
<config.namespace>chenbowen</config.namespace>

View File

@@ -120,6 +120,7 @@ CREATE TABLE bpm_process_definition_info (
simple_model text NULL,
sort bigint DEFAULT 0 NULL,
visible bit DEFAULT '1' NOT NULL,
restart bit DEFAULT '1' NOT NULL,
start_user_ids varchar(256) DEFAULT NULL NULL,
start_dept_ids varchar(256) DEFAULT NULL NULL,
manager_user_ids varchar(256) DEFAULT NULL NULL,
@@ -156,6 +157,7 @@ COMMENT ON COLUMN bpm_process_definition_info.form_custom_view_path IS '自定
COMMENT ON COLUMN bpm_process_definition_info.simple_model IS 'SIMPLE 设计器模型数据 JSON 格式';
COMMENT ON COLUMN bpm_process_definition_info.sort IS '排序值';
COMMENT ON COLUMN bpm_process_definition_info.visible IS '是否可见';
COMMENT ON COLUMN bpm_process_definition_info.restart IS '是否允许重新发起';
COMMENT ON COLUMN bpm_process_definition_info.start_user_ids IS '可发起用户编号数组';
COMMENT ON COLUMN bpm_process_definition_info.start_dept_ids IS '可发起部门编号数组';
COMMENT ON COLUMN bpm_process_definition_info.manager_user_ids IS '可管理用户编号数组';

File diff suppressed because it is too large Load Diff

View File

@@ -19,7 +19,8 @@ CREATE TABLE databus_api_definition_credential (
deleted BIT DEFAULT '0' NOT NULL
);
CREATE UNIQUE INDEX uk_databus_api_definition_credential ON databus_api_definition_credential (api_id, credential_id, deleted);
-- 去掉错误的唯一索引逻辑
-- CREATE UNIQUE INDEX uk_databus_api_definition_credential ON databus_api_definition_credential (api_id, credential_id, deleted);
CREATE INDEX idx_databus_api_definition_credential_api ON databus_api_definition_credential (api_id);
CREATE INDEX idx_databus_api_definition_credential_cred ON databus_api_definition_credential (credential_id);

View File

@@ -0,0 +1,10 @@
-- 达梦8数据库DDL脚本
-- 为 bpm_process_definition_info 表添加 restart 字段
-- 是否允许重新发起
ALTER TABLE bpm_process_definition_info ADD COLUMN restart bit DEFAULT '1' NOT NULL;
-- 添加字段注释
COMMENT ON COLUMN bpm_process_definition_info.restart IS '是否允许重新发起';

View File

@@ -26,12 +26,13 @@
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
<properties>
<revision>3.0.45</revision>
<revision>3.0.46</revision>
<flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
<!-- 统一依赖管理 -->
<spring.boot.version>3.4.5</spring.boot.version>
<spring.cloud.version>2024.0.1</spring.cloud.version>
<spring.cloud.alibaba.version>2023.0.3.2</spring.cloud.alibaba.version>
<seata.version>2.4.0</seata.version>
<!-- Web 相关 -->
<springdoc.version>2.8.3</springdoc.version>
<knife4j.version>4.6.0</knife4j.version>
@@ -133,6 +134,24 @@
<scope>import</scope>
</dependency>
<!-- 分布式事务 Seata (覆盖 Spring Cloud Alibaba 中的 2.1.0 版本) -->
<dependency>
<groupId>org.apache.seata</groupId>
<artifactId>seata-all</artifactId>
<version>${seata.version}</version>
</dependency>
<dependency>
<groupId>org.apache.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<version>${seata.version}</version>
</dependency>
<!-- Seata 达梦数据库补丁 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>zt-spring-boot-starter-seata-dm</artifactId>
<version>${revision}</version>
</dependency>
<!-- 业务组件 -->
<dependency>
<groupId>io.github.mouzt</groupId>

View File

@@ -33,6 +33,7 @@
<module>zt-spring-boot-starter-biz-data-permission</module>
<module>zt-spring-boot-starter-biz-ip</module>
<module>zt-spring-boot-starter-biz-business</module>
<module>zt-spring-boot-starter-seata-dm</module>
</modules>
<artifactId>zt-framework</artifactId>

View File

@@ -8,6 +8,7 @@ import com.zt.plat.framework.common.util.json.JsonUtils;
import com.zt.plat.framework.common.util.spring.SpringUtils;
import com.zt.plat.framework.security.core.LoginUser;
import com.zt.plat.framework.tenant.core.context.CompanyContextHolder;
import com.zt.plat.framework.tenant.core.context.DeptContextHolder;
import com.zt.plat.framework.web.core.util.WebFrameworkUtils;
import com.zt.plat.module.system.api.dept.DeptApi;
import com.zt.plat.module.system.api.dept.dto.CompanyDeptInfoRespDTO;
@@ -197,6 +198,9 @@ public class BusinessDeptHandleUtil {
}
CompanyContextHolder.setIgnore(false);
CompanyContextHolder.setCompanyId(Long.valueOf(info.getCompanyId()));
DeptContextHolder.setIgnore(false);
DeptContextHolder.setCompanyId(Long.valueOf(info.getCompanyId()));
DeptContextHolder.setDeptId(Long.valueOf(info.getDeptId()));
return true;
}
}

View File

@@ -7,6 +7,8 @@ import org.springframework.boot.autoconfigure.AutoConfigurationPackages;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.util.StringUtils;
import java.util.LinkedHashSet;
import java.util.Set;
@@ -18,14 +20,12 @@ import java.util.Set;
public class BusinessDataPermissionConfiguration {
@Bean
public BusinessDataPermissionEntityScanner businessDataPermissionEntityScanner(BeanFactory beanFactory, ApplicationContext applicationContext) {
public BusinessDataPermissionEntityScanner businessDataPermissionEntityScanner(BeanFactory beanFactory, ApplicationContext applicationContext, Environment environment) {
Set<String> basePackages = new LinkedHashSet<>();
addConfiguredBasePackages(environment, basePackages);
if (AutoConfigurationPackages.has(beanFactory)) {
basePackages.addAll(AutoConfigurationPackages.get(beanFactory));
}
if (basePackages.isEmpty()) {
basePackages.add("com.zt");
}
ClassLoader classLoader = applicationContext != null
? applicationContext.getClassLoader()
: Thread.currentThread().getContextClassLoader();
@@ -35,6 +35,21 @@ public class BusinessDataPermissionConfiguration {
return new BusinessDataPermissionEntityScanner(basePackages, classLoader);
}
private void addConfiguredBasePackages(Environment environment, Set<String> basePackages) {
if (environment == null) {
return;
}
String configured = environment.getProperty("zt.info.base-package");
if (!StringUtils.hasText(configured)) {
return;
}
for (String pkg : configured.split("[,;\\s]+")) {
if (StringUtils.hasText(pkg)) {
basePackages.add(pkg.trim());
}
}
}
@Bean
public CompanyDataPermissionRuleCustomizer autoCompanyDataPermissionRuleCustomizer(BusinessDataPermissionEntityScanner scanner) {
return rule -> scanner.getEntityMetadata().forEach(metadata -> {

View File

@@ -28,6 +28,14 @@ import java.util.*;
@Slf4j
public class BusinessDataPermissionEntityScanner {
/**
* 临时排除的包前缀(物流模块 DO不参与数据权限扫描
*/
private static final Set<String> EXCLUDED_PACKAGE_PREFIXES = Set.of(
"com.zt.plat.module.backendlogistics",
"com.zt.plat.module.erp",
"com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO");
private final Set<String> basePackages;
private final ClassLoader classLoader;
@@ -70,6 +78,9 @@ public class BusinessDataPermissionEntityScanner {
if (!StringUtils.hasText(className)) {
continue;
}
if (isExcludedPackage(className)) {
continue;
}
try {
Class<?> clazz = ClassUtils.forName(className, classLoader);
if (clazz == BusinessBaseDO.class || !BusinessBaseDO.class.isAssignableFrom(clazz)) {
@@ -92,6 +103,15 @@ public class BusinessDataPermissionEntityScanner {
return new ArrayList<>(metadataMap.values());
}
private boolean isExcludedPackage(String className) {
for (String prefix : EXCLUDED_PACKAGE_PREFIXES) {
if (className.startsWith(prefix)) {
return true;
}
}
return false;
}
private EntityMetadata buildMetadata(Class<? extends BusinessBaseDO> entityClass) {
String tableName = resolveTableName(entityClass);
if (!StringUtils.hasText(tableName)) {

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