weicd
2023-11-28 fd7ee4d47858ce5a392dfc203ca21fa0aca2fee7
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/repository/UserLevelWageRepository.java
@@ -16,6 +16,7 @@
package me.zhengjie.modules.treatment.repository;
import me.zhengjie.modules.system.domain.SysUserLevelWage;
import me.zhengjie.modules.treatment.domain.UserInsurance;
import me.zhengjie.modules.treatment.domain.UserLevelWage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
@@ -38,4 +39,7 @@
   @Query(value = "(select * from new_user_level_wage where user_id = ?1) order by `year_month` DESC",nativeQuery = true)
   List<UserLevelWage> findUserLevelWageByUserId(Long userId);
   @Query(value = "SELECT * from new_user_level_wage WHERE user_id = ?1 AND `year_month` = ?2 ORDER BY create_time DESC LIMIT 1",nativeQuery = true)
   UserLevelWage findbyUserIdAndDate(Long userId, String yearMonth);
}