# GstLedgOpBalRvNoteServiceImpl.java

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

    import cloud.wconnect.frontoffice.entity.guestledgercheck.GstLedgOpBalRvNote;
    import cloud.wconnect.frontoffice.mapper.guestledgercheck.GstLedgOpBalRvNoteMapper;
    import cloud.wconnect.frontoffice.service.guestledgercheck.IGstLedgOpBalRvNoteService;
    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 2023-03-17
     */
    @Service
    @DS("logbook")
    public class GstLedgOpBalRvNoteServiceImpl extends ServiceImpl<GstLedgOpBalRvNoteMapper, GstLedgOpBalRvNote> implements IGstLedgOpBalRvNoteService {

        /**
         * 查询Note集合
         *
         * @param rvIds
         * @return java.util.List<cloud.wconnect.frontoffice.entity.guestledger.GstLedgOpBalRvNote>
         * @author lichen
         * @date 2024/3/16
         */
        @Override
        public List<GstLedgOpBalRvNote> listByRvIds(List<Long> rvIds) {
            if (CollectionUtils.isEmpty(rvIds)) return Collections.emptyList();
            return list(new LambdaQueryWrapper<GstLedgOpBalRvNote>()
                    .in(GstLedgOpBalRvNote::getOpBalRvId, rvIds)
                    .orderByDesc(GstLedgOpBalRvNote::getId));
        }
    }