churf
2023-08-10 6125e850667ea723fbd888f592e0a81da2a89dd2
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/repository/UserLevelWageRepository.java
@@ -18,6 +18,7 @@
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
@@ -27,4 +28,9 @@
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);
}