package com.ssj.service.kmt.service.impl;


import com.ssj.bean.kmt.kmt.domain.KmtExerciseQuestion;
import com.ssj.dao.kmt.kmt.dao.KmtExerciseQuestionDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.kmt.service.KmtExerciseQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Transactional
@Service
public class KmtExerciseQuestionServiceImpl extends BaseServiceImpl<KmtExerciseQuestion, String> implements KmtExerciseQuestionService {

    @Autowired
    private KmtExerciseQuestionDao kmtExerciseQuestionDao;

    @Override
    public PagingAndSortingRepository<KmtExerciseQuestion, String> getDao() {
        return kmtExerciseQuestionDao;
    }

    @Override
    public List<KmtExerciseQuestion> findByIdIn(ArrayList<String> wrongQuestionIdList) {
        return kmtExerciseQuestionDao.findByIdIn(wrongQuestionIdList);
    }
}
