package com.ssj.service.sys.wrongbook.service;

import com.ssj.bean.sys.wrongbook.domain.HomeworkWrongQuestion;
import com.ssj.bean.weixin.libmy.domain.LibVip;
import com.ssj.framework.core.common.service.BaseService;
import com.ssj.service.conch.conch.vo.WrongQuestionRecordsVO;

import java.util.List;

public interface WrongBookService extends BaseService<HomeworkWrongQuestion, String> {
    /**
     * 通过作业原图ids查询错题
     * @param homeworkPictureIdList
     * @return
     */
    List<HomeworkWrongQuestion> findByHomeworkPictureIdIn(List<String> homeworkPictureIdList);

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

    /**
     * 插入一个错题到错题本
     * @param filePath
     */
    void addWrongQuestion(String filePath, LibVip vip);

    /**
     * 根据设备号查询错题记录（贝壳上传的作业批改后发现的错题）
     */
    List<WrongQuestionRecordsVO> findByDerver(String derver);
}
