From aa102c7ba6977ff40f3e02eba32a00a168fb3564 Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Tue, 31 Jan 2023 00:52:00 +0000
Subject: [PATCH] Merge branch 'master' of http://192.168.1.110:5678/r/pms-upgrade into yaozc

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/UserRepository.java |   15 +++++++++++++++
 1 files changed, 15 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 85d2d16..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
@@ -129,10 +129,25 @@
     int countByRoles(Set<Long> ids);
 
     /**
+     * 根据状态查询
+     * @param enabled
+     * @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