package com.platform.modules.live.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.platform.modules.live.dao.LiveTranscodeInfoDao;
import com.platform.modules.live.entity.LiveTranscodeInfoEntity;
import com.platform.modules.live.service.LiveTranscodeInfoService;
import org.springframework.stereotype.Service;

/**
 * @author MXY
 * 2020/1/6 17:36
 */
@Service
public class LiveTranscodeInfoServiceImpl extends ServiceImpl<LiveTranscodeInfoDao, LiveTranscodeInfoEntity> implements LiveTranscodeInfoService {

    @Override
    public LiveTranscodeInfoEntity getByVideoId(String videoId) {

        EntityWrapper<LiveTranscodeInfoEntity> wrapper = new EntityWrapper<>();
        wrapper.eq("video_id", videoId);
        return this.selectOne(wrapper);
    }
}
