package com.cirle.scientific.dao;/*
 *24901
 *2023/1/11
 *14:33
 */

import com.cirle.scientific.po.QkjSuperviseResultApp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author 24901
 */
public interface QkjSuperviseResultDao extends JpaRepository<QkjSuperviseResultApp, Long>, JpaSpecificationExecutor<QkjSuperviseResultApp> {


    @Query(value = "select * from qkj_supervise_result_app where obj_id = ?1 and status = 0",nativeQuery = true)
    List<QkjSuperviseResultApp> selectAllByObjId(Integer objId);

}
