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

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 QkjQuestionOptionAppDao extends PagingAndSortingRepository<QkjQuestionOptionApp, Long>, JpaSpecificationExecutor<QkjQuestionOptionApp> {

    @Query(value = "select * from qkj_question_option_app where qu_id = ?1 and status = 0", nativeQuery = true)
    List<QkjQuestionOptionApp> selectAllByQuId(Integer quId);
}
