package com.ruoyi.system.service.impl;

import java.util.List;
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.PromotionActivityRuleMapper;
import com.ruoyi.system.domain.PromotionActivityRule;
import com.ruoyi.system.service.IPromotionActivityRuleService;

/**
 * 促销活动规则Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-30
 */
@Service
public class PromotionActivityRuleServiceImpl extends ServiceImpl<BaseMapper<PromotionActivityRule>, PromotionActivityRule> implements IPromotionActivityRuleService
{
    @Autowired
    private PromotionActivityRuleMapper ruleMapper;

    /**
     * 根据活动ID查询规则列表
     */
    @Override
    public List<PromotionActivityRule> selectRulesByActivityId(Long activityId)
    {
        return ruleMapper.selectRulesByActivityId(activityId);
    }
}
