| | |
| | | |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import me.zhengjie.modules.project.domain.Project; |
| | | import me.zhengjie.modules.project.domain.ProjectType; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | |
| | |
| | | |
| | | @Query(value = "SELECT * FROM project WHERE id = ?1", nativeQuery = true) |
| | | Project findByIdUpdate(Long id); |
| | | |
| | | List<Project> findByProjectStatus(String projectStatus); |
| | | |
| | | List<Project> findByProjectStatusAndIdIn(String projectStatus, Long[] ids); |
| | | |
| | | /** |
| | | * 根据用户ID查询负责项目ID |
| | | * @param liableUserId |
| | | * @return |
| | | */ |
| | | @Query(value = "SELECT id FROM project WHERE liable_user_id = ?1", nativeQuery = true) |
| | | List<Long> findIdByLiableUserId(Long liableUserId); |
| | | } |