package com.cirle.scientific.dao;/*
 *24901
 *2023/1/4
 *9:31
 */

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

import java.util.LinkedList;

public interface QkjSuperviseAppDao extends PagingAndSortingRepository<QkjSuperviseApp, Long>, JpaSpecificationExecutor<QkjSuperviseApp> {

    @Query(value = "select * from qkj_supervise_app where mem_card = ?1 and year = ?2 and type = ?3 and status = 0 group by month asc", nativeQuery = true)
    LinkedList<QkjSuperviseApp> findResultFileByYearAndTypeAndMemCard(String memCard, Integer year, Integer type);

}
