From 574fc0c159d091abfc4d10613f4423b4085e85e1 Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Fri, 03 Feb 2023 02:23:28 +0000
Subject: [PATCH] Merge branch 'master' of http://192.168.1.110:5678/r/pms-upgrade into yaozc

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 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 b885d33..a9e83f4 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
@@ -106,6 +106,14 @@
     List<TaskDailyInterface> collectByProjectIdAndFillDateLessThanGroupByUserIdAndFillDate(Long projectId, Timestamp fillDate);
 
     /**
+     * 根据项目ID查询任务日报信息
+     * @param projectId
+     * @return
+     */
+    @Query(value = "SELECT user_id AS userId, fill_date AS fillDate, COALESCE(SUM(consumed_hours), 0) AS consumedHours FROM task_daliy WHERE project_id = ?1 GROUP BY user_id, fill_date", nativeQuery = true)
+    List<TaskDailyInterface> collectByProjectIdGroupByUserIdAndFillDate(Long projectId);
+
+    /**
      * 根据项目ID、任务ID查询
      * @param projectId
      * @param taskId

--
Gitblit v1.9.3