赵士淞
2022-12-22 4b8e9bf4c873ed3d90b240c45af06410e0fd0b4a
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);
}