# GlcEmailTargetServiceImpl.java

    package cloud.wconnect.frontoffice.service.guestledgercheck.impl;

    import cloud.wconnect.frontoffice.entity.guestledgercheck.GlcEmailTarget;
    import cloud.wconnect.frontoffice.mapper.guestledgercheck.GlcEmailTargetMapper;
    import cloud.wconnect.frontoffice.service.guestledgercheck.IGlcEmailTargetService;
    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>
     * Guest Ledger Check  功能的邮件配置（收件人、抄送人）表 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2023-03-20
     */
    @Service
    @DS("logbook")
    public class GlcEmailTargetServiceImpl extends ServiceImpl<GlcEmailTargetMapper, GlcEmailTarget> implements IGlcEmailTargetService {

        /**
         * 查询通知对象集合
         *
         * @param configIds 配置ID集合
         * @return java.util.List<cloud.wconnect.frontoffice.entity.guestledger.GlcEmailTarget>
         * @author lichen
         * @date 2024/3/8
         */
        @Override
        public List<GlcEmailTarget> listByConfigId(List<Integer> configIds) {
            if(CollectionUtils.isEmpty(configIds)) return Collections.emptyList();
            return list(new LambdaQueryWrapper<GlcEmailTarget>().in(GlcEmailTarget::getConfigId, configIds));
        }
    }