package com.hz.pm.api.expert.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.pm.api.expert.entity.ExpertUserFullInfo;
import com.hz.pm.api.expert.mapper.ExpertUserFullInfoMapper;
import com.hz.pm.api.expert.service.IExpertUserFullInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Liuxinxin
 * @since 2023-02-22
 */
@Service
public class ExpertUserFullInfoServiceImpl extends ServiceImpl<ExpertUserFullInfoMapper, ExpertUserFullInfo> implements IExpertUserFullInfoService {

    @Override
    public ExpertUserFullInfo getByUserId(Long userId) {
        return getOne(Wrappers.<ExpertUserFullInfo>lambdaQuery().eq(ExpertUserFullInfo::getUserId, userId));
    }

    @Override
    public List<ExpertUserFullInfo> listByUserIds(List<Long> userIds) {
        return list(Wrappers.<ExpertUserFullInfo>lambdaQuery().in(ExpertUserFullInfo::getUserId, userIds));
    }

}
