churf
2023-09-18 4b4e1b54cae72088fa60978e0192fe57f986e6f3
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/repository/UserLevelWageRepository.java
@@ -21,6 +21,8 @@
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* @website https://eladmin.vip
* @author 姚增春
@@ -29,4 +31,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)
   List<Double> findPerformanceCoefficientByUserId(Long userId);
}