From 45a2ea431caf499df22dfb066e9fcbcee110bb8f Mon Sep 17 00:00:00 2001
From: yaozc2021 <yaozc@yhzhg.cn>
Date: Thu, 24 Apr 2025 09:39:35 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' of http://192.168.1.110:5678/r/pms-upgrade into wcd

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskDaliyRepository.java |    3 +++
 1 files changed, 3 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 07917fb..90875f3 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
@@ -238,4 +238,7 @@
     List<Long> findByTaskId(Long taskId);
 
     List<TaskDaliy> findByTaskIdAndUserId(Long taskId, Long userId);
+
+    @Query(value = "select COALESCE(SUM(td.consumed_hours), 0) AS consumedHours, project_id as projectId, user_id as userId from task_daliy where fill_date <= ?2 and fill_date >= ?1 group by project_id, user_id order by user_id",nativeQuery = true)
+    List<Map> calcTotalConsumedHours(LocalDate startDate, LocalDate endDate);
 }
\ No newline at end of file

--
Gitblit v1.9.3