package com.fs.company.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.company.domain.Company;
import com.fs.company.domain.CompanyRedPacketBalanceLogs;

/**
 * 企业红包余额记录Mapper接口
 * 
 * @author fs
 * @date 2025-11-19
 */
public interface CompanyRedPacketBalanceLogsMapper extends BaseMapper<CompanyRedPacketBalanceLogs>{
    /**
     * 查询企业红包余额记录
     * 
     * @param logsId 企业红包余额记录主键
     * @return 企业红包余额记录
     */
    CompanyRedPacketBalanceLogs selectCompanyRedPacketBalanceLogsByLogsId(Long logsId);

    /**
     * 查询企业红包余额记录列表
     * 
     * @param companyRedPacketBalanceLogs 企业红包余额记录
     * @return 企业红包余额记录集合
     */
    List<CompanyRedPacketBalanceLogs> selectCompanyRedPacketBalanceLogsList(CompanyRedPacketBalanceLogs companyRedPacketBalanceLogs);

    /**
     * 新增企业红包余额记录
     * 
     * @param companyRedPacketBalanceLogs 企业红包余额记录
     * @return 结果
     */
    int insertCompanyRedPacketBalanceLogs(CompanyRedPacketBalanceLogs companyRedPacketBalanceLogs);

    /**
     * 修改企业红包余额记录
     * 
     * @param companyRedPacketBalanceLogs 企业红包余额记录
     * @return 结果
     */
    int updateCompanyRedPacketBalanceLogs(CompanyRedPacketBalanceLogs companyRedPacketBalanceLogs);

    /**
     * 删除企业红包余额记录
     * 
     * @param logsId 企业红包余额记录主键
     * @return 结果
     */
    int deleteCompanyRedPacketBalanceLogsByLogsId(Long logsId);

    /**
     * 批量删除企业红包余额记录
     * 
     * @param logsIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteCompanyRedPacketBalanceLogsByLogsIds(Long[] logsIds);

    Company getCompanyRedPacketBalance(Long companyId);
}
