/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.coupon.comment.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.coupon.comment.dao.CouponUseRecordMapper;
import com.yami.shop.coupon.comment.model.CouponUseRecord;
import com.yami.shop.coupon.comment.service.CouponUseRecordService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 优惠券使用情况
 *
 * @author yami code generator
 * @date 2019-05-15 09:04:57
 */
@Service
@AllArgsConstructor
public class CouponUseRecordServiceImpl extends ServiceImpl<CouponUseRecordMapper, CouponUseRecord> implements CouponUseRecordService {

    private final CouponUseRecordMapper couponUseRecordMapper;

    @Override
    public void addCouponUseRecode(List<CouponUseRecord> couponUseList) {
        couponUseRecordMapper.addCouponUseRecode(couponUseList);
    }

    @Override
    public void batchUpdateRecordByStatusAndOrderNums(int status, List<String> orderNumberList) {
        couponUseRecordMapper.batchUpdateRecordByStatusAndOrderNums(status, orderNumberList);
    }
}
