宝慕林4294392
@Intercepts( { @Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class,ResultHandler.class }) })public class DecoderPlugin implements Interceptor {public Object intercept(Invocation invocation) throws Throwable {//传入参数Object[] queryArgs = invocation.getArgs();//查询结果Object obj = invocation.proceed(); //对结果处理obj = DBEncrypt.init().Decryption(obj);return obj;}public Object plugin(Object target) {return Plugin.wrap(target, this);}public void setProperties(Properties properties) {}}