weicd
2023-12-26 8e93956ece3b93ecd84afc704c8dc4c0608ce597
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/repository/UserLevelWageRepository.java
@@ -55,4 +55,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);
}