| | |
| | | import me.zhengjie.modules.treatment.domain.UserLevelWage; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | |
| | | public interface UserLevelWageRepository extends JpaRepository<UserLevelWage, Long>, JpaSpecificationExecutor<UserLevelWage> { |
| | | |
| | | UserLevelWage findByUserIdAndYearMonth(Long userId, String yearMonth); |
| | | |
| | | @Query(value = "(select performance_coefficient from new_user_level_wage where user_id = ?1) order by `year_month` DESC",nativeQuery = true) |
| | | Double findPerformanceCoefficientByUserId(Long userId); |
| | | |
| | | |
| | | } |