# ClcEmailTargetServiceImpl.java

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

    import cloud.wconnect.frontoffice.entity.clc.ClcEmailTarget;
    import cloud.wconnect.frontoffice.mapper.clc.ClcEmailTargetMapper;
    import cloud.wconnect.frontoffice.service.clc.IClcEmailTargetService;
    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>
     * clc 邮件配置（收件人、抄送人）表 服务实现类
     * </p>
     *
     * @author yyt
     * @since 2023-07-24
     */
    @Service
    @DS("logbook")
    public class ClcEmailTargetServiceImpl extends ServiceImpl<ClcEmailTargetMapper, ClcEmailTarget> implements IClcEmailTargetService {

        /**
         * 查询邮件配置的用户
         *
         * @param id 邮件配置 id
         * @return 用户
         * @author yyt
         * @date 2024/11/18
         **/
        @Override
        public List<ClcEmailTarget> list(Integer id) {
            return list(new QueryWrapper<ClcEmailTarget>().lambda().eq(ClcEmailTarget::getConfigId, id));
        }

    }