package com.ssj.service.sys.homework.service;

import com.ssj.bean.sys.homework.domain.Homework;
import com.ssj.framework.core.common.service.BaseService;
import com.ssj.service.conch.parents.v1.dto.CorrectDetailDto4;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.Map;

/**
 * @author sh
 * @className HomeworkService
 * @description TODO
 * @date 2020/7/14
 */
public interface HomeworkService extends BaseService<Homework, String> {
    /**
     * 分页查询作业列表
     * @param searchParam
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findHomeworkByPage(Map<String, Object> searchParam, Pageable pageable);

    CorrectDetailDto4 getRedisCorrectDetail(String vipId, String subject, Date beginTime);

    Homework findDateSubjectHomework(String vipId, String subject, Date beginTime);

    CorrectDetailDto4 getCorrectDetailDto4(Homework homework);
}
