package com.hxhq.business.mapper;

import com.hxhq.business.domain.StudySubject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxhq.business.dto.study.StudyListDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验-学科Mapper接口
 *
 * @author hxhq
 * @date 2025-12-29
 */
public interface StudySubjectMapper extends BaseMapper<StudySubject>
{
    /**
     * 查询所有的学科信息
     * @return
     */
    List<StudySubject> selectAllSubject();

    /**
     * 获取学科下的填报表单数量
     * @param idList
     * @return
     */
    List<StudyListDto> queryFormCountList(@Param("idList") List<Long> idList);

    /**
     * 获取学科下的预填表单数量
     * @param idList
     * @return
     */
    List<StudyListDto> queryPreFormCountList(@Param("idList") List<Long> idList);
}
