churf
2023-08-21 bdbce4e615d15f4f8423cc8ac5ee7fc66bb311ef
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;
/**
@@ -99,7 +100,7 @@
     * @param userId
     * @return
     */
   TaskUser findByTaskIdAndTaskInnerIdAndUserId(Long taskId, Long taskInnerId, Long userId);
   TaskUser findByTaskIdAndTaskInnerIdAndUserId(String taskId, Long taskInnerId, Long userId);
    /**
     * 根据任务ID和员工ID查询
@@ -107,11 +108,16 @@
     * @param userId
     * @return
     */
   TaskUser findByTaskIdAndUserIdAndEnable(Long taskId, Long userId, Boolean enable);
   TaskUser findByTaskIdAndUserIdAndEnable(String taskId, Long userId, Boolean enable);
    /**
     * 根据项目ID删除
     * @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);
}