package com.yijia.customer.mapper;

import java.util.List;

import com.yijia.customer.domain.CustomerCardSetting;
import com.yijia.customer.domain.CustomerCardSettingDetail;

/**
 * 客户电子会员卡充值优惠设置明细Mapper接口
 *
 * @author yijia
 * @date 2021-04-06
 */
public interface CustomerCardSettingDetailMapper
{
    /**
     * 查询客户电子会员卡充值优惠设置明细
     *
     * @param id 客户电子会员卡充值优惠设置明细ID
     * @return 客户电子会员卡充值优惠设置明细
     */
    public CustomerCardSettingDetail selectCustomerCardSettingDetailById(Long id);

    /**
     * 查询客户电子会员卡充值优惠设置明细列表
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 客户电子会员卡充值优惠设置明细集合
     */
    public List<CustomerCardSettingDetail> selectCustomerCardSettingDetailList(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 新增客户电子会员卡充值优惠设置明细
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 结果
     */
    public int insertCustomerCardSettingDetail(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 修改客户电子会员卡充值优惠设置明细
     *
     * @param customerCardSettingDetail 客户电子会员卡充值优惠设置明细
     * @return 结果
     */
    public int updateCustomerCardSettingDetail(CustomerCardSettingDetail customerCardSettingDetail);

    /**
     * 删除客户电子会员卡充值优惠设置明细
     *
     * @param id 客户电子会员卡充值优惠设置明细ID
     * @return 结果
     */
    public int deleteCustomerCardSettingDetailById(Long id);

    /**
     * 批量删除客户电子会员卡充值优惠设置明细
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCustomerCardSettingDetailByIds(Long[] ids);

    public void deleteCustomerCardSettingDetail(CustomerCardSettingDetail detil);

    public List<CustomerCardSettingDetail> listDetailInfo(CustomerCardSetting customerCardSetting);

    /**
     * 修改客户电子会员卡充值优惠设置明细 删除标识
     *
     * @param detil 客户电子会员卡充值优惠设置明细  删除标识
     * @return 结果
     */
    public  int updateDetail(CustomerCardSettingDetail detil);
}
