# AdRequestCommentMirrorServiceImpl.java

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

    import cloud.wconnect.frontoffice.entity.adjustment.AdRequestCommentMirror;
    import cloud.wconnect.frontoffice.mapper.adjustment.AdRequestCommentMirrorMapper;
    import cloud.wconnect.frontoffice.service.adjustment.IAdRequestCommentMirrorService;
    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>
     * 服务实现类
     * </p>
     *
     * @author lichen
     * @since 2026-02-11
     */
    @Service
    @DS("logbook")
    public class AdRequestCommentMirrorServiceImpl extends ServiceImpl<AdRequestCommentMirrorMapper, AdRequestCommentMirror> implements IAdRequestCommentMirrorService {

        /**
         * 根据调账id查询备注
         *
         * @param adjustmentIds 调账id集合
         * @return java.util.List<cloud.wconnect.frontoffice.entity.adjustment.AdRequestCommentMirror>
         * @author lichen
         * @date 2026/2/11
         */
        @Override
        public List<AdRequestCommentMirror> listByAdjustmentId(List<Long> adjustmentIds) {
            if (CollectionUtils.isEmpty(adjustmentIds)) return Collections.emptyList();
            return list(new LambdaQueryWrapper<AdRequestCommentMirror>().in(AdRequestCommentMirror::getArId, adjustmentIds));
        }

        /**
         * 根据调账id批量删除
         *
         * @param adjustmentIds 调账id集合
         * @author lichen
         * @date 2026/2/11
         */
        @Override
        public void removeBatchByAdjustmentIds(List<Long> adjustmentIds) {
            if (CollectionUtils.isEmpty(adjustmentIds)) return;
            remove(new LambdaQueryWrapper<AdRequestCommentMirror>().in(AdRequestCommentMirror::getArId, adjustmentIds));
        }
    }