package com.uas.console.donate.dao; import com.uas.console.donate.model.ProjectRecode; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface ProjectRecodeDao extends JpaRepository,JpaSpecificationExecutor{ //查询某项目的捐款明细 @Query("from ProjectRecode where proId=:proId") List findProjectDetail(@Param("proId")Long proId); }