12345678910111213141516171819 |
- /**
- * Created by nature of king on 2018/5/10.
- */
- package com.yihu.jw.dao;
- import com.yihu.jw.entity.health.bank.TaskRuleDO;
- import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
- import org.springframework.data.jpa.repository.Query;
- import org.springframework.data.repository.PagingAndSortingRepository;
- /**
- * @author wangzhinan
- * @create 2018-05-10 11:17
- * @desc health bank task dict
- **/
- public interface TaskRuleDao extends PagingAndSortingRepository<TaskRuleDO,String>,JpaSpecificationExecutor<TaskRuleDO> {
- @Query("select t from TaskRuleDO t where t.id = ?1 and t.status=1")
- public TaskRuleDO findByCode(String id);
- }
|