package com.hzs.sale.wares.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.sale.wares.BdWaresMemberLimit;

import java.util.Collection;
import java.util.List;

/**
 * 会员商品限购 服务类
 */
public interface IBdWaresMemberLimitService extends IService<BdWaresMemberLimit> {

    /**
     * 批量更新会员限购数据
     *
     * @param waresMemberLimitList
     * @return
     */
    int updateWaresMemberLimitBatch(List<BdWaresMemberLimit> waresMemberLimitList);

    /**
     * 查询会员限购数量
     *
     * @param pkMember
     * @param pkWaresList
     * @return
     */
    List<BdWaresMemberLimit> listMemberWaresLimit(Long pkMember, Collection<Integer> pkWaresList);

}
