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

import com.ssj.bean.sys.homework.domain.HomeworkPictureCorrect;
import com.ssj.dao.sys.homework.dao.HomeworkPictureCorrectDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.homework.service.HomeworkPictureCorrectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * @author sh
 * @className HomeworkPictureCorrectServiceImpl
 * @description TODO
 * @date 2020/7/14
 */
@Service
@Transactional
public class HomeworkPictureCorrectServiceImpl extends BaseServiceImpl<HomeworkPictureCorrect, String> implements HomeworkPictureCorrectService {

    @Autowired
    private HomeworkPictureCorrectDao dao;

    @Override
    public PagingAndSortingRepository<HomeworkPictureCorrect, String> getDao() {
        return null;
    }

    @Override
    public HomeworkPictureCorrect findByHomeworkPictureIdAndType(String homeworkPictureId, int type) {
        return dao.findTopByHomeworkPictureIdAndType(homeworkPictureId, type);
    }
}
