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

import com.cirle.scientific.po.QkjQuestionApp;
import com.cirle.scientific.po.QkjQuestionDetailApp;
import com.cirle.scientific.po.QkjQuestionOptionApp;
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 QkjQuestionAppDao extends PagingAndSortingRepository<QkjQuestionApp, Long>, JpaSpecificationExecutor<QkjQuestionApp> {

    @Query(value = "select * from qkj_question_app where id in ?1  and status = 0 ", nativeQuery = true)
    List<QkjQuestionApp> findAllByIds(List<Integer> ids);
}
