update 优化 数据权限支持自定义连接符

This commit is contained in:
疯狂的狮子Li
2024-07-12 13:15:23 +08:00
parent fc89d62f1a
commit 5444ccc857
3 changed files with 17 additions and 7 deletions

View File

@ -44,10 +44,10 @@ public interface TestDemoMapper extends BaseMapperPlus<TestDemo, TestDemoVo> {
List<TestDemo> selectList(@Param(Constants.WRAPPER) Wrapper<TestDemo> queryWrapper);
@Override
@DataPermission({
@DataPermission(value = {
@DataColumn(key = "deptName", value = "dept_id"),
@DataColumn(key = "userName", value = "user_id")
})
}, joinStr = "AND")
List<TestDemo> selectBatchIds(@Param(Constants.COLL) Collection<? extends Serializable> idList);
@Override