churf
2023-09-18 4b4e1b54cae72088fa60978e0192fe57f986e6f3
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);
}