From 7aa25f5f3a84dcbd965ccc1dcb00de518bec7320 Mon Sep 17 00:00:00 2001 From: wanghao Date: Fri, 27 Mar 2026 10:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=89=8B=E8=A1=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9D=83=E9=99=90=E8=A7=84=E5=88=99=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/xcsql/system_rules.sql | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/db/xcsql/system_rules.sql b/db/xcsql/system_rules.sql index cc1fa3f..5f0601e 100644 --- a/db/xcsql/system_rules.sql +++ b/db/xcsql/system_rules.sql @@ -23,12 +23,5 @@ WHERE "ID" = '1737404792707821569'; -- 3. 更新手表数据权限规则 - 部门代码规则 UPDATE "QH_SYS_PERM_DATA_RULE" -SET "RULE_VALUE" = '( ORGCODE REGEXP CONCAT(''^\('',replace(''#{sys_manager_depart_codes}'','','',''|''),'')\')) =1' -WHERE "ID" = '2027689339962118146'; - --- ============================================================ --- 验证更新结果 --- ============================================================ -SELECT "ID", "RULE_NAME", "RULE_COLUMN", "RULE_CONDITIONS", "RULE_VALUE" -FROM "QH_SYS_PERM_DATA_RULE" -WHERE "ID" IN ('2027688332771315713', '1737389275796287489', '1737404792707821569', '2027689339962118146'); \ No newline at end of file +SET "RULE_VALUE" = '( REGEXP_LIKE(ORGCODE, ''^('' || replace(''#'' || {sys_manager_depart_codes}, '',''|'') || '')'') ) = 1' +WHERE "ID" = '2027689339962118146'; \ No newline at end of file