package com.jeeplus.psimanage.supplier.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.psimanage.supplier.domain.PsiMaterialSupplier;
import com.jeeplus.psimanage.supplier.service.dto.PsiMaterialSupplierDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PsiMaterialSupplierMapper extends BaseMapper<PsiMaterialSupplier> {
    @InterceptorIgnore(tenantLine = "true")
    IPage<PsiMaterialSupplierDTO> findList(Page<PsiMaterialSupplierDTO> page, @Param(Constants.WRAPPER) QueryWrapper<PsiMaterialSupplier> queryWrapper);

    PsiMaterialSupplierDTO queryById(@Param("id") String id);

}
