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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seer.teach.teacher.module.entity.TreasuryBoxArticleAudioWordsEntity;
import com.seer.teach.teacher.module.entity.TreasuryBoxArticleAudiosEntity;
import com.seer.teach.teacher.module.mapper.TreasuryBoxArticleAudioWordsMapper;
import com.seer.teach.teacher.service.TreasuryBoxArticleAudioWordsService;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Wang
 * @since 2025-08-07 16:23:39
 */
@Service
public class TreasuryBoxArticleAudioWordsServiceImpl extends ServiceImpl<TreasuryBoxArticleAudioWordsMapper, TreasuryBoxArticleAudioWordsEntity> implements TreasuryBoxArticleAudioWordsService {

    @Override
    public List<TreasuryBoxArticleAudioWordsEntity> getTreasuryBoxArticleAudioWords(List<Integer> audioIds) {
        return this.lambdaQuery()
                .in(TreasuryBoxArticleAudioWordsEntity::getAudioId,audioIds)
                .list();
    }
}
