weicd
2024-01-04 eaf14dd28b5c95a08d433c6b6ccb5d2c0de2a2d4
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);
}