package com.jwipc.sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.SupplierEmail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.sys.model.po.SupplierEmailPO;
import com.jwipc.sys.model.query.SupplierEmailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 供应商邮箱配置表 Mapper 接口
 * </p>
 *
 * @author Al
 * @since 2024-04-24
 */
public interface SupplierEmailMapper extends BaseMapper<SupplierEmail> {

    List<SupplierEmailPO> findPageByQuery(@Param("query") SupplierEmailQuery query);
    List<SupplierEmailPO> findPageByQuery(Page<SupplierEmail> dbPage,@Param("query") SupplierEmailQuery query);

    SupplierEmailPO getDataById(@Param("id") Long id);

    List<SupplierEmailPO> selectAllUser(@Param("supplierCode") String supplierCode);
}
