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

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.sys.homework.domain.HomeworkPictureVagueRecord;
import com.ssj.dao.sys.homework.dao.HomeworkPictureVagueRecordDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.homework.service.HomeworkPictureVagueRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(version="1.0")
@Transactional
public class HomeworkPictureVagueRecordServiceImpl extends BaseServiceImpl<HomeworkPictureVagueRecord, String> implements HomeworkPictureVagueRecordService {
    @Autowired
    private HomeworkPictureVagueRecordDao dao;

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

    @Override
    public List<HomeworkPictureVagueRecord> findByHomeworkPictureId(String homeworkPictureId) {
        return dao.findByHomeworkPictureId(homeworkPictureId);
    }
}
