package common.repository;

import common.model.AppInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by zxy on 2017/12/26.
 */
public interface AppInfoRepository extends JpaRepository<AppInfo, Long>, JpaSpecificationExecutor<AppInfo>
{
    @Query(value = "select a from AppInfo a where reyun=0 or reyun is null")
    List<AppInfo> findAppListByReyun();
}
