mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-02 10:36:40 +00:00
fix 修复 数据权限优化后 update delete 报null问题
This commit is contained in:
@@ -75,6 +75,11 @@ public class PlusDataPermissionInterceptor extends JsqlParserSupport implements
|
|||||||
if (invalidCacheSet.contains(ms.getId())) {
|
if (invalidCacheSet.contains(ms.getId())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
DataColumn[] dataColumns = dataPermissionHandler.findAnnotation(ms.getId());
|
||||||
|
if (ArrayUtil.isEmpty(dataColumns)) {
|
||||||
|
invalidCacheSet.add(ms.getId());
|
||||||
|
return;
|
||||||
|
}
|
||||||
PluginUtils.MPBoundSql mpBs = mpSh.mPBoundSql();
|
PluginUtils.MPBoundSql mpBs = mpSh.mPBoundSql();
|
||||||
mpBs.sql(parserMulti(mpBs.sql(), ms.getId()));
|
mpBs.sql(parserMulti(mpBs.sql(), ms.getId()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user