# RateShopEmailTargetServiceImpl.java

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

    import cloud.wconnect.rateshop.entity.rateshop.RateShopEmailTarget;
    import cloud.wconnect.rateshop.mapper.rateshop.EmailTargetMapper;
    import cloud.wconnect.rateshop.service.rateshop.IRateShopEmailTargetService;
    import com.baomidou.dynamic.datasource.annotation.DS;
    import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
    import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
    import org.apache.commons.collections.CollectionUtils;
    import org.springframework.stereotype.Service;

    import java.util.Collections;
    import java.util.List;

    /**
     * <p>
     * rate shop功能的邮件配置（收件人、抄送人）表 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2023-06-15
     */
    @DS("rate_shop")
    @Service
    public class RateShopEmailTargetServiceImpl extends ServiceImpl<EmailTargetMapper, RateShopEmailTarget> implements IRateShopEmailTargetService {

        /**
         * 查询邮件配置的通知人信息
         *
         * @param configIds 配置id
         * @return java.util.List<cloud.wconnect.rateshop.entity.rateshop.EmailTarget>
         * @author lichen
         * @date 2023/6/15
         */
        @Override
        public List<RateShopEmailTarget> listByConfigIds(List<Integer> configIds) {
            if(CollectionUtils.isEmpty(configIds)) return Collections.emptyList();
            return list(new LambdaQueryWrapper<RateShopEmailTarget>().in(RateShopEmailTarget::getConfigId,configIds));
        }
    }