package com.YuyeTech.HeartRate.service.impl;

import com.YuyeTech.HeartRate.dataobject.VersionInfo;
import com.YuyeTech.HeartRate.repository.VersionInfoRepository;
import com.YuyeTech.HeartRate.service.VersionInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:slambb
 * @date:2020/1/10
 */
@Service
public class VersionInfoServiceImpl implements VersionInfoService {
    @Autowired
    private VersionInfoRepository versionInfoRepository;

    @Override
    public VersionInfo findByVersionStatus(Integer versionStatus) {
        return versionInfoRepository.findByVersionStatus(versionStatus).orElse(null);
    }
}
