package com.qmth.distributed.print.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.distributed.print.business.bean.dto.open.PaperDimension;
import com.qmth.distributed.print.business.bean.result.analyze.GradePaperDimensionResult;
import com.qmth.distributed.print.business.entity.GradePaperDimension;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分析-考察点维度表 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2022-05-20
 */
public interface GradePaperDimensionMapper extends BaseMapper<GradePaperDimension> {

    /**
     * 查询分析参数维度列表
     * @param paperNumber 试卷编号
     * @param paperType 试卷类型
     * @param schoolId 学校id
     * @return 分析试卷维度列表
     */
    List<GradePaperDimensionResult> findGradePaperDimensionList(@Param("paperNumber") String paperNumber,@Param("paperType") String paperType,@Param("schoolId") Long schoolId);

    List<PaperDimension> findBySchoolIdAndPaperNumberAndPaperType(@Param("schoolId") Long schoolId, @Param("paperNumber") String paperNumber, @Param("paperType") String paperType);


}
