package com.fjhx.mapper.water;

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

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

/**
 * <p>
 * 流水明细表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-16
 */
public interface WaterDetailMapper extends BaseMapper<WaterDetail> {

    List<Map<String, Object>> getInQuantityByApplyPurchaseDetailsId(@Param("applyPurchaseDetailsId") Long applyPurchaseDetailsId);

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

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

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

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

}
