package com.hxhq.business.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.hxhq.business.domain.Gsp;
import com.hxhq.business.domain.GspRkjl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 供试品入库记录Mapper接口
 *
 * @author hxhq
 * @date 2025-12-30
 */
public interface GspRkjlMapper extends BaseMapper<GspRkjl>
{



    /**
     * 筛选项中出现频率最高的入库单位
     * @param queryWrapper
     * @return
     */
    Map<String, String> getRklUnit(@Param("ew") Wrapper<GspRkjl> queryWrapper);

    /**
     * 统计入库量
     * @param queryWrapper
     * @return
     */
    BigDecimal sumRkl(@Param("ew") Wrapper<GspRkjl> queryWrapper);

}
