class TranInterceptor implements Interceptor {
    public static final TranInterceptor instance = new TranInterceptor();

    @Override
    public Object doIntercept(Invocation inv) throws Throwable {<FILL_FUNCTION_BODY>}
}

        //支持动态开关事务
        if (Solon.app().enableTransaction()) {
            Tran anno = inv.getMethodAnnotation(Tran.class);
            if (anno == null) {
                anno = inv.getTargetAnnotation(Tran.class);
            }

            if (anno == null) {
                return inv.invoke();
            } else {
                AtomicReference val0 = new AtomicReference();
                Tran anno0 = anno;

                TranUtils.execute(anno0, () -> {
                    val0.set(inv.invoke());
                });

                return val0.get();
            }
        } else {
            return inv.invoke();
        }
    
<no_super_class>