| | |
| | | import me.zhengjie.modules.system.domain.SysCompany; |
| | | import me.zhengjie.modules.treatment.domain.CmnInsurance; |
| | | |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | import me.zhengjie.modules.treatment.domain.UserInsurance; |
| | | 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 CmnInsuranceRepository extends JpaRepository<CmnInsurance, Long>, JpaSpecificationExecutor<CmnInsurance> { |
| | | |
| | | Optional<CmnInsurance> findByCompany(SysCompany company); |
| | | |
| | | @Query(value = "SELECT * FROM `new_cmn_insurance` WHERE id in (?1)",nativeQuery = true) |
| | | List<CmnInsurance> findByIds(Long[] ids); |
| | | } |