| | |
| | | package me.zhengjie.modules.treatment.repository; |
| | | |
| | | import me.zhengjie.modules.treatment.domain.CmnLevel; |
| | | import me.zhengjie.modules.treatment.domain.MeritLevel; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | |
| | | * @date 2023-05-07 |
| | | **/ |
| | | public interface CmnLevelRepository extends JpaRepository<CmnLevel, Long>, JpaSpecificationExecutor<CmnLevel> { |
| | | |
| | | @Query(value = "SELECT * FROM `new_cmn_level` WHERE job_id = ? ORDER BY basic_wage ASC", nativeQuery = true) |
| | | List<CmnLevel> findByJobId(Long jobId); |
| | | |
| | | @Query(value = "SELECT * FROM `new_cmn_level` WHERE id in (?1)", nativeQuery = true) |
| | | List<CmnLevel> findByIds(Long[] ids); |
| | | |
| | | } |