package com.ruoyi.syzy.mapper;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson2.JSONObject;
import org.apache.ibatis.annotations.Param;

import com.ruoyi.syzy.domain.BBusiWishUniversitySubmits;

/**
 * 志愿院校录取分数线Mapper接口
 *
 * @author mingxue
 * @date 2021-08-20
 */
public interface BBusiWishUniversitySubmitsMapper {
    /**
     * 层次
     *
     * @param location
     * @return
     */
    public List<JSONObject> query(@Param("sql") String sql);
    /**
     * 层次
     *
     * @param location
     * @return
     */
    public List<String> levels(@Param("location") String location,@Param("year") Integer year);

    /**
     * 科类
     *
     * @param location
     * @return
     */
    public List<String> types(@Param("location") String location,@Param("year") Integer year);

    /**
     * 录取年份
     *
     * @param location
     * @param type
     * @param level
     * @return
     */
    public List<String> years(@Param("location") String location, @Param("type") String type, @Param("level") String level);
    public List<String> yearsStatus(@Param("location") String location, @Param("type") String type, @Param("level") String level);

    /**
     * 查询志愿院校录取分数线
     *
     * @param id 志愿院校录取分数线ID
     * @return 志愿院校录取分数线
     */
    public BBusiWishUniversitySubmits selectBBusiWishUniversitySubmitsById(Long id);
    public List<BBusiWishUniversitySubmits> selectBBusiWishUniversitySubmitsByCond(Map cond);

    /**
     * 查询志愿院校录取分数线列表
     *
     * @param bBusiWishUniversitySubmits 志愿院校录取分数线
     * @return 志愿院校录取分数线集合
     */
    public List<BBusiWishUniversitySubmits> selectBBusiWishUniversitySubmitsList(BBusiWishUniversitySubmits bBusiWishUniversitySubmits);

    /**
     * 查询志愿院校录取分数线列表
     *
     * @param params
     * @return
     */
    public List<BBusiWishUniversitySubmits> search(Map<String, Object> params);

    /**
     * 新增志愿院校录取分数线
     *
     * @param bBusiWishUniversitySubmits 志愿院校录取分数线
     * @return 结果
     */
    public int insertBBusiWishUniversitySubmits(BBusiWishUniversitySubmits bBusiWishUniversitySubmits);

    /**
     * 修改志愿院校录取分数线
     *
     * @param bBusiWishUniversitySubmits 志愿院校录取分数线
     * @return 结果
     */
    public int updateBBusiWishUniversitySubmits(BBusiWishUniversitySubmits bBusiWishUniversitySubmits);

    /**
     * 删除志愿院校录取分数线
     *
     * @param id 志愿院校录取分数线ID
     * @return 结果
     */
    public int deleteBBusiWishUniversitySubmitsById(Long id);

    /**
     * 批量删除志愿院校录取分数线
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteBBusiWishUniversitySubmitsByIds(Long[] ids);

}
