package com.fjhx.mapper.bom;

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.bom.Bom;
import com.fjhx.params.bom.BomEx;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * bom Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-07-01
 */
public interface BomMapper extends BaseMapper<Bom> {

    Page<BomEx> getPage(@Param("page") Page<Bom> page, @Param("ew") QueryWrapper<?> wrapper);

    @MapKey("classifyId")
    List<Map<String, Object>> getBomRelationProductClassify();

}
