package com.yihu.wlyy.repository.demographic;

import com.yihu.wlyy.entity.demographic.DemographicInfo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by Administrator on 2016.08.20.
 */
public interface TblBasicDao extends PagingAndSortingRepository<DemographicInfo, Integer>, JpaSpecificationExecutor<DemographicInfo> {
    @Query(" from DemographicInfo a  where a.cardid = ?1 and a.state='1'")
    DemographicInfo findByIdCard(String idcard);
}
