package com.ssj.dao.conch.schoolmaster.dao;

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

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.ssj.bean.weixin.libmy.domain.TbLibManager;

public interface ISchoolQueryDao {
	
	
	Page<Map<String, Object>> findByPage(Map<String, Object> params, Pageable pageable);


	Page<Map<String, Object>> findStudentPage (Map<String, Object> params, Pageable pageable);

	/**
	 * 校长端搜索的学生列表
	 * @param params name-搜索关键字 masterId-校长id
	 * @return
	 */
	List<String> findSearchStudents(Map<String, Object> params);

	/**
	 * 合作馆查作业吧的所有学生
	 * @param params
	 * @param pageable
	 * @return
	 */
	Page<Map<String, Object>> findStudentPageTest(Map<String, Object> params, Pageable pageable);

	/**
	 * 搜索合作馆作业吧的所有学生
	 * @param params libIdStr-馆ids，拼接好的in语句  services-服务代码‘S003’  name-搜索关键字
	 * @return
	 */
	List<String> findSearchStudentsTest(Map<String, Object> params);

	Page<Map<String, Object>> findTeacherPage (Map<String, Object> params, Pageable pageable);

	/**
	 * 查询学生订单
	 * @param masterId
	 * @param vipId
	 * @return
	 */
	List<Map<String, Object>> findStudentOrderList (String masterId, String vipId);

	/**
	 *  查询校长的一对一老师
	 * @param masterId
	 * @return
	 */
	List<Map<String, Object>> getMaster121TeacherId (String masterId);

	/**
	 * 查询系统匹配老师
	 * @return
	 */
	List<TbLibManager> querySystemMatchTeacher (Map<String, Object> param);

	/**
	 * 查询机构老师
	 * @param param
	 * @return
	 */
	List<Map<String, Object>> queryOrgTeacher (Map<String, Object> param);
}