package com.qmth.teachcloud.report.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qmth.teachcloud.report.business.bean.result.TBPaperStructResult;
import com.qmth.teachcloud.report.business.entity.TBPaperStruct;
import com.qmth.teachcloud.report.business.mapper.TBPaperStructMapper;
import com.qmth.teachcloud.report.business.service.TBPaperStructService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 试卷结构表 服务实现类
 * </p>
 *
 * @author wangliang
 * @since 2021-06-01
 */
@Service
public class TBPaperStructServiceImpl extends ServiceImpl<TBPaperStructMapper, TBPaperStruct> implements TBPaperStructService {

    @Resource
    TBPaperStructMapper tbPaperStructMapper;

    /**
     * 查找试卷结构
     *
     * @param examId
     * @param courseCode
     * @return
     */
    @Override
    public List<TBPaperStructResult> findQuestionInfo(Long examId, String courseCode) {
        return tbPaperStructMapper.findQuestionInfo(examId, courseCode);
    }

    @Override
    public List<TBPaperStructResult> findQuestionInfoByTeacherCollege(Long examId, String courseCode, Long inspectCollegeId, Long teacherId) {
        return tbPaperStructMapper.findQuestionInfoByTeacherCollege(examId, courseCode,inspectCollegeId,teacherId);
    }
}
