bug修复
This commit is contained in:
parent
7ecc95cebe
commit
b18a660601
@ -198,24 +198,6 @@ public class DataScopeHandler implements DataPermissionHandler {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!DataScopeInterceptor.isNotSqlTest()) {
|
||||
String sql = " ('1qqq')";
|
||||
try {
|
||||
Expression expression = CCJSqlParserUtil.parseCondExpression(sql);
|
||||
Expression where = plainSelect.getWhere();
|
||||
if (where != null) {
|
||||
where = new AndExpression(where, expression);
|
||||
} else {
|
||||
where = expression;
|
||||
}
|
||||
plainSelect.setWhere(where);
|
||||
} catch (JSQLParserException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (expressions.size() > 0) {
|
||||
Expression dataExpression;
|
||||
if (expressions.size() > 1) {
|
||||
@ -240,6 +222,23 @@ public class DataScopeHandler implements DataPermissionHandler {
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!DataScopeInterceptor.isNotSqlTest()) {
|
||||
String sql = " ('1qqq')";
|
||||
try {
|
||||
Expression expression = CCJSqlParserUtil.parseCondExpression(sql);
|
||||
Expression where = plainSelect.getWhere();
|
||||
if (where != null) {
|
||||
where = new AndExpression(where, expression);
|
||||
} else {
|
||||
where = expression;
|
||||
}
|
||||
plainSelect.setWhere(where);
|
||||
} catch (JSQLParserException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
//List<String> scopeIds = systemUserDataScopeService.list(Wrappers.<SystemUserDataScope>lambdaQuery().eq(SystemUserDataScope::getUserId, user.getUserId()))
|
||||
// .stream().map(u -> u.getRelevanceId()).collect(Collectors.toList());
|
||||
//if (user.getAccountType() == 4) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user