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/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 313f72e..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
@@ -142,4 +142,12 @@
      */
     @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