importjava.util.List;publicinterfaceAppRepositoryextendsJpaRepository<App,Long>{@Query(value="select * from app where account in (select id from account where parent = ?1 or id = ?1) and del_flag is not true",nativeQuery=true)List<App>listAppByRootAccount(Longaccount);