huaz
2023-01-09 5fd2ac11a530b5b7ddfcb2a40cf5d68fdde193be
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);
}