package cn.iocoder.yudao.module.jx.mapper;

import cn.iocoder.yudao.module.jx.domain.DriveSchoolDeduct;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 提成配置Mapper接口
 *
 * @author ruoyi
 * @date 2024-05-07
 */
@Mapper
public interface DriveSchoolDeductMapper
{
    /**
     * 查询提成配置
     *
     * @param id 提成配置主键
     * @return 提成配置
     */
    public DriveSchoolDeduct selectDriveSchoolDeductById(Long id);

    /**
     * 查询提成配置列表
     *
     * @param driveSchoolDeduct 提成配置
     * @return 提成配置集合
     */
    public IPage<DriveSchoolDeduct> selectDriveSchoolDeductList(@Param("entity") DriveSchoolDeduct driveSchoolDeduct, Page<DriveSchoolDeduct> page);
    public List<DriveSchoolDeduct> selectDriveSchoolDeductListAll(@Param("entity") DriveSchoolDeduct driveSchoolDeduct);

    /**
     * 新增提成配置
     *
     * @param driveSchoolDeduct 提成配置
     * @return 结果
     */
    public int insertDriveSchoolDeduct(DriveSchoolDeduct driveSchoolDeduct);

    /**
     * 修改提成配置
     *
     * @param driveSchoolDeduct 提成配置
     * @return 结果
     */
    public int updateDriveSchoolDeduct(DriveSchoolDeduct driveSchoolDeduct);

    /**
     * 删除提成配置
     *
     * @param id 提成配置主键
     * @return 结果
     */
    public int deleteDriveSchoolDeductById(Long id);

    /**
     * 批量删除提成配置
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDriveSchoolDeductByIds(Long[] ids);

    DriveSchoolDeduct selectByCondition(@Param("deptId") Long deptId, @Param("courseSubject") String courseSubject);
}
