BAOLH
2026-11-10 c5dfc09145e4e10f99dbf388a4a1433b5c2973e5
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java
@@ -73,10 +73,9 @@
     * 查询级别其他(新)
     * @param userId
     * @param targetDate
     * @param nextYear
     * @return
     */
    @Query(value = "SELECT * FROM sys_user_level_other WHERE user_id = ?1 AND `year_month` >= ?2 AND `year_month` < ?3  ORDER BY `year_month` DESC LIMIT 1", nativeQuery = true)
    SysUserLevelOther findByUserIdAndData(Long userId, String targetDate, String nextYear);
    @Query(value = "SELECT * FROM sys_user_level_other WHERE user_id = ?1 AND `year_month` <= ?2 ORDER BY `year_month` DESC LIMIT 1", nativeQuery = true)
    SysUserLevelOther findByUserIdAndData(Long userId, String targetDate);
}