From 6754df3c4faf22d426d45d1c4995c865cab686de Mon Sep 17 00:00:00 2001 From: weicd <weicd@yhzhg.cn> Date: Mon, 20 Feb 2023 02:45:16 +0000 Subject: [PATCH] 流水相关 --- eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskRepository.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskRepository.java index 7e7614d..ec7df1f 100644 --- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskRepository.java +++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/repository/TaskRepository.java @@ -47,4 +47,10 @@ @Query(value = "SELECT COALESCE(SUM(plan_hours), 0.0) AS planHours, COALESCE(sum(plan_workload), 0.0) as planWorkload FROM task WHERE project_id = ?1", nativeQuery = true) TaskInterface collectByProjectId(Long projectId); + + /** + * 根据项目ID删除 + * @param projectId + */ + void deleteByProjectId(Long projectId); } \ No newline at end of file -- Gitblit v1.9.3