# PastReservationEmailTargetServiceImpl.java

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

    import cloud.wconnect.frontoffice.entity.pastreservation.PastReservationEmailTarget;
    import cloud.wconnect.frontoffice.mapper.pastreservation.PastReservationEmailTargetMapper;
    import cloud.wconnect.frontoffice.service.pastreservation.IPastReservationEmailTargetService;
    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 2024-10-01
     */
    @Service
    @DS("logbook")
    public class PastReservationEmailTargetServiceImpl extends ServiceImpl<PastReservationEmailTargetMapper, PastReservationEmailTarget> implements IPastReservationEmailTargetService {

        /**
         * 查询邮件配置通知对象
         *
         * @param id 邮件配置 id
         * @return 通知对象
         * @author yyt
         * @date 2024/12/3
         **/
        @Override
        public List<PastReservationEmailTarget> list(Integer id) {
            return list(new QueryWrapper<PastReservationEmailTarget>().lambda().eq(PastReservationEmailTarget::getConfigId, id));
        }

    }