package com.ssj.service.sys.opentest;

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

import java.util.List;

/**
 * @author Mount Liu
 * @date 2020/2/11
 */
public interface OpenTestModuleResultService extends BaseService<OpenTestModuleResult, String> {


    /**
     * @param resultId
     * @return
     */
    List<OpenTestModuleResult> findByResultId(String resultId);

    /**
     * 计算同一份试卷同一个知识点的平均正确率
     * @param name
     * @param subject
     * @param grade
     * @param version
     * @return
     */
    Double findAvgAccuracyRate(String name, String subject, String grade, String version);
}
