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

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.wrongbook.domain.HomeworkWrongQuestion;

@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);
}
