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

import cn.iocoder.yudao.module.jx.domain.DriveSchoolDeduct;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

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

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

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

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

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

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