package com.ssj.dao.sys.wrongbook.dao;

import com.ssj.bean.sys.wrongbook.domain.HomeworkWrongQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WrongBookDao extends JpaRepository<HomeworkWrongQuestion, String> {

    /**
     * 通过作业原图ids查询错题
     * @param homeworkPictureIdList
     * @return
     */
    List<HomeworkWrongQuestion> findByHomeworkPictureIdIn(List<String> homeworkPictureIdList);

    /**
     * 通过作业id查询错题
     * @param workId
     * @return
     */
    List<HomeworkWrongQuestion> findByHomeworkId(String workId);
}
