package com.yihu.jw.base.dao.equipment;

import com.yihu.jw.entity.equipment.BaseHospitalEquipmentDO;
import com.yihu.jw.entity.equipment.WlyyUserAreaDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface BaseHospitalEquipmentDao extends PagingAndSortingRepository<BaseHospitalEquipmentDO, String>, JpaSpecificationExecutor<BaseHospitalEquipmentDO> {

    @Query("select id from BaseHospitalEquipmentDO where code = ?1 ")
    BaseHospitalEquipmentDO findAllByCode(String code);
}
