From dcafe4c3b9644dc5b04d06bd08f7960cf3b23b43 Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Mon, 09 Oct 2023 09:48:27 +0000
Subject: [PATCH] 修改

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java
index 1d7ea44..a3834a9 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java
@@ -193,7 +193,7 @@
      * @param endDate
      * @return
      */
-    @Query(value = "SELECT id,project_id,task_id,user_id,fill_date,consumed_workload,task_progress,settlement_status,SUM( consumed_hours ) AS consumed_hours,remarks,create_by,create_time,update_by,update_time from task_daliy where user_id = ?1 and fill_date <= ?3 and fill_date >= ?2 group by fill_date", nativeQuery = true)
+    @Query(value = "SELECT id,project_id,task_id,task_inner_id,user_id,fill_date,consumed_workload,task_progress,settlement_status,SUM( consumed_hours ) AS consumed_hours,remarks,create_by,create_time,update_by,update_time from task_daliy where user_id = ?1 and fill_date <= ?3 and fill_date >= ?2 group by fill_date", nativeQuery = true)
     List<TaskDaliy> findAllByUserAndDate(Long userId, LocalDate startDate, LocalDate endDate); // TODO
 
     /**
@@ -216,4 +216,11 @@
      * @return
      */
     List<TaskDaliy> findByProjectId(Long projectId);
+
+    /**
+     * 根据项目ID查询
+     * @param projectId
+     * @return
+     */
+	List<TaskDaliy> findByProjectIdAndTaskId(Long projectId, Long id);
 }
\ No newline at end of file

--
Gitblit v1.9.3