|
@@ -156,7 +156,7 @@ public class DeptDataPermissionRule implements DataPermissionRule {
|
|
|
}
|
|
|
// 拼接条件
|
|
|
return new InExpression(MyBatisUtils.buildColumn(tableName, tableAlias, columnName),
|
|
|
- new ExpressionList(CollectionUtils.convertList(deptIds, LongValue::new)));
|
|
|
+ new ExpressionList(CollectionUtils.convertList(deptIds, StringValue::new)));
|
|
|
}
|
|
|
|
|
|
private Expression buildUserExpression(String tableName, Alias tableAlias, Boolean self, String userId) {
|
|
@@ -169,7 +169,7 @@ public class DeptDataPermissionRule implements DataPermissionRule {
|
|
|
return null;
|
|
|
}
|
|
|
// 拼接条件
|
|
|
- return new EqualsTo(MyBatisUtils.buildColumn(tableName, tableAlias, columnName), new LongValue(userId));
|
|
|
+ return new EqualsTo(MyBatisUtils.buildColumn(tableName, tableAlias, columnName), new StringValue(userId));
|
|
|
}
|
|
|
|
|
|
// ==================== 添加配置 ====================
|