package com.hzs.sale.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.sale.ext.SaOrderWaresLimitExt;
import com.hzs.common.domain.sale.order.SaOrderWaresLimit;
import com.hzs.sale.order.mapper.SaOrderWaresLimitMapper;
import com.hzs.sale.order.service.ISaOrderWaresLimitService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 会员商品限购 服务实现类
 *
 * @author hzs
 * @since 2025-03-11
 */
@Service
public class SaOrderWaresLimitServiceImpl extends ServiceImpl<SaOrderWaresLimitMapper, SaOrderWaresLimit> implements ISaOrderWaresLimitService {

    @Override
    public List<SaOrderWaresLimitExt> listWaresList(Long pkMember, Integer orderType, String limitDate, List<String> waresCodeList) {
        return baseMapper.listWaresList(pkMember, orderType, limitDate, waresCodeList);
    }

    @Override
    public int saveBatchLimit(List<SaOrderWaresLimit> dataList) {
        return baseMapper.saveBatchLimit(dataList);
    }

    @Override
    public int updateCancelOrder(Long pkOrder, Long pkMember, Date modifiedTime, List<String> waresCodeList) {
        return baseMapper.updateCancelOrder(pkOrder, pkMember, modifiedTime, waresCodeList);
    }

}
