package com.hzs.activity.pick.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.activity.pick.vo.AcPickMemberLogVO;
import com.hzs.common.domain.activity.pick.AcPickMemberLog;
import com.hzs.common.domain.activity.pick.ext.AcPickExt;
import com.hzs.common.domain.sale.ext.SaOrderExt;

import java.util.List;

/**
 * 会员提货记录 服务类
 *
 * @author hzs
 * @since 2023-05-15
 */
public interface IAcPickMemberLogService extends IService<AcPickMemberLog> {

    /**
     * 查询提货日志
     *
     * @param pkMember 会员ID
     * @return
     */
    List<AcPickMemberLogVO> queryMemberLog(Long pkMember);

    /**
     * 批量插入提货日志
     *
     * @param acPickExtList 批量插入数据
     * @param quantity      插入数量
     * @param source        来源（1=后台，2=前台）
     * @return
     */
    int insertBatch(List<AcPickExt> acPickExtList, Integer quantity, Integer source);

    /**
     * 批量插入提货日志
     *
     * @param acPickExtList 批量插入数据
     * @param source        来源（1=后台，2=前台）
     * @return
     */
    int insertBatchPick(List<AcPickExt> acPickExtList, Integer source);

    /*
     * @description: 批量删除使用记录数据
     * @author: sui q
     * @date: 2023/6/3 13:52
     * @param: null null
     **/
    int deleteBatch(List<AcPickMemberLog> acPickMemberLogList);

    /*
     * @description: 查询会员提货使用记录
     * @author: sui q
     * @date: 2023/6/3 10:51
     * @param: null null
     **/
    List<AcPickMemberLog> queryPickMemberLog(List<SaOrderExt> saOrderExtList);
}
