From 88788f6824f42d09659ef6db644cf97cde71f7a5 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Fri, 29 Aug 2025 04:14:00 +0000
Subject: [PATCH] 哺乳假添加单日最大时长限制(补充:改为小时单位)
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectPerformanceDetailRepository.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectPerformanceDetailRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectPerformanceDetailRepository.java
index 5a4b20b..327c4f6 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectPerformanceDetailRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/project/repository/ProjectPerformanceDetailRepository.java
@@ -30,5 +30,11 @@
**/
public interface ProjectPerformanceDetailRepository extends JpaRepository<ProjectPerformanceDetail, Long>, JpaSpecificationExecutor<ProjectPerformanceDetail> {
- Optional<ProjectPerformanceDetail> findByProjectIdAndUserIdAndYearMonth(Long projectId, Long key, Timestamp yearMonth);
+ Optional<ProjectPerformanceDetail> findByProjectIdAndUserIdAndYearMonthLessThan(Long projectId, Long key, Timestamp yearMonth);
+
+ /**
+ * 根据项目ID删除
+ * @param projectId
+ */
+ void deleteByProjectId(Long projectId);
}
\ No newline at end of file
--
Gitblit v1.9.3