| | |
| | | */ |
| | | package me.zhengjie.modules.treatment.repository; |
| | | |
| | | import me.zhengjie.modules.system.domain.SysUserLevelWage; |
| | | import me.zhengjie.modules.treatment.domain.UserInsurance; |
| | | import cn.hutool.core.lang.Opt;
|
| | | 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 AND `year_month` < ?2 ORDER BY `year_month` DESC LIMIT 1",nativeQuery = true) |
| | | UserLevelWage findByUserIdAndMaxDate(Long userId, String yearMonth); |
| | | |
| | | } |