weicd
2024-12-27 0766c42639d0e9b12d8dc2f93589b4713ced57a6
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/repository/SysUserLevelOtherRepository.java
@@ -76,7 +76,7 @@
     * @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);
}