eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskUserRepository.java
@@ -21,6 +21,7 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import java.util.Collection; import java.util.List; /** @@ -114,4 +115,9 @@ * @param projectId */ void deleteByProjectId(Long projectId); List<TaskUser> findByTaskId(Long id); @Query(value = "select DISTINCT user_id from task_user where task_id = ?1",nativeQuery = true) List<Long> getAllTaskCountByUserId(Long task_id); }