package com.jwipc.tender.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.tender.entity.BidQuota;
import com.jwipc.tender.entity.QuotaManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.tender.model.po.BidQuotaPO;
import com.jwipc.tender.model.po.QuotaManagementPO;
import com.jwipc.tender.model.query.BidQuotaQuery;
import com.jwipc.tender.model.query.QuotaEditQuery;
import com.jwipc.tender.model.query.QuotaManagementQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 供应商配额管理 Mapper 接口
 * </p>
 *
 * @author AL
 * @since 2024-03-02
 */
public interface QuotaManagementMapper extends BaseMapper<QuotaManagement> {

    List<QuotaManagementPO> findByPage(@Param("query") QuotaManagementQuery query);
    List<QuotaManagementPO> bidFindByPage(@Param("query") QuotaManagementQuery query);

    List<QuotaManagementPO> findByPage(Page<QuotaManagement> dbPage, @Param("query") QuotaManagementQuery query);
    List<QuotaManagementPO> bidFindByPage(Page<QuotaManagement> dbPage, @Param("query") QuotaManagementQuery query);
    List<QuotaManagementPO> editFindByPage(@Param("query") QuotaEditQuery query);

    List<QuotaManagementPO> editFindByPage(Page<QuotaManagement> dbPage, @Param("query") QuotaEditQuery query);
    List<QuotaManagementPO> supplierFindByPageForUpdate(@Param("query") QuotaEditQuery query);

    List<QuotaManagementPO> supplierFindByPageForUpdate(Page<QuotaManagement> dbPage, @Param("query") QuotaEditQuery query);
}
