From d2e7d555cd3390ea9550037f997605711798cafb Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 26 Jul 2024 18:53:51 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E9=80=9A=E8=BF=87change?= =?UTF-8?q?log=E5=88=B7=E6=96=B0channel=E8=A1=A8=E5=92=8Cchannel=5Fauthori?= =?UTF-8?q?ty=E8=A1=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1208686570078208]通过changelog刷新channel表和channel_authority表数据 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1208686570078208 --- .../process/changelog/2024-07-27/neatlogic_tenant.sql | 3 +++ .../process/changelog/2024-07-27/version.json | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql create mode 100644 src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json diff --git a/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql new file mode 100644 index 000000000..fcbe0ee93 --- /dev/null +++ b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/neatlogic_tenant.sql @@ -0,0 +1,3 @@ +INSERT IGNORE INTO `channel_authority` (`channel_uuid`, `type`, `uuid`, `action`) SELECT a.`uuid`, 'common', 'alluser', 'view' FROM channel a LEFT JOIN `channel_authority` b ON b.`channel_uuid` = a.`uuid` AND b.`action` = 'view' WHERE b.`channel_uuid` IS NULL; + +INSERT IGNORE INTO `catalog_authority` (`catalog_uuid`, `type`, `uuid`, `action`) SELECT a.`uuid`, 'common', 'alluser', 'view' FROM catalog a LEFT JOIN `catalog_authority` b ON b.`catalog_uuid` = a.`uuid` AND b.`action` = 'view' WHERE b.`catalog_uuid` IS NULL; diff --git a/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json new file mode 100644 index 000000000..6608c91f6 --- /dev/null +++ b/src/main/resources/neatlogic/resources/process/changelog/2024-07-27/version.json @@ -0,0 +1,10 @@ +{ + "content":[ + { + "type":"新增功能", + "detail":[ + {"msg":"1.通过changelog刷新channel表和channel_authority表数据"} + ] + } + ] +} -- Gitee