From df1c1163fe71468fed43b4f0a811b3e03546565c Mon Sep 17 00:00:00 2001 From: jarvis <649219050@qq.com> Date: Sun, 5 Feb 2023 15:36:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=201.=E5=88=A0=E9=99=A4=E5=8F=97=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=E7=9A=84=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datascope/mp/sql/handler/CreatorDataScopeSqlHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zlt-commons/zlt-common-core/src/main/java/com/central/common/datascope/mp/sql/handler/CreatorDataScopeSqlHandler.java b/zlt-commons/zlt-common-core/src/main/java/com/central/common/datascope/mp/sql/handler/CreatorDataScopeSqlHandler.java index 40c616e1..8630b75b 100644 --- a/zlt-commons/zlt-common-core/src/main/java/com/central/common/datascope/mp/sql/handler/CreatorDataScopeSqlHandler.java +++ b/zlt-commons/zlt-common-core/src/main/java/com/central/common/datascope/mp/sql/handler/CreatorDataScopeSqlHandler.java @@ -45,6 +45,6 @@ public class CreatorDataScopeSqlHandler implements SqlHandler{ // 这里确保有配置权限范围控制的字段 // 1. 如果没有配置角色的情况默认采用只读全部的记录 // 2. 如果有配置角色的话判断是否存在有ALL获取null的情况,如果没有ALL的话读取个人创建记录 - String.format("%s.%s = '%s'", ALIAS_SYNBOL, dataScopeProperties.getCreatorIdColumnName(), user.getId()); + String.format("%s = '%s'", dataScopeProperties.getCreatorIdColumnName(), user.getId()); } }