package com.ssj.service.kmt.service;


import java.util.Map;


import com.ssj.bean.kmt.kmt.domain.KmtExampaperArea;
import com.ssj.framework.core.common.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;


public interface IKmtExampaperAreaService extends BaseService<KmtExampaperArea, String> {


	Page<KmtExampaperArea> findByPage(Map<String, Object> params, Pageable initPage);

	public List<KmtExampaperArea> findByCourseNameAndGrad(String courseName, String grad);

	KmtExampaperArea findBeanByAnyThings(String year, String city, String area, String school, Integer semester,
                                         Integer type, String subject, String grade, String addStr, String id);

	KmtExampaperArea findBeanByAnyThings(String year, String city, String area, String school, Integer semester,
                                         Integer type, String subject, String grade, String addStr);
	
	KmtExampaperArea findByCourseNameAndGradAndArea(String year, String area, String semester,
                                                    Integer type, String subject, String grade);
	KmtExampaperArea findByCourseNameAndGradAndArea(String year, String area, String semester,
                                                    Integer type, String subject, String grade, String areaId);
	KmtExampaperArea findByCourseNameAndGradAndArea(String year, String area, String semester,
                                                    Integer type, String subject, String grade, List<String> ids);

	/**
	 * 通过题目id查询题目的试卷出处
	 * @param questionId
	 * @return
	 */
	KmtExampaperArea findAreaByQuestionId(String questionId);
}
