From 33c0217ebbbec2b2349180cc23fa6ce2feb43607 Mon Sep 17 00:00:00 2001
From: huaz <huaz@yhzhg.cn>
Date: Tue, 27 Dec 2022 02:49:22 +0000
Subject: [PATCH] 常量文件

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java |   16 ++++++++++++++++
 1 files changed, 16 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..eb35f0a 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,20 @@
      * @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);
+
+    /**
+     * 根据级别查询
+     * @param ids /
+     * @return /
+     */
+    @Query(value = "SELECT count(1) FROM sys_user WHERE level_id IN ?1", nativeQuery = true)
+    int countByLevels(Long[] ids);
 }

--
Gitblit v1.9.3