BAOLH
2026-05-18 c6d960f0e2d094c86a8e7eb0802e7bae86de63ed
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);
}