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

import com.ssj.bean.sys.homework.domain.NoHomeworkRecord;
import com.ssj.bean.weixin.libmy.domain.LibVip;
import com.ssj.framework.core.common.service.BaseService;

import java.util.Date;
import java.util.List;

public interface NoHomeworkRecordService extends BaseService<NoHomeworkRecord, String> {

    /**
     * 查询今日的无作业记录
     * @param vipId
     * @param courseName
     * @return
     */
    List<NoHomeworkRecord> findTodayRecord (String vipId, String courseName);

    /**
     * 查询某一天的homeworkrecord记录
     * @param vipId
     * @param courseName
     * @param date
     * @return
     */
    NoHomeworkRecord findDateRecord(String vipId, String courseName, Date date);

    /**
     * 查询今日的无作业记录
     * @param vipId
     * @return
     */
    List<NoHomeworkRecord> findTodayRecord (String vipId);

    /**
     * 保存今日
     * @param libVip
     * @param courseName
     * @return
     */
    NoHomeworkRecord saveTodayNoHomeworkRecord (LibVip libVip, String courseName, int type, int deviceType, String homeworkId);

    /**
     * 查询某个学生某天的作业记录
     * @param vipId
     * @param date 日期
     * @return
     */
    List<NoHomeworkRecord> findDateRecordByVipId (String vipId, Date date);


    /**
     * 查询某一天某科目的record记录
     * @param vipId
     * @param courseName
     * @param dateTime
     * @return
     */
    NoHomeworkRecord findRecordByVipIdAndSubjectAndDate (String vipId, String courseName, Date dateTime);

    /**
     * 查询一段时间的record记录
     * @param vipId
     * @param courseName
     * @param beginTime
     * @param endTime
     * @return
     */
    List<NoHomeworkRecord> findRecordByVipIdAndSubjectAndBeginTimeAndEndTime (String vipId, String courseName, String beginTime, String endTime);
}
