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

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.kmt.kmt.domain.KmtExerciseQuestionRollback;
import com.ssj.dao.kmt.kmt.dao.KmtExerciseQuestionRollbackDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.kmt.service.KmtExerciseQuestionRollbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service(version ="1.0")
public class KmtExerciseQuestionRollbackImpl extends BaseServiceImpl<KmtExerciseQuestionRollback, String> implements KmtExerciseQuestionRollbackService {
    @Autowired
    private KmtExerciseQuestionRollbackDao questionRollbackDao;

    @Override
    public PagingAndSortingRepository<KmtExerciseQuestionRollback, String> getDao() {
        return questionRollbackDao;
    }

    public List<KmtExerciseQuestionRollback> findAllTouserId(){
        return questionRollbackDao.findAllTouserId();
    }


}
