# LogbookResolveResultServiceImpl.java

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

    import cloud.wconnect.frontoffice.entity.logbook.LogbookResolveResult;
    import cloud.wconnect.frontoffice.mapper.logbook.LogbookResolveResultMapper;
    import cloud.wconnect.frontoffice.service.logbook.ILogbookResolveResultService;
    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 2023-03-18
     */
    @Service
    @DS("logbook")
    public class LogbookResolveResultServiceImpl extends ServiceImpl<LogbookResolveResultMapper, LogbookResolveResult> implements ILogbookResolveResultService {

        /**
         * 查询 logbook resolve result
         *
         * @param id logbook id
         * @return logbook resolve result
         * @author yyt
         * @date 2023/3/20
         */
        @Override
        public LogbookResolveResult getByLogbookId(int id) {
            return getOne(new QueryWrapper<LogbookResolveResult>().lambda().eq(LogbookResolveResult::getLogbookId, id));
        }

        /**
         * 新增/修改
         *
         * @param logbookResolveResult logbookResolveResult
         * @author yyt
         * @date 2023/3/21
         */
        @Override
        public void saveOrUpdateForUK(LogbookResolveResult logbookResolveResult) {
            baseMapper.saveOrUpdateForUK(logbookResolveResult);
        }

        /**
         * 批量查询 logbook resolve result
         *
         * @param logbookIds logbook id
         * @return logbook resolve result
         * @author yyt
         * @date 2023/3/21
         */
        @Override
        public List<LogbookResolveResult> getByLogbookIds(List<Integer> logbookIds) {
            return baseMapper.selectList(new QueryWrapper<LogbookResolveResult>().lambda()
                    .in(LogbookResolveResult::getLogbookId, logbookIds));
        }

    }