package com.playlet.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.playlet.system.domain.PlayletRevenueRecord;

import java.util.List;

/**
 * @Date: 2024-03-17
 * @Author: 但星霖
 * @Version: v1.0
 * @Description: 短剧任务收益Mapper接口
 */
public interface PlayletRevenueRecordMapper extends BaseMapper<PlayletRevenueRecord> {

    /**
     * 查询短剧任务收益
     *
     * @param id 短剧任务收益主键
     * @return 短剧任务收益
     */
    public PlayletRevenueRecord selectPlayletRevenueRecordById(Long id);

    /**
     * 查询短剧任务收益列表
     *
     * @param playletRevenueRecord 短剧任务收益
     * @return 短剧任务收益集合
     */
    public List<PlayletRevenueRecord> selectPlayletRevenueRecordList(PlayletRevenueRecord playletRevenueRecord);

    /**
     * 新增短剧任务收益
     *
     * @param playletRevenueRecord 短剧任务收益
     * @return 结果
     */
    public int insertPlayletRevenueRecord(PlayletRevenueRecord playletRevenueRecord);

    /**
     * 修改短剧任务收益
     *
     * @param playletRevenueRecord 短剧任务收益
     * @return 结果
     */
    public int updatePlayletRevenueRecord(PlayletRevenueRecord playletRevenueRecord);

    /**
     * 删除短剧任务收益
     *
     * @param id 短剧任务收益主键
     * @return 结果
     */
    public int deletePlayletRevenueRecordById(Long id);

    /**
     * 批量删除短剧任务收益
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePlayletRevenueRecordByIds(String[] ids);
}
