package com.YuyeTech.TPlat.service.impl;

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