赵士淞
2022-12-28 60e1e68b256e7450bfcdec75c33fc0cf997b4de2
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);
}