package com.YuyeTech.TPlat.repository;

import com.YuyeTech.TPlat.dataobject.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);
}
