package com.YuyeTech.HeartRate.game.otaInfo.repository;

import com.YuyeTech.HeartRate.game.otaInfo.projo.OtaInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author:slambb
 * @date:2020/12/18
 */
public interface OtaInfoRepository extends JpaRepository<OtaInfo,Integer> {
    /**
     * 根据设备类型和状态下载
     * @param bleType
     * @param otaStatus
     * @return
     */
    Optional<OtaInfo> findByBleTypeAndOtaStatus(Integer bleType,Integer otaStatus);
}
