package com.cirle.scientific.dao;/*
 *24901
 *2022/12/26
 *16:02
 */

import com.cirle.scientific.po.QkjLungReportUnderstandApp;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * @author 24901
 */
public interface QkjLungReportUnderstandAppDao extends PagingAndSortingRepository<QkjLungReportUnderstandApp, Long>,
        JpaSpecificationExecutor<QkjLungReportUnderstandApp> {


    @Query(value = "select * from qkj_lung_report_understand_app where mem_card= ?1 and status = ?2 ", nativeQuery = true)
    List<QkjLungReportUnderstandApp> findAllByMemCardAndStatus(String memCard, Integer status);

    @Query(value = "select * from qkj_lung_report_understand_app where mem_card= ?1 ", nativeQuery = true)
    List<QkjLungReportUnderstandApp> findAllByMemCard(String memCard);

}
