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.LiveTranscodeJobDao;
import com.platform.modules.live.entity.LiveTranscodeJobEntity;
import com.platform.modules.live.service.LiveTranscodeJobService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author MXY
 * 2020/1/6 17:37
 */
@Service
public class LiveTranscodeJobServiceImpl extends ServiceImpl<LiveTranscodeJobDao, LiveTranscodeJobEntity> implements LiveTranscodeJobService {

    @Override
    public List<LiveTranscodeJobEntity> getByTaskId(String taskId) {
        EntityWrapper<LiveTranscodeJobEntity> wrapper = new EntityWrapper<>();
        wrapper.eq("transcode_task_id", taskId);
        return this.selectList(wrapper);
    }
}
