package com.ruoyi.mall.mapper;

import java.util.List;
import com.ruoyi.mall.domain.MallTestSchool;
import com.ruoyi.mall.domain.Vo.TextSchoolVO;
import org.apache.ibatis.annotations.Param;

/**
 * 校考院校Mapper接口
 *
 * @author ruoyi
 * @date 2023-11-01
 */
public interface MallTestSchoolMapper
{
    /**
     * 查询校考院校
     *
     * @param testSchoolId 校考院校主键
     * @return 校考院校
     */
    public MallTestSchool selectMallTestSchoolByTestSchoolId(Long testSchoolId);

    /**
     * 查询校考院校列表
     *
     * @param mallTestSchool 校考院校
     * @return 校考院校集合
     */
    public List<MallTestSchool> selectMallTestSchoolList(MallTestSchool mallTestSchool);

    /**
     * 新增校考院校
     *
     * @param mallTestSchool 校考院校
     * @return 结果
     */
    public int insertMallTestSchool(MallTestSchool mallTestSchool);

    /**
     * 修改校考院校
     *
     * @param mallTestSchool 校考院校
     * @return 结果
     */
    public int updateMallTestSchool(MallTestSchool mallTestSchool);

    /**
     * 删除校考院校
     *
     * @param testSchoolId 校考院校主键
     * @return 结果
     */
    public int deleteMallTestSchoolByTestSchoolId(Long testSchoolId);

    /**
     * 批量删除校考院校
     *
     * @param testSchoolIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMallTestSchoolByTestSchoolIds(Long[] testSchoolIds);

    /**
     * 校考院校
     * @param searchValue 搜索词
     * @param acceptYear 年份
     * @param majorId 专业id
     * @return 结果
     */
    public List<TextSchoolVO> selectTestSchoolList(@Param("searchValue")String searchValue,
                                                   @Param("acceptYear")String acceptYear,
                                                   @Param("majorId")Integer majorId);
}
