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

import com.alibaba.dubbo.config.annotation.Service;
import com.ssj.bean.sys.homework.domain.*;
import com.ssj.dao.sys.homework.dao.SconTeacherCorrectRecordDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.homework.service.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

@Service(version="1.0")
@Transactional
public class SconTeacherCorrectRecordServiceImpl extends BaseServiceImpl<SconTeacherCorrectRecord, String> implements SconTeacherCorrectRecordService {

    private   Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private SconTeacherCorrectRecordDao sconTeacherCorrectRecordDao;

    @Override
    public PagingAndSortingRepository<SconTeacherCorrectRecord, String> getDao() {
        return sconTeacherCorrectRecordDao;
    }

    @Override
    public SconTeacherCorrectRecord findByHomeworkPictureId(String homeworkPictureId) {
        return sconTeacherCorrectRecordDao.findByHomeworkPictureId(homeworkPictureId);
    }
}
