package com.ssj.service.sys.parent.service;
import com.ssj.bean.sys.parent.domain.SSJPeiyouBook;
import com.ssj.framework.core.common.service.BaseService;
import com.ssj.service.conch.parents.dto.GetPeiyouBookUnitDto;
import com.ssj.service.conch.parents.dto.GetSecondUnitInfoDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

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

public interface SSJPeiyouBookService extends BaseService<SSJPeiyouBook, String> {

    List<String> findGroupByBookName(String courseName, String grade);

    /**
     * 分页查询列表
     * @param params
     * @param sp
     * @return
     */
    Page<SSJPeiyouBook> findByPage(Map<String, Object> params, Pageable sp);

    List<GetPeiyouBookUnitDto> findUnitBySelective(String grade, String courseName, String bookName);

    List<GetSecondUnitInfoDto> findSecondUnitBySelective(String grade, String courseName, String bookName, String unit);

    List<SSJPeiyouBook> findBookPathBySelective(String grade, String courseName, String bookName, String unit, String secondUnit);
}
