Commit 41ee23716190648bbaf08f837f1710617fe19bbc

Authored by YunaiV
1 parent f0d680b2

【代码优化】全局:DeptDataPermissionRule 的 ExpressionList 泛型 Long,解决部分 IDEA 的 jdk 编译存在问题

yudao-framework/yudao-spring-boot-starter-biz-data-permission/src/main/java/cn/iocoder/yudao/framework/datapermission/core/rule/dept/DeptDataPermissionRule.java
... ... @@ -157,7 +157,7 @@ public class DeptDataPermissionRule implements DataPermissionRule {
157 157 // 拼接条件
158 158 return new InExpression(MyBatisUtils.buildColumn(tableName, tableAlias, columnName),
159 159 // Parenthesis 的目的,是提供 (1,2,3) 的 () 左右括号
160   - new Parenthesis(new ExpressionList<>(CollectionUtils.convertList(deptIds, LongValue::new))));
  160 + new Parenthesis(new ExpressionList<LongValue>(CollectionUtils.convertList(deptIds, LongValue::new))));
161 161 }
162 162  
163 163 private Expression buildUserExpression(String tableName, Alias tableAlias, Boolean self, Long userId) {
... ...