package com.ruoyi.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.mapper.PromotionCouponRuleMapper;
import com.ruoyi.system.domain.PromotionCouponRule;
import com.ruoyi.system.service.IPromotionCouponRuleService;

/**
 * 优惠券规则Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-30
 */
@Service
public class PromotionCouponRuleServiceImpl extends ServiceImpl<BaseMapper<PromotionCouponRule>, PromotionCouponRule> implements IPromotionCouponRuleService
{
    @Autowired
    private PromotionCouponRuleMapper ruleMapper;

    /**
     * 根据批次ID查询券规则
     */
    @Override
    public PromotionCouponRule selectRuleByBatchId(Long batchId)
    {
        return ruleMapper.selectRuleByBatchId(batchId);
    }
}
