package com.jwipc.sys.mapper;

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

import java.util.List;

/**
 * <p>
 * 采购组主数据 Mapper 接口
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-27
 */
public interface PurchaseGroupMapper extends BaseMapper<PurchaseGroup> {
    List<PurchaseGroupPO> findPageByQuery(@Param("query") PurchaseGroupQuery query);

    List<PurchaseGroupPO> findPageByQuery(Page<PurchaseGroup> dbPage, @Param("query") PurchaseGroupQuery query);

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

    PurchaseGroupPO getDataByCode(@Param("purchaseGroupCode") String purchaseGroupCode);
}
