package com.ruixuan.live.mapper;

import com.ruixuan.live.entity.KuaishouLiveCustomerInvoice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户管理资质Mapper接口
 *
 * @author ruoyi
 * @date 2022-08-01
 */
public interface KuaishouLiveCustomerInvoiceMapper {
    /**
     * 查询客户管理资质
     *
     * @param id 客户管理资质主键
     * @return 客户管理资质
     */
    KuaishouLiveCustomerInvoice getByKsIdAndName(@Param("ksId") Long ksId, @Param("mainBodyName") String mainBodyName);

    /**
     * 查询客户管理资质列表
     *
     * @param kuaishouLiveCustomerInvoice 客户管理资质
     * @return 客户管理资质集合
     */
    public List<KuaishouLiveCustomerInvoice> selectKuaishouLiveCustomerInvoiceList(KuaishouLiveCustomerInvoice kuaishouLiveCustomerInvoice);

    /**
     * 新增客户管理资质
     *
     * @param kuaishouLiveCustomerInvoice 客户管理资质
     * @return 结果
     */
    public int insertKuaishouLiveCustomerInvoice(KuaishouLiveCustomerInvoice kuaishouLiveCustomerInvoice);

    /**
     * 修改客户管理资质
     *
     * @param kuaishouLiveCustomerInvoice 客户管理资质
     * @return 结果
     */
    public int updateKuaishouLiveCustomerInvoice(KuaishouLiveCustomerInvoice kuaishouLiveCustomerInvoice);

    /**
     * 删除客户管理资质
     *
     * @param id 客户管理资质主键
     * @return 结果
     */
    public int deleteKuaishouLiveCustomerInvoiceById(String id);

    /**
     * 批量删除客户管理资质
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKuaishouLiveCustomerInvoiceByIds(String[] ids);

}