package com.ssj.service.sys.opentest;

import com.ssj.bean.sys.opentest.OpenTestUnit;
import com.ssj.framework.core.common.service.BaseService;

import java.util.List;

/**
 * @author Mount Liu
 * @date 2020/5/15
 */
public interface OpenTestUnitService extends BaseService<OpenTestUnit, String> {
    /**
     * 查找单元
     *
     * @param isAll
     * @param type
     * @return
     */
    List<OpenTestUnit> findUnit(boolean isAll, int type);

    /**
     * 查找单元
     * @param grade
     * @param subject
     * @param versionName
     * @param unit
     * @return
     */
    List<OpenTestUnit> findUnit(String grade, String subject, String versionName, String unit);

    List<OpenTestUnit> findUnit(String grade, String subject, String versionName, String unit, String semester, int type);

    List<OpenTestUnit> findUnit(String grade, String subject, String versionName, String unit, String semester, int type, int isValid);

}
