package com.jwipc.supplier.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.supplier.entity.Qualification;
import com.jwipc.supplier.mapper.QualificationMapper;
import com.jwipc.supplier.service.IQualificationService;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 资质信息表 服务实现类
 * </p>
 *
 * @author ZhangJie
 * @since 2024-02-07
 */
@Service
public class QualificationServiceImpl extends ServiceImpl<QualificationMapper, Qualification>
        implements IQualificationService
{

    @Override
    public List<Qualification> findByCodes(Collection<String> code) {
        return this.list(new LambdaQueryWrapper<Qualification>().in(Qualification::getCode, code));
    }
}
