public interface DataPmsHandler
| 限定符和类型 | 方法和说明 |
|---|---|
net.sf.jsqlparser.expression.Expression |
getSqlSegment(net.sf.jsqlparser.schema.Table table,
net.sf.jsqlparser.expression.Expression where,
java.lang.String mappedStatementId)
获取数据权限 SQL 片段
|
void |
insertParameter(net.sf.jsqlparser.statement.insert.Insert insertStmt,
org.apache.ibatis.mapping.BoundSql boundSql)
新增数据时 判断是否存在越权行为,如果存在这种行为则进行拦截并重组sql
|
void |
updateParameter(net.sf.jsqlparser.statement.update.Update updateStmt,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql)
更新数据时 判断是否存在越权行为,如果存在这种行为则进行拦截并重组sql
|
net.sf.jsqlparser.expression.Expression getSqlSegment(net.sf.jsqlparser.schema.Table table,
net.sf.jsqlparser.expression.Expression where,
java.lang.String mappedStatementId)
table - 表相关信息where - 待执行 SQL Where 条件表达式mappedStatementId - Mybatis MappedStatement Id 根据该参数可以判断具体执行方法void insertParameter(net.sf.jsqlparser.statement.insert.Insert insertStmt,
org.apache.ibatis.mapping.BoundSql boundSql)
insertStmt - InsertboundSql - BoundSqlvoid updateParameter(net.sf.jsqlparser.statement.update.Update updateStmt,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql)
updateStmt - UpdatemappedStatement - MappedStatementboundSql - BoundSqlCopyright © 2023. All rights reserved.