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

import com.YuyeTech.HeartRate.game.otaInfo.projo.OtaInfo;
import com.YuyeTech.HeartRate.game.otaInfo.repository.OtaInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:slambb
 * @date:2020/1/10
 */
@Service
public class OtaInfoServiceImpl implements OtaInfoService {
    @Autowired
    private OtaInfoRepository otaInfoRepository;

    @Override
    public OtaInfo findOTAByBLETypeAndStatus(Integer bleType, Integer otaStatus) {
        return otaInfoRepository.findByBleTypeAndOtaStatus(bleType,otaStatus).orElse(null);
    }
}
