package com.jwipc.supplier.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.supplier.entity.Supplier;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.supplier.model.po.SupplierReportPO;
import com.jwipc.supplier.model.po.SupplierSelectPO;
import com.jwipc.supplier.model.query.SupplierPurchaseCategoryBaseQuery;
import com.jwipc.supplier.model.query.SupplierSelectQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 供应商主信息 Mapper 接口
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-31
 */
public interface SupplierMapper extends BaseMapper<Supplier> {

    List<String> getTableStruct();

    List<SupplierSelectPO> getListForSelect(Page<SupplierSelectPO> page,@Param("q") SupplierSelectQuery query);

    List<SupplierReportPO> findForSupplierReportExport(@Param("q") SupplierPurchaseCategoryBaseQuery query);
}
