package com.njzscloud.dispose.wh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.dispose.wh.pojo.entity.PurchaseRecordEntity;
import com.njzscloud.dispose.wh.pojo.result.PurchaseRecordResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 采购记录
 */
@Mapper
public interface PurchaseRecordMapper extends BaseMapper<PurchaseRecordEntity> {

    /**
     * 详情查询
     */
    PurchaseRecordResult detail(@Param("id") Long id);

    /**
     * 分页查询
     */
    IPage<PurchaseRecordResult> paging(Page<PurchaseRecordResult> page, @Param("ew") com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<?> queryWrapper);

}
