From 4887e1c5a583bb0fc8a8b3be68a035f6225aca22 Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Mon, 19 Dec 2022 03:29:47 +0000
Subject: [PATCH] 分支合并
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java
index 27ef877..313f72e 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java
@@ -134,4 +134,12 @@
* @return
*/
List<User> findAllByEnabled(Boolean enabled);
+
+ /**
+ * 根据排班查询
+ * @param ids /
+ * @return /
+ */
+ @Query(value = "SELECT count(1) FROM sys_user WHERE rostering_id IN ?1", nativeQuery = true)
+ int countByRosterings(Long[] ids);
}
--
Gitblit v1.9.3