eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelWageRepository.java
@@ -34,4 +34,12 @@ */ @Query(value = "SELECT * FROM sys_user_level_wage WHERE user_id = ?1 ORDER BY start_date DESC, create_time DESC LIMIT 1", nativeQuery = true) SysUserLevelWage findLastByUserId(Long userId); /** * 根据级别查询 * @param ids / * @return / */ @Query(value = "SELECT count(1) FROM sys_user_level_wage WHERE level_id IN ?1", nativeQuery = true) int countByLevels(Long[] ids); }