yaozc
2024-05-30 9944a50bd2d84930a4cf71872ae38207788c311d
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/repository/UserLevelWageRepository.java
@@ -59,4 +59,8 @@
   @Query(value = "SELECT * from new_user_level_wage WHERE user_id = ?1 AND `year_month` >= ?2 ORDER BY `year_month` DESC LIMIT 1",nativeQuery = true)
   UserLevelWage findByUserIdAndYesWorker(Long userId, String yearMonth);
   /** 查询今年日期最大的记录 */
   @Query(value = "SELECT * from new_user_level_wage WHERE user_id = ?1 AND `year_month` < ?2 ORDER BY `year_month` DESC LIMIT 1",nativeQuery = true)
   UserLevelWage findByUserIdAndMaxDate(Long userId, String yearMonth);
}