From e48f52f2b3b6794199dee3bc1c2fcbe4671178a6 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 04 Nov 2025 04:09:55 +0000
Subject: [PATCH] 退回的调休假数额未能正确返回调休BUG修改

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java
index 03f40c3..4231611 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java
@@ -76,7 +76,7 @@
      * @param nextYear
      * @return
      */
-    @Query(value = "SELECT * FROM sys_user_level_other WHERE user_id = ?1 AND `year_month` >= ?2 AND `year_month` < ?3  ORDER BY `year_month` DESC LIMIT 1", nativeQuery = true)
-    SysUserLevelOther findByUserIdAndData(Long userId, String targetDate, String nextYear);
+    @Query(value = "SELECT * FROM sys_user_level_other WHERE user_id = ?1 AND `year_month` <= ?2 ORDER BY `year_month` DESC LIMIT 1", nativeQuery = true)
+    SysUserLevelOther findByUserIdAndData(Long userId, String targetDate);
 
 }
\ No newline at end of file

--
Gitblit v1.9.3