BAOLH
2026-11-10 c5dfc09145e4e10f99dbf388a4a1433b5c2973e5
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);
}