# RevenueEmailTargetServiceImpl.java

    package cloud.wconnect.rateshop.service.revenue.impl;

    import cloud.wconnect.rateshop.entity.revenue.RevenueEmailTarget;
    import cloud.wconnect.rateshop.mapper.revenue.RevenueEmailTargetMapper;
    import cloud.wconnect.rateshop.service.revenue.IRevenueEmailTargetService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.springframework.stereotype.Service;

    import java.util.List;

    /**
     * <p>
     * 邮件配置（收件人、抄送人）表 服务实现类
     * </p>
     *
     * @author yyt
     * @since 2023-10-26
     */
    @Service
    @DS("rate_shop")
    public class RevenueEmailTargetServiceImpl extends ServiceImpl<RevenueEmailTargetMapper, RevenueEmailTarget> implements IRevenueEmailTargetService {

        /**
         * 获取邮件通知对象
         *
         * @param configId 邮件配置 id
         * @return 邮件通知对象
         * @author zc
         * @date 2024/11/15
         */
        @Override
        public List<RevenueEmailTarget> listByConfigId(int configId) {
            return list(new QueryWrapper<RevenueEmailTarget>().lambda().eq(RevenueEmailTarget::getConfigId, configId));
        }
    }