mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	This commit is contained in:
		| @@ -496,7 +496,8 @@ public class DataPermissionDatabaseInterceptor extends JsqlParserSupport impleme | |||||||
|         Expression allExpression = null; |         Expression allExpression = null; | ||||||
|         for (DataPermissionRule rule : ContextHolder.getRules()) { |         for (DataPermissionRule rule : ContextHolder.getRules()) { | ||||||
|             // 判断表名是否匹配 |             // 判断表名是否匹配 | ||||||
|             if (!rule.getTableNames().contains(table.getName())) { |             String tableName = MyBatisUtils.getTableName(table); | ||||||
|  |             if (!rule.getTableNames().contains(tableName)) { | ||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|             // 如果有匹配的规则,说明可重写。 |             // 如果有匹配的规则,说明可重写。 | ||||||
| @@ -505,7 +506,6 @@ public class DataPermissionDatabaseInterceptor extends JsqlParserSupport impleme | |||||||
|             ContextHolder.setRewrite(true); |             ContextHolder.setRewrite(true); | ||||||
|  |  | ||||||
|             // 单条规则的条件 |             // 单条规则的条件 | ||||||
|             String tableName = MyBatisUtils.getTableName(table); |  | ||||||
|             Expression oneExpress = rule.getExpression(tableName, table.getAlias()); |             Expression oneExpress = rule.getExpression(tableName, table.getAlias()); | ||||||
|             if (oneExpress == null){ |             if (oneExpress == null){ | ||||||
|                 continue; |                 continue; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV