From 3e7809388567cd58e737e6164e509a6f8910b1b9 Mon Sep 17 00:00:00 2001 From: chenbowen Date: Fri, 1 Aug 2025 09:35:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=20=E4=BF=AE=E5=A4=8D=20infra=20?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=202.=20=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E9=99=84=E4=BB=B6=E8=8F=9C=E5=8D=95=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/dm/patch.sql | 55 ++++++++++++++++++- .../service/file/FileServiceImplTest.java | 1 + 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/sql/dm/patch.sql b/sql/dm/patch.sql index 7a21b816..1d7e8478 100644 --- a/sql/dm/patch.sql +++ b/sql/dm/patch.sql @@ -35,4 +35,57 @@ COMMENT ON COLUMN infra_bsn_file.create_time IS '创建时间'; COMMENT ON COLUMN infra_bsn_file.updater IS '更新者'; COMMENT ON COLUMN infra_bsn_file.update_time IS '最后更新时间'; COMMENT ON COLUMN infra_bsn_file.deleted IS '是否删除'; -COMMENT ON COLUMN infra_bsn_file.tenant_id IS '租户编号'; \ No newline at end of file +COMMENT ON COLUMN infra_bsn_file.tenant_id IS '租户编号'; + +-- 业务菜单 sql +-- 菜单 SQL +INSERT INTO system_menu( + id, name, permission, type, sort, parent_id, + path, icon, component, status, component_name +) +VALUES ( + '1948328245618204673', '业务附件关联管理', '', 2, 0, 1243, + 'business-file', '', 'infra/businessfile/index', 0, 'BusinessFile' + ); + +-- 按钮 SQL +INSERT INTO system_menu( + id, name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '1951092724040097793', '业务附件关联查询', 'infra:business-file:query', 3, 1, 1948328245618204673, + '', '', '', 0 + ); +INSERT INTO system_menu( + id, name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '1951092724040097794', '业务附件关联创建', 'infra:business-file:create', 3, 2, 1948328245618204673, + '', '', '', 0 + ); +INSERT INTO system_menu( + id, name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '1951092724040097795', '业务附件关联更新', 'infra:business-file:update', 3, 3, 1948328245618204673, + '', '', '', 0 + ); +INSERT INTO system_menu( + id, name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '1951092724040097796', '业务附件关联删除', 'infra:business-file:delete', 3, 4, 1948328245618204673, + '', '', '', 0 + ); +INSERT INTO system_menu( + id, name, permission, type, sort, parent_id, + path, icon, component, status +) +VALUES ( + '1951092724040097797', '业务附件关联导出', 'infra:business-file:export', 3, 5, 1948328245618204673, + '', '', '', 0 + ); \ No newline at end of file diff --git a/yudao-module-infra/yudao-module-infra-server/src/test/java/cn/iocoder/yudao/module/infra/service/file/FileServiceImplTest.java b/yudao-module-infra/yudao-module-infra-server/src/test/java/cn/iocoder/yudao/module/infra/service/file/FileServiceImplTest.java index 8476eb38..13d4a8e9 100644 --- a/yudao-module-infra/yudao-module-infra-server/src/test/java/cn/iocoder/yudao/module/infra/service/file/FileServiceImplTest.java +++ b/yudao-module-infra/yudao-module-infra-server/src/test/java/cn/iocoder/yudao/module/infra/service/file/FileServiceImplTest.java @@ -55,6 +55,7 @@ public class FileServiceImplTest extends BaseDbUnitTest { o.setPath("yunai"); o.setType("image/jpg"); o.setCreateTime(buildTime(2021, 1, 15)); + o.setIsEncrypted(null); }); fileMapper.insert(dbFile); // 测试 path 不匹配