package com.yihu.wlyy.statistics.dao; import com.yihu.wlyy.statistics.model.job.QuartzJobConfig; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import java.util.List; /** * Created by Administrator on 2016/8/17. */ public interface QuartzJobConfigDao extends PagingAndSortingRepository, JpaSpecificationExecutor { @Query(" FROM QuartzJobConfig a WHERE a.id=?1 and a.status=?2 and a.del='1'") QuartzJobConfig findById(String code, String status); @Query(" FROM QuartzJobConfig a WHERE a.status=?1 and a.del='1'") List findByAll(String s); @Query(" FROM QuartzJobConfig a WHERE a.del='1' order by a.id asc") List findByIds(); @Query(" FROM QuartzJobConfig a WHERE a.id=?1 and a.del='1'") QuartzJobConfig findById(String id); }