package com.ssj.service.sys.situation.service.impl;

import com.ssj.bean.sys.situation.domain.LearningSituationSuggest;
import com.ssj.dao.sys.situation.dao.SituationSuggestDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.situation.service.LearningSituationSuggestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LearningSituationSuggestServiceImpl extends BaseServiceImpl<LearningSituationSuggest, String> implements LearningSituationSuggestService {

    @Autowired
    private SituationSuggestDao dao;

    @Override
    public PagingAndSortingRepository<LearningSituationSuggest, String> getDao() {
        return dao;
    }

    @Override
    public LearningSituationSuggest findStandardAndSuggest(String courseName, int type, String module, String grade, int score) {
        return dao.findStandardAndSuggest(courseName, type, module, grade, score);
    }
}
