package com.ssj.dao.sys.homework.dao;

import com.ssj.bean.sys.homework.domain.SconTeacherCorrectRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SconTeacherCorrectRecordDao extends JpaRepository<SconTeacherCorrectRecord, String> {

    @Query(nativeQuery = true, value = "select * from scon_teacher_correct_record where homework_picture_id = ?1 order by create_time limit 1")
    SconTeacherCorrectRecord findByHomeworkPictureId(String homeworkPictureId);
}
