package com.cim.idm.dao;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

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

@Component
@Mapper
public interface ProduceReturnDao {

    /**
     * 获取物料主数据
     * @param materialPackingName 物料码
     * @return 物料数据
     */
    @MapKey("materialPacking")
    List<Map<String,Object>> getMaterialPacking(@Param("name") String materialPackingName, @Param("erpLocation") String erpLocation, @Param("erpFactory") String erpFactory, @Param("locationName") String locationName);

    /**
     * 获取 mes-ship 表
     * @param materialPackingName 码
     * @return mes-ship
     */
    @MapKey("mesShip")
    List<Map<String,Object>>  getMesShip(@Param("name") String materialPackingName);
}
