package com.fjhx.mapper.apply;

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.apply.ApplyPurchase;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 物料申购 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-14
 */
public interface ApplyPurchaseMapper extends BaseMapper<ApplyPurchase> {

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

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

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

    List<Map<String, Object>> getApplyPurchaseDetailsList(@Param("page") Page<ApplyPurchase> page, @Param("applyPurchaseId") String applyPurchaseId);

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

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

}
