package com.hfkj.service.discount.impl;

import com.hfkj.dao.BsDiscountUserGiveRecordMapper;
import com.hfkj.entity.BsDiscountUserGiveRecord;
import com.hfkj.service.discount.BsDiscountUserGiveRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @className: BsDiscountUserGiveRecordServiceImpl
 * @author: HuRui
 * @date: 2024/9/6
 **/
@Service("discountUserGiveRecordService")
public class BsDiscountUserGiveRecordServiceImpl implements BsDiscountUserGiveRecordService {
    @Resource
    private BsDiscountUserGiveRecordMapper discountUserGiveRecordMapper;

    @Override
    public void create(BsDiscountUserGiveRecord data) {
        data.setCreateTime(new Date());
        discountUserGiveRecordMapper.insert(data);
    }
}
