packagetrack.repository;importorg.springframework.data.jpa.repository.JpaRepository;importorg.springframework.data.jpa.repository.Query;importtrack.model.Account;importtrack.model.App;importjava.math.BigInteger;importjava.util.List;publicinterfaceTrackAppRepositoryextendsJpaRepository<App,Long>{List<App>findByAccount(Longaccount);@Query(value="select count(*) from app where account in ?1 and pub_date >= ?2 and pub_date <= ?3",nativeQuery=true)BigIntegercountByAccount(List<Long>accountId,StringstartDate,StringendDate);@Query(value="select * from app where account in ?1 ",nativeQuery=true)List<App>findByAccount(List<Long>accountId);}