| | |
| | | import me.zhengjie.modules.project.domain.ProjectPerformance; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | |
| | | * @date 2023-01-17 |
| | | **/ |
| | | public interface ProjectPerformanceRepository extends JpaRepository<ProjectPerformance, Long>, JpaSpecificationExecutor<ProjectPerformance> { |
| | | |
| | | // 根据项目查询绩效表 |
| | | @Query(value = "SELECT * FROM `project_performance` WHERE project_id = ?", nativeQuery = true) |
| | | ProjectPerformance findByProjectId(Long id); |
| | | |
| | | /** |
| | | * 根据项目ID删除 |
| | | * @param projectId |
| | | */ |
| | | void deleteByProjectId(Long projectId); |
| | | } |