package com.seer.teach.teacher.service.impl;

import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seer.teach.teacher.module.entity.BookChapterAudioWordsEntity;
import com.seer.teach.teacher.module.mapper.BookChapterAudioWordsMapper;
import com.seer.teach.teacher.service.BookChapterAudioWordsService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Wang
 * @since 2025-08-03 15:27:10
 */
@Service
public class BookChapterAudioWordsServiceImpl extends ServiceImpl<BookChapterAudioWordsMapper, BookChapterAudioWordsEntity> implements BookChapterAudioWordsService {

    @Override
    public List<BookChapterAudioWordsEntity> getWordItemsByAudioId(List<Integer> ids) {
        return list(new LambdaQueryWrapper<BookChapterAudioWordsEntity>()
                .in(BookChapterAudioWordsEntity::getAudioId, ids));
    }
}