package com.ssj.service.kmt.service;

import com.ssj.bean.kmt.kmt.domain.KmtExerciseBookTeacherRecord;
import com.ssj.framework.core.common.service.BaseService;

import java.util.List;

/**
 * @Author: chchen
 * @Description
 * @Date Create in 10:55 2020/5/21
 * @Modified By
 */
public interface KmtExerciseTeacherRecordService extends BaseService<KmtExerciseBookTeacherRecord, String> {

    /**
     * 查询最新的分配记录
     * @param exerciseBookId
     * @param type
     * @return
     */
    KmtExerciseBookTeacherRecord findByExerciseBookIdAndAuthorityType (String exerciseBookId, int type);

    /**
     * 查询最新的分配记录
     *
     * @param exerciseBookId 练习册id
     *
     * @return 分配记录list
     */
    List<KmtExerciseBookTeacherRecord> findByExerciseBookId(String exerciseBookId);
}
