| | |
| | | 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; |
| | |
| | | |
| | | @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); |
| | | } |