package com.fjhx.mapper.contract;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.entity.contract.ContractDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 采购合同明细 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-19
 */
public interface ContractDetailsMapper extends BaseMapper<ContractDetails> {

    Page<Map<String, Object>> getInPage(@Param("page") Page<Object> page, @Param("ew") QueryWrapper<Object> wrapper);

    Map<String, Object> outStatistics(@Param("ew") QueryWrapper<Object> wrapper);

    Page<Map<String, Object>> getOutPage(@Param("page") Page<Object> page, @Param("ew") QueryWrapper<Object> wrapper);

    List<Map<String, Object>> getOutCount(@Param("ew") QueryWrapper<Object> wrapper);

    Page<Map<String, Object>> warehousingPage(@Param("page") Page<Object> page, @Param("ew") QueryWrapper<Object> wrapper);

}
