package com.ssj.dao.sys.problem.dao;

import com.ssj.service.conch.parents.request.version4.ProblemKnowHowReq;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface ProblemPictureQueryDao {
	
	public Page<Map<String, Object>> findByProblemListByParent(Map<String, Object> searchParams, Pageable pageable);

	/**
	 * 查询某个线上老师今天的难题答疑列表
	 * @param teacherId
	 * @param beginTime
	 * @return
	 */
	public List<Map<String, Object>> findProblemByTeacher(String teacherId, String beginTime);

	/**
	 * 查询家长端难题列表
	 * @param searchParams
	 * @param pageable
	 * @return
	 */
	Page<Map<String, Object>> findProblemListOfParent(Map<String, Object> searchParams, Pageable pageable);

	/**
	 * 查询家长端难题列表，不分页
	 * @param searchParams
	 * @return
	 */
	List<Map<String, Object>> findProblemListOfParent(Map<String, Object> searchParams);

	/**
	 * 查询家长端难题知识点
	 * @param request
	 * @return
	 */
	public List<Map<String, Object>> findKownHowOfParent(ProblemKnowHowReq request);

	/**
	 * 查询历史未解答的难题
	 * @param teacherId
	 * @param endTime
	 * @return
	 */
	List<Map<String, Object>> findHistoryNotFeedbackProblem (String teacherId, String endTime);
}
